ZinKilla Posted November 25, 2014 Share Posted November 25, 2014 Hi i made a mod so a terminator comes to me on a bike to protect me but he did not protect me very well so i made him shoot specific targets but he does not shoot any targets or just people who are a threat to me. like ballas and cops but he does not kill them any help please? // This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013{$CLEO .cs}//-------------MAIN---------------Model.Load(#BMYBOUN)Model.Load(#SAWNOFF)Model.Load(#FREEWAY)Model.Load(#LAPD1)Model.Load(#SFPD1)Model.Load(#LVPD1)Model.Load(#CSHER)Model.Load(#LAPDM1)Model.Load(#SWAT)Model.Load(#FBI)Model.Load(#ARMY)Model.Load(#DSHER)Model.Load(#BALLAS1)Model.Load(#BALLAS2)Model.Load(#BALLAS3)Model.Load(#LSV1)Model.Load(#LSV2)Model.Load(#LSV3)Model.Load(#DNB1)Model.Load(#DNB2)Model.Load(#DNB3)038B: load_requested_models :Noname_98wait 0 if 0ADC: test_cheat "DEPLOY" else_jump @Noname_98 0ACD: show_text_highpriority "A terminator has been dispatched to your location" time 5000 018C: play_sound 1052 at 0.0 0.0 0.0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 50.0 0.0 5.0 02C1: store_to [email protected] [email protected] [email protected] car_path_coords_closest_to [email protected] [email protected] [email protected] 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 5.0 0.0 Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])[email protected] = Car.Create(#FREEWAY, [email protected], [email protected], [email protected])00AE: set_car [email protected] traffic_behaviour_to 2 0423: set_car [email protected] improved_handling_to 2.0 // (float) 03CC: enable_car [email protected] stuck_check_distance_to 2.0 time_to 2000 [email protected] = Actor.CreateAsDriver(Mission1, #BMYBOUN, [email protected])Car.DriveTo([email protected], [email protected], [email protected], [email protected])Car.SetMaxSpeed([email protected], 50.0)wait 1200 Camera.OnVehicle([email protected], 18, 2)jump @Noname_396 :Noname_396wait 0 if 00F1: actor [email protected] sphere 0 near_point [email protected] [email protected] radius [email protected] 18.0 stopped_in_car else_jump @Noname_396 wait 0 Camera.Restore0633: AS_actor [email protected] exit_car Actor.Health([email protected]) = 500Actor.SetImmunities([email protected], 1, 1, 1, 1, 1)Actor.GiveWeaponAndAmmo([email protected], Sawnoff, 99999)Actor.WeaponAccuracy([email protected]) = 50007DD: set_actor [email protected] attack_rate 500 // previously known as temper_to 07AF: $terminator = player $PLAYER_CHAR group 0630: put_actor $PLAYER_ACTOR in_group $terminator as_leader 0631: put_actor [email protected] in_group $terminator jump @Noname_525 :Noname_525Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])0AE1: [email protected] = random_actor_near_point [email protected] [email protected] [email protected] in_radius 20.0 find_next 0 pass_deads 1 //IF and SET wait 0 if or Actor.Model([email protected]) == #DSHER Actor.Model([email protected]) == #BALLAS1 Actor.Model([email protected]) == #BALLAS2 Actor.Model([email protected]) == #BALLAS3 Actor.Model([email protected]) == #LSV1 Actor.Model([email protected]) == #LSV2 Actor.Model([email protected]) == #LSV3else_jump @Noname_627 :Noname_627wait 0 if or Actor.Model([email protected]) == #DSHER Actor.Model([email protected]) == #BALLAS1 Actor.Model([email protected]) == #BALLAS2 Actor.Model([email protected]) == #BALLAS3 Actor.Model([email protected]) == #LSV1 Actor.Model([email protected]) == #LSV2 Actor.Model([email protected]) == #LSV3else_jump @Noname_707 05E2: AS_actor [email protected] kill_actor [email protected] jump @Noname_525 :Noname_707wait 0 if or Actor.Dead($PLAYER_ACTOR)0ADC: test_cheat "TERM" else_jump @Noname_525 Actor.DestroyInstantly([email protected]) Link to comment Share on other sites More sharing options...
JohnDoe4444 Posted November 25, 2014 Share Posted November 25, 2014 don't create player's group instant use $PLAYER_GROUP Link to comment Share on other sites More sharing options...
ZinKilla Posted November 25, 2014 Author Share Posted November 25, 2014 I dont understand what im topose to do here can you explain in a little more detail Link to comment Share on other sites More sharing options...
JohnDoe4444 Posted November 26, 2014 Share Posted November 26, 2014 (edited) i mean don't create a group for your player it's like you create the player and set his clothes because it was coded in main.scm player's group is exactly like this. so delete these lines: 07AF: $terminator = player $PLAYER_CHAR group0630: put_actor $PLAYER_ACTOR in_group $terminator as_leader and change: 0631: put_actor [email protected] in_group $terminator to: 0631: put_actor [email protected] in_group $PLAYER_GROUP Edited November 26, 2014 by 4sinayousefi Link to comment Share on other sites More sharing options...
ZinKilla Posted November 26, 2014 Author Share Posted November 26, 2014 This works ok but he is still slow when killing people can i give him no relode or make him a bit faster each time he kills someone? Link to comment Share on other sites More sharing options...
JohnDoe4444 Posted November 26, 2014 Share Posted November 26, 2014 (edited) i don't know it's useful or not: 04B8: get_weapon_data_from_actor $PLAYER_ACTOR slot 2 weapon [email protected] ammo [email protected] model [email protected] EDIT: change this line: Actor.GiveWeaponAndAmmo([email protected], Sawnoff, 99999) to: Actor.GiveWeaponAndAmmo([email protected], 26, 99999) it works like normal game speed not slow motion also i think these lines are useless: Model.Load(#LAPD1)Model.Load(#SFPD1)Model.Load(#LVPD1)Model.Load(#CSHER)Model.Load(#LAPDM1)Model.Load(#SWAT)Model.Load(#FBI)Model.Load(#ARMY)Model.Load(#DSHER)Model.Load(#BALLAS1)Model.Load(#BALLAS2)Model.Load(#BALLAS3)Model.Load(#LSV1)Model.Load(#LSV2)Model.Load(#LSV3)Model.Load(#DNB1)Model.Load(#DNB2)Model.Load(#DNB3) and :Noname_525Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])0AE1: [email protected] = random_actor_near_point [email protected] [email protected] [email protected] in_radius 20.0 find_next 0 pass_deads 1 //IF and SETwait 0if orActor.Model([email protected]) == #DSHERActor.Model([email protected]) == #BALLAS1Actor.Model([email protected]) == #BALLAS2Actor.Model([email protected]) == #BALLAS3Actor.Model([email protected]) == #LSV1Actor.Model([email protected]) == #LSV2Actor.Model([email protected]) == #LSV3else_jump @Noname_627:Noname_627wait 0if orActor.Model([email protected]) == #DSHERActor.Model([email protected]) == #BALLAS1Actor.Model([email protected]) == #BALLAS2Actor.Model([email protected]) == #BALLAS3Actor.Model([email protected]) == #LSV1Actor.Model([email protected]) == #LSV2Actor.Model([email protected]) == #LSV3else_jump @Noname_70705E2: AS_actor [email protected] kill_actor [email protected] @Noname_525 Edited November 27, 2014 by 4sinayousefi 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