Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      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

dual miniguns(turrets)


yair1221
 Share

Recommended Posts

the script worked fine when i only used one minigun

but when i modified it to fit for two, it stopped working

im entering the car(phoenix) but when i press 0 nothing happends

 

 

// This file was decompiled using sascm.ini published by http://gtag.gtagaming.com/opcode-database on 4.8.2010{$VERSION 3.1.1000}{$CLEO .cs}//-------------MAIN---------------03A4: name_thread 'MONSTERMGS' 0247: load_model #MINIGUN 0247: load_model #MALE01 :MONSTERMGS_280001: wait 0 ms 00D6: if and0248:   model #MINIGUN available 0248:   model #MALE01 available 004D: jump_if_false @MONSTERMGS_28 :MONSTERMGS_520001: wait 0 ms 00D6: if 00DD:   actor $PLAYER_ACTOR driving_car_with_model #PHOENIX 004D: jump_if_false @MONSTERMGS_52 03C0: [email protected] = actor $PLAYER_ACTOR car 009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.0 009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.0 0337: set_actor [email protected] visibility 0 0337: set_actor [email protected] visibility 0 0568: set_actor [email protected] targetable 0 0568: set_actor [email protected] targetable 0 01B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this 01B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this 01B9: set_actor [email protected] armed_weapon_to 38 01B9: set_actor [email protected] armed_weapon_to 38 02A9: set_actor [email protected] immune_to_nonplayer 1 02A9: set_actor [email protected] immune_to_nonplayer 1 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 054A: set_actor [email protected] immune_to_car_headshots 1 054A: set_actor [email protected] immune_to_car_headshots 1 0464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset 0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 38 0464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset -0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 38 :MONSTERMGS_3190001: wait 0 ms 00D6: if 0AB0:   key_pressed 96 004D: jump_if_false @MONSTERMGS_319 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.75 25.0 -0.5 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset -0.75 25.0 -0.5 0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 100 ms 0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 100 ms 0001: wait 101 ms 017B: set_actor [email protected] weapon 38 ammo_to 999999 017B: set_actor [email protected] weapon 38 ammo_to 999999 0002: jump @MONSTERMGS_319

 

 

Link to comment
Share on other sites

96 is a Numpad key. Are you pressing the 0 on the number pad? Do you have the numberpad switched on? (Switch it on by pressing the Num Lock key. A light should then light up on your keyboard)

Link to comment
Share on other sites

The Actors only shoot for 100 ms WTF Add more duration. They always need some milliseconds before they shoot.

Link to comment
Share on other sites

 

the script worked fine when i only used one minigun

but when i modified it to fit for two, it stopped working

im entering the car(phoenix) but when i press 0 nothing happends

 

 

// This file was decompiled using sascm.ini published by http://gtag.gtagaming.com/opcode-database on 4.8.2010{$VERSION 3.1.1000}{$CLEO .cs}//-------------MAIN---------------03A4: name_thread 'MONSTERMGS' 0247: load_model #MINIGUN 0247: load_model #MALE01 :MONSTERMGS_280001: wait 0 ms 00D6: if and0248:   model #MINIGUN available 0248:   model #MALE01 available 004D: jump_if_false @MONSTERMGS_28 :MONSTERMGS_520001: wait 0 ms 00D6: if 00DD:   actor $PLAYER_ACTOR driving_car_with_model #PHOENIX 004D: jump_if_false @MONSTERMGS_52 03C0: [email protected] = actor $PLAYER_ACTOR car 009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.0 009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.0 0337: set_actor [email protected] visibility 0 0337: set_actor [email protected] visibility 0 0568: set_actor [email protected] targetable 0 0568: set_actor [email protected] targetable 0 01B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this 01B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this 01B9: set_actor [email protected] armed_weapon_to 38 01B9: set_actor [email protected] armed_weapon_to 38 02A9: set_actor [email protected] immune_to_nonplayer 1 02A9: set_actor [email protected] immune_to_nonplayer 1 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 054A: set_actor [email protected] immune_to_car_headshots 1 054A: set_actor [email protected] immune_to_car_headshots 1 0464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset 0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 38 0464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset -0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 38 :MONSTERMGS_3190001: wait 0 ms 00D6: if 0AB0:   key_pressed 96 004D: jump_if_false @MONSTERMGS_319 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.75 25.0 -0.5 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset -0.75 25.0 -0.5 0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 100 ms 0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 100 ms 0001: wait 101 ms 017B: set_actor [email protected] weapon 38 ammo_to 999999 017B: set_actor [email protected] weapon 38 ammo_to 999999 0002: jump @MONSTERMGS_319

 

Damn, man did you make it out to work? As i am not blind, those miniguns are ...for car? Did it work for you at least with one gun, i am really curious bzc i would like to have my ah6 lil bird armed ;d I ve seen this kinda scripts working in Sa, but not for VC, could you show me any screenshot for proof that it is possible, i m really curious smile.gif

 

 

PS.: I found a bug in your code, #PHOENIX should be #PHEONIX, just as model name is exactly like that wink.gif Maybe thats does'nt work bcz of this?

 

 

Oh, i think and to be honest now im sure that your script is for SA, i didn't notice it, i first thought that is is for VC, my mistake, so probably all that i wrote can be put into the bin, tounge2.gif

Edited by MW_29
Link to comment
Share on other sites

 

Damn, man did you make it out to work? As i am not blind, those miniguns are ...for car? Did it work for you at least with one gun, i am really curious bzc i would like to have my ah6 lil bird armed ;d I ve seen this kinda scripts working in Sa, but not for VC, could you show me any screenshot for proof that it is possible, i m really curious  smile.gif

 

 

PS.: I found a bug in your code, #PHOENIX should be #PHEONIX, just as model name is exactly like that wink.gif Maybe thats does'nt work bcz of this?

 

 

Oh, i think and to be honest now im sure that your script is for SA, i didn't notice it, i first thought that is is for VC, my mistake, so probably all that i wrote can be put into the bin,  tounge.gif 

 

its for sa lol.gif

anyway, ill see if it works with the repair, sorry for not seeing this, its not because i didnt looked its because i thought thats the way to write it(not from USA nor UK :S)

edit: no, i wrote it right the first time

 

 

96 is a Numpad key. Are you pressing the 0 on the number pad? Do you have the numberpad switched on? (Switch it on by pressing the Num Lock key. A light should then light up on your keyboard)

 

yes im pressing the right button and the num lock is on

 

 

The Actors only shoot for 100 ms WTF Add more duration. They always need some milliseconds before they shoot.

 

i tried rising it to 1000 still doesnt work, besides, my old script works with 100 ms but its only one minigun

Edited by yair1221
Link to comment
Share on other sites

 

 

96 is a Numpad key. Are you pressing the 0 on the number pad? Do you have the numberpad switched on? (Switch it on by pressing the Num Lock key. A light should then light up on your keyboard)

 

yes im pressing the right button and the num lock is on

 

 

The Actors only shoot for 100 ms WTF Add more duration. They always need some milliseconds before they shoot.

 

i tried rising it to 1000 still doesnt work, besides, my old script works with 100 ms but its only one minigun

your posted script works for me but needs a bit more time

 

0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 500 ms0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 500 ms0001: wait 300 ms

 

Link to comment
Share on other sites

// This file was decompiled using sascm.ini published by http://gtag.gtagaming.com/opcode-database on 4.8.2010

 

{$VERSION 3.1.1000}

{$CLEO .cs}

 

//-------------MAIN---------------

03A4: name_thread 'MONSTERMGS'

0247: load_model #MINIGUN

0247: load_model #MALE01

 

:MONSTERMGS_28

0001: wait 0 ms

00D6: if and

0248: model #MINIGUN available

0248: model #MALE01 available

004D: jump_if_false @MONSTERMGS_28

 

:MONSTERMGS_52

0001: wait 0 ms

00D6: if

00DD: actor $PLAYER_ACTOR driving_car_with_model #PHOENIX

004D: jump_if_false @MONSTERMGS_52

03C0: [email protected] = actor $PLAYER_ACTOR car

009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.0

009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.0

0337: set_actor [email protected] visibility 0

0337: set_actor [email protected] visibility 0

0568: set_actor [email protected] targetable 0

0568: set_actor [email protected] targetable 0

01B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this

01B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this

01B9: set_actor [email protected] armed_weapon_to 38

01B9: set_actor [email protected] armed_weapon_to 38

02A9: set_actor [email protected] immune_to_nonplayer 1

02A9: set_actor [email protected] immune_to_nonplayer 1

02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1

02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1

054A: set_actor [email protected] immune_to_car_headshots 1

054A: set_actor [email protected] immune_to_car_headshots 1

0464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset 0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 38

0464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset -0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 38

 

:MONSTERMGS_319

0001: wait 0 ms

00D6: if

0AB0: key_pressed 96

004D: jump_if_false @MONSTERMGS_319

0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.75 25.0 -0.5

0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset -0.75 25.0 -0.5

0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 500 ms

0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 500 ms

0001: wait 300 ms

017B: set_actor [email protected] weapon 38 ammo_to 999999

017B: set_actor [email protected] weapon 38 ammo_to 999999

0002: jump @MONSTERMGS_319

Link to comment
Share on other sites

clear your cleo folder then try the script below

 

{$CLEO .cs}03A4: name_thread 'MONSTERMGS':MONSTERMGS_10001: wait 0 msif0256:   player $PLAYER_CHAR defined004D: jump_if_false @MONSTERMGS_1if00DF:   actor $PLAYER_ACTOR driving004D: jump_if_false @MONSTERMGS_10247: load_model #MINIGUN0247: load_model #MALE01:MONSTERMGS_280001: wait 0 ms00D6: if and0248:   model #MINIGUN available0248:   model #MALE01 available004D: jump_if_false @MONSTERMGS_2803C0: [email protected] = actor $PLAYER_ACTOR car009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.0009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.00337: set_actor [email protected] visibility 10337: set_actor [email protected] visibility 10568: set_actor [email protected] targetable 00568: set_actor [email protected] targetable 001B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this01B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this01B9: set_actor [email protected] armed_weapon_to 3801B9: set_actor [email protected] armed_weapon_to 3802E2: set_actor [email protected] weapon_accuracy_to 100 02E2: set_actor [email protected] weapon_accuracy_to 10002A9: set_actor [email protected] immune_to_nonplayer 102A9: set_actor [email protected] immune_to_nonplayer 102AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 102AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 10946: set_actor [email protected] actions_uninterupted_by_weapon_fire 1060B: set_actor [email protected] decision_maker_to 320946: set_actor [email protected] actions_uninterupted_by_weapon_fire 1060B: set_actor [email protected] decision_maker_to 32054A: set_actor [email protected] immune_to_car_headshots 1054A: set_actor [email protected] immune_to_car_headshots 10464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset 0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 380464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset -0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 380114: set_actor [email protected] car_weapon  38 ammo_to  20000114: set_actor [email protected] car_weapon  38 ammo_to  2000:MONSTERMGS_3190001: wait 0 msif0256:   player $PLAYER_CHAR defined004D: jump_if_false @MONSTERMGS_500if and8119:   not car [email protected] wrecked00DF:   actor $PLAYER_ACTOR driving004D: jump_if_false @MONSTERMGS_5000407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.75 25.0 -0.50407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset -0.75 25.0 -0.50668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 500 ms0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 500 ms0001: wait 300 ms0114: set_actor [email protected] car_weapon  38 ammo_to  20000114: set_actor [email protected] car_weapon  38 ammo_to  20000002: jump @MONSTERMGS_319:MONSTERMGS_5000465: remove_actor [email protected] from_turret_mode0465: remove_actor [email protected] from_turret_mode009B: destroy_actor [email protected] 009B: destroy_actor [email protected] 01C3: remove_references_to_car [email protected] 10000002: jump @MONSTERMGS_1

 

Link to comment
Share on other sites

thanks a lot but i already managed to fix the script, i dont know what the problem was, but i rebuilt it from scratch and it works

Link to comment
Share on other sites

thanks a lot but i already managed to fix the script, i dont know what the problem was, but i rebuilt it from scratch and it works

Then why did you asked for help if you could try harder and fix the script.

Link to comment
Share on other sites

i couldnt, i tried for like 3 hours streak yesterday

about in the second hour i published the question

i hoped that someone will answer fast,but probably the time difference

and today in the morning i deleted the script, and re-created it,dont know why it didnt worked the first time

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.