Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Contract
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

How to place soldiers?


(b)rambo
 Share

Recommended Posts

Hi there I'am working on a mod and need soldiers that are defending theirselves. and automatically atack you.

like they do at the army base in gta vc

I don't know how to place them in the map.

Can anyone please help me with it.

barf8bd.gif

 

 

Link to comment
Share on other sites

 

009A: [email protected] = create_actor 4 #ARMY at X Y Z 

 

 

 

009A: $Actor = create_actor INT(pedtype) #MODEL at X Y Z

 

 

PED TYPES

 

0 PLAYER1

1 PLAYER2

2 PLAYER_NETWORK

3 PLAYER_UNUSED

4 CIVMALE

5 CIVFEMALE

6 COP

7 GANG1

8 GANG2

9 GANG3

10 GANG4

11 GANG5

12 GANG6

13 GANG7

14 GANG8

15 GANG9

16 GANG10

17 DEALER

18 MEDIC

19 FIREMAN

20 CRIMINAL

21 BUM*

22 PROSTITUTE

23 SPECIAL

24 MISSION1

25 MISSION2

26 MISSION3

27 MISSION4

28 MISSION5

29 MISSION6

30 MISSION7

31 MISSION8

 

 

Hope this help you, this is for SA

Yl8KS.jpg
Link to comment
Share on other sites

Thanks for fast response I'm not able to test it right now. but I hope it works on vice city. smile.gif

Link to comment
Share on other sites

Knowledge Novice

Thanks . . . I hope it works on vice city.  smile.gif

This if from Sanny

 

Gang0  Cubans 

Gang1  Haitians 

Gang2  Street wannabees 

Gang3  Columbians (Diaz's) 

Gang4  Renta Cops (PIGs) 

Gang5  Bikers 

Gang6  Vercetti (yours) 

Gang7  Golfers 

Gang8  Army (special gang) 

 

I think that I had a more complete list somewhere but can't find it right now. Later. rampage_ani.gif
Link to comment
Share on other sites

Set the army as pedtyp 6

MB0.33

 

009A: @3 = create_actor  6 #army at  x x z

 

He only attacks if wanted level is more then 0

otherwise use

 

05E2: AS_actor @3 kill_actor $PLAYER_ACTOR

 

Link to comment
Share on other sites

Knowledge Novice

Here we go. It seems that the list in VC goes up to #19.

 

Pedtypes:

0=player1

1=player2

2=player3

3=player4

4=civmale

5=civfemale

6=cop

7=gang1

8=gang2

9=gang3

10=gang4

11=gang5

12=gang6

13=gang7

14=gang8

15=gang9

16=emergency

17=fireman

18=criminal

19=special

 

QUESTION:

Is there a list of 'threats' that can be added to the pedtypes? What I mean is that I assumed that the list of pedtypes I've given here would be used to set an actors pedtype as well as to 'add threat' to that pedtype (using 1 - 19 to add threat).

 

009A: @3 = create_actor  17 #army at  x x z 

Would the actor act as a fireman?

 

I'm kind of confused on this. After looking through original code I've found that the 'threat' number can be as high as 16,384 (in Guardian Angels I think). Here are some that I've found

 

03F1: pedtype  8 add_threat  12803F1: pedtype  7 add_threat  25603F1: pedtype  13 add_threat  51203F1: pedtype  9 add_threat  819203F1: pedtype  8 add_threat  16384

 

Any info (or a nudge in the right direction) would be greatly appreciated. Later guys. rampage_ani.gif

 

 

Link to comment
Share on other sites

My post refers to SA (009A: @3 = create_actor)

In Sa isn´t a code like 03F1: pedtype 8 add_threat 128

Spawn an actor in SA as pedtype 6 and a policeman will appear, no matter which ped model was used. Only swat or army is additional possible to spwan by pedtype 6.

Spawn an actor in SA as pedtype 8 and his behavior will be like a homie and pedtype 7 like a ballas.

This behavior is set in the ped.dat

 

I believe in VC is similar. Have a look into the ped.dat

Three years ago i asked here about 03F1: pedtype 8 add_threat 1

 

and Patric W gave the answer:

 

Have a look at "03F1: pedtype 8 add_threat 1"

8 is an identifyer for a pedtype (e.g. hatians)

1 is an identifyer for what they are aggresive towards( e.g. the player)

 

This opcodes can also be used to make gangs aggresive towards eachother.

 

These are lists of the identifiers you can use:

 

; Pedtypes#define ptPlayer1 0#define ptPlayer2 1#define ptPlayer3 2#define ptPlayer4 3#define ptCivMale 4#define ptCivFemale 5#define ptCop 6#define ptGang1 7#define ptGang2 8#define ptGang3 9#define ptGang4 10#define ptGang5 11#define ptGang6 12#define ptGang7 13#define ptGang8 14#define ptGang9 15#define ptEmergency 16#define ptFireman 17#define ptCriminal 18#define ptSpecial 19; Threats#define thPlayer1 1#define thPlayer2 2#define thPlayer3 4#define thPlayer4 8#define thCivMale 16#define thCivFemale 32#define thCop 64#define thGang1 128#define thGang2 256#define thGang3 512#define thGang4 1024#define thGang5 2048#define thGang6 4096#define thGang7 8192#define thGang8 16384#define thGang9 32768#define thEmergency 65536#define thFireman 16777216#define thCriminal 262144#define thSpecial 524288#define thGun 1048576#define thCopCar 2097152#define thFastCar 4194304#define thExplosion 8388608#define thProstitute 131072#define thDeadPeds 33554432

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.