Jump to content

Need Help in Editing Script...


Jaskaran498

Recommended Posts

Hi all colgate.gif

 

I have recently installed "AUTOPILOT" mod for CLEO3 for San-Andreas. There is no problem except we get m4. I want to get minigun while in heli. Here is script-

 

 

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'FV' :FV_11wait 0 077E: get_active_interior_to $ACTIVE_INTERIOR if and  Player.Defined($PLAYER_CHAR) $ACTIVE_INTERIOR == 0   not Actor.Driving($PLAYER_ACTOR)0AB0:   key_pressed 54 else_jump @FV_11 jump @FV_59 :FV_59Model.Load(#MAVERICK)038B: load_requested_models wait 0 if   Model.Available(#MAVERICK)else_jump @FV_59 04C4: store_coords_to 5@ 6@ 7@ from_actor $PLAYER_ACTOR with_offset 0.0 10.0 0.0 8@ = Car.Create(#MAVERICK, 5@, 6@, 7@)Car.SetImmunities(8@, 1, 1, 1, 1, 1)jump @FV_154 :FV_154Model.Load(#M4)038B: load_requested_models wait 0 if   Model.Available(#M4)else_jump @FV_154 01B2: give_actor $PLAYER_ACTOR weapon 31 ammo 99999 // Load the weapon model before using this 097A: play_audio_at 0.0 0.0 0.0 event 1138 jump @FV_220 :FV_220wait 0 if   Car.Defined(8@)else_jump @FV_342 if 00E1:   player 0 pressed_key 15 else_jump @FV_220 9@ = 60.0 0464: put_actor $PLAYER_ACTOR into_turret_on_car 8@ at_car_offset -1.4 1.0 -0.1 position 1 shooting_angle_limit 105.0 with_weapon 31 0AB6: store_target_marker_coords_to 1@ 2@ 3@ // IF and SET 04A2: set_heli 8@ fly_to 1@ 2@ 9@ altitude_between 9@ and 9@ wait 3000 jump @FV_370 :FV_342Car.RemoveReferences(8@)Car.Destroy(8@)0555: remove_weapon 31 from_actor $PLAYER_ACTOR 03F0: enable_text_draw 0 jump @FV_11 :FV_370wait 0 if 80E1:   not player 0 pressed_key 15 else_jump @FV_562 if 80E1:   not player 0 pressed_key 11 else_jump @FV_432 if 80E1:   not player 0 pressed_key 10 else_jump @FV_449 jump @FV_370 :FV_4329@ += 1.0 jump @FV_487 :FV_449if  9@ >= 61.0 else_jump @FV_370 9@ -= 1.0 jump @FV_487 :FV_48703F0: enable_text_draw 0 wait 0 0087: 10@ = 9@ // (float) 0092: 10@ = float 10@ to_integer 04A2: set_heli 8@ fly_to 1@ 2@ 9@ altitude_between 9@ and 9@ 045A: draw_text_1number 280.0 240.0 GXT 'NUMBER' number 10@  // ~1~jump @FV_370 :FV_5620465: remove_actor $PLAYER_ACTOR from_turret_mode Car.StorePos(8@, 1@, 2@, 3@)3@ += 10.0 02CE: 4@ = ground_z_at 1@ 2@ 3@ 0395: clear_area 0 at 1@ 2@ 4@ radius 1.0 Actor.PutAt($PLAYER_ACTOR, 1@, 2@, 4@)jump @FV_342 end_thread 

 

 

I tried changing m4 to minigun but no effect. Can anyone help me to replace m4 with minigun please. I think the words "Weapon 31" have something to do with it. Please Help. sad.gif I hate M4 while Minigun is best and realastic as planes usually have minigun mounted in them. rolleyes.gif

 

In short, please help me to change m4 to minigun.

Link to comment
Share on other sites

yeah change the weapon 31 to 38!

Also you have a tons of jump code that is not needed at all! The program executes statement after the consecutive statements, so you don't need to write the jump instruction for the following statements

 

EDIT: Oops sorry, mistook the mod as yours!

 

Change all weapon 31 to weapon 38

Also change #m4 to #minigun

Edited by Swoorup
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
  • 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.