Johnson047 Posted January 18, 2015 Share Posted January 18, 2015 I created a bodyguard mod, and i want to add decision maker to this bodyguard, can someone help me to add decision maker to this bodyguard ??? This is a My Bodyguard Mod Script : {$CLEO .cs} //-------------MAIN--------------- 0000: NOP 0000: NOP :NONAME_0 0001: wait 0 ms 00D6: if 0ADC: test_cheat "JB7" 004D: jump_if_false @NONAME_0 0002: jump @NONAME_1 :NONAME_1 0001: wait 0 ms 0247: load_model 351 0247: load_model 163 0247: load_model 362 0247: load_model 356 0247: load_model 352 0247: load_model 348 0247: load_model 353 0247: load_model 358 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 4.0 0.0 038B: load_requested_models 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 009A: [email protected] = create_actor_pedtype 8 model 163 at [email protected] [email protected] [email protected] 0631: put_actor [email protected] in_group $PLAYER_GROUP Actor.Health([email protected]) = 2500 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 01B2: give_actor [email protected] weapon 24 ammo 9999 081A: set_actor [email protected] weapon_skill_to 2 0001: wait 800 ms 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 4.0 0.0 038B: load_requested_models 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 009A: [email protected] = create_actor_pedtype 8 model 163 at [email protected] [email protected] [email protected] 0631: put_actor [email protected] in_group $PLAYER_GROUP Actor.Health([email protected]) = 2500 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 01B2: give_actor [email protected] weapon 27 ammo 9999 081A: set_actor [email protected] weapon_skill_to 2 0001: wait 800 ms 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 4.0 0.0 038B: load_requested_models 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 009A: [email protected] = create_actor_pedtype 8 model 163 at [email protected] [email protected] [email protected] 0631: put_actor [email protected] in_group $PLAYER_GROUP Actor.Health([email protected]) = 2500 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 01B2: give_actor [email protected] weapon 28 ammo 9999 081A: set_actor [email protected] weapon_skill_to 1 0001: wait 800 ms 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 4.0 0.0 038B: load_requested_models 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 009A: [email protected] = create_actor_pedtype 8 model 163 at [email protected] [email protected] [email protected] 0631: put_actor [email protected] in_group $PLAYER_GROUP Actor.Health([email protected]) = 2500 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 01B2: give_actor [email protected] weapon 29 ammo 9999 081A: set_actor [email protected] weapon_skill_to 2 0001: wait 800 ms 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 4.0 0.0 038B: load_requested_models 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 009A: [email protected] = create_actor_pedtype 8 model 163 at [email protected] [email protected] [email protected] 0631: put_actor [email protected] in_group $PLAYER_GROUP Actor.Health([email protected]) = 2500 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 01B2: give_actor [email protected] weapon 31 ammo 9999 081A: set_actor [email protected] weapon_skill_to 2 0001: wait 800 ms 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 4.0 0.0 038B: load_requested_models 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 009A: [email protected] = create_actor_pedtype 8 model 163 at [email protected] [email protected] [email protected] 0631: put_actor [email protected] in_group $PLAYER_GROUP Actor.Health([email protected]) = 2500 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 01B2: give_actor [email protected] weapon 34 ammo 9999 0001: wait 800 ms 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 4.0 0.0 038B: load_requested_models 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 009A: [email protected] = create_actor_pedtype 8 model 163 at [email protected] [email protected] [email protected] 0631: put_actor [email protected] in_group $PLAYER_GROUP Actor.Health([email protected]) = 2500 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 01B2: give_actor [email protected] weapon 38 ammo 9999 0001: wait 500 ms 00BB: show_text_lowpriority GXT 'JOHNSON047' time 4000 flag 1 00BB: show_text_lowpriority GXT 'COPYRIGHT' time 3000 flag 2 00BB: show_text_lowpriority GXT 'WARNING' time 3000 flag 3 0002: jump @NONAME_2 :NONAME_2 0001: wait 0 ms 00D6: if and 8104: not actor $PLAYER_ACTOR near_actor [email protected] radius 70.0 70.0 20.0 sphere 0 8104: not actor $PLAYER_ACTOR near_actor [email protected] radius 70.0 70.0 20.0 sphere 0 8104: not actor $PLAYER_ACTOR near_actor [email protected] radius 70.0 70.0 20.0 sphere 0 8104: not actor $PLAYER_ACTOR near_actor [email protected] radius 70.0 70.0 20.0 sphere 0 8104: not actor $PLAYER_ACTOR near_actor [email protected] radius 70.0 70.0 20.0 sphere 0 8104: not actor $PLAYER_ACTOR near_actor [email protected] radius 70.0 70.0 20.0 sphere 0 8104: not actor $PLAYER_ACTOR near_actor [email protected] radius 70.0 70.0 20.0 sphere 0 004D: jump_if_false @NONAME_3 01C2: remove_references_to_actor [email protected] 01C2: remove_references_to_actor [email protected] 01C2: remove_references_to_actor [email protected] 01C2: remove_references_to_actor [email protected] 01C2: remove_references_to_actor [email protected] 01C2: remove_references_to_actor [email protected] 01C2: remove_references_to_actor [email protected] 009B: destroy_actor [email protected] 009B: destroy_actor [email protected] 009B: destroy_actor [email protected] 009B: destroy_actor [email protected] 009B: destroy_actor [email protected] 009B: destroy_actor [email protected] 009B: destroy_actor [email protected] 00BA: show_text_styled GXT 'JB01' time 3000 style 4 0002: jump @NONAME_0 :NONAME_3 0001: wait 0 ms 00D6: if and 0104: actor $PLAYER_ACTOR near_actor [email protected] radius 70.0 70.0 20.0 sphere 0 0104: actor $PLAYER_ACTOR near_actor [email protected] radius 70.0 70.0 20.0 sphere 0 0104: actor $PLAYER_ACTOR near_actor [email protected] radius 70.0 70.0 20.0 sphere 0 0104: actor $PLAYER_ACTOR near_actor [email protected] radius 70.0 70.0 20.0 sphere 0 0104: actor $PLAYER_ACTOR near_actor [email protected] radius 70.0 70.0 20.0 sphere 0 0104: actor $PLAYER_ACTOR near_actor [email protected] radius 70.0 70.0 20.0 sphere 0 0104: actor $PLAYER_ACTOR near_actor [email protected] radius 70.0 70.0 20.0 sphere 0 004D: jump_if_false @NONAME_2 0ADC: test_cheat "JB7" 004D: jump_if_false @NONAME_3 0002: jump @NONAME_4 :NONAME_4 0001: wait 500 ms 009B: destroy_actor [email protected] 009B: destroy_actor [email protected] 009B: destroy_actor [email protected] 009B: destroy_actor [email protected] 009B: destroy_actor [email protected] 009B: destroy_actor [email protected] 009B: destroy_actor [email protected] 0001: wait 700 ms 0002: jump @NONAME_0 This is a Decision Maker i want : Decision Maker work with $PLAYER_GROUP If Bodyguard Vehicle attacked with weapon, Then this Bodyguard will kill this ped in vehicle. If Bodyguard dragged out of vehicle by the ped, Then this Bodyguard will kill this ped. If Bodyguard seen a another ped he hates. Then this Bodyguard will kill the ped on foot / on vehicle if he hates him Sorry if my english is bad. So, Thanks. Link to comment Share on other sites More sharing options...
ZAZ Posted January 18, 2015 Share Posted January 18, 2015 opcode 060B is the easiest way to assigne a decision marker, then read here about decision marker i don't know if decision markers are usefull for making bodyguards 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