(b)rambo Posted August 21, 2007 Share Posted August 21, 2007 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. Link to comment Share on other sites More sharing options...
coin-god Posted August 21, 2007 Share Posted August 21, 2007 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 Link to comment Share on other sites More sharing options...
(b)rambo Posted August 21, 2007 Author Share Posted August 21, 2007 Thanks for fast response I'm not able to test it right now. but I hope it works on vice city. Link to comment Share on other sites More sharing options...
Knowledge Novice Posted August 22, 2007 Share Posted August 22, 2007 Thanks . . . I hope it works on vice city. 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. Link to comment Share on other sites More sharing options...
coin-god Posted August 22, 2007 Share Posted August 22, 2007 puuuf sorry man! i posted San Andreas help! Link to comment Share on other sites More sharing options...
ZAZ Posted August 22, 2007 Share Posted August 22, 2007 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 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Knowledge Novice Posted August 23, 2007 Share Posted August 23, 2007 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. Link to comment Share on other sites More sharing options...
ZAZ Posted August 23, 2007 Share Posted August 23, 2007 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 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now