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

Small question


Jack
 Share

Recommended Posts

I need opcode that is opossite then this one:

 

031E: vehicle [email protected] hit_by_weapon 30

 

For example something like this:

 

...NOT  vehicle [email protected] hit_by_weapon 30

 

I searched the opcode database and I didn't find it. Is this opcode exist?

Link to comment
Share on other sites

Replace the very first 0 with 8 to negate opcode.

Link to comment
Share on other sites

i think 8 at the starting doesn't work with all opcodes, not for me at-lest,

like cleo key opcode,

 

@JACK JONES

bad_boy is right,

or

you can use this method also

 

 

:1wait 0if031E: vehicle [email protected] hit_by_weapon 30jf @2jump @1:2

 

Link to comment
Share on other sites

I want to thank you all for the ideas. But when I would use this method:

 

:1  wait 0  if  031E: vehicle [email protected] hit_by_weapon 30  jf @2  jump @1    :2

 

I wouldn't know how to proced. I mean, I want to force heli to explode when I hit him with the RPG projectile (no matter how many health heli had). If it's not true that the heli is hit with weapon 30 (RPG) then I don't know what to write in :2 label.

Link to comment
Share on other sites

To force the Heli to explode when you shoot it with an RPG you dont need to negate the opcode!

 

Here is the correct code:

 

 

:1wait 0if 031E:  car [email protected] hit_by_weapon 35jf @1020B: explode_car [email protected]: remove_references_to_car [email protected]_thread

 

 

OR

 

get creative and simulate a crash landing:

 

 

:1wait 0if 031E:  car [email protected] hit_by_weapon 35jf @10564: heli [email protected] simulate_crash_landing wait 5000020B: explode_car [email protected]: remove_references_to_car [email protected]_thread

 

Edited by The_Sorrow
Link to comment
Share on other sites

i think 8 at the starting doesn't work with all opcodes

Yes it does.

Link to comment
Share on other sites

Hey guys, it's me again. I wanted to talk to you before but I cought a flue so I was in bad for almost the whole two days. I'm hoping you are still here because some of you said weapon 30, and others said weapon 35, so which is it? And I didn't have a chance to test all this ideas in my scrypt until now (because I was sick). It seems that non of this works in my scrypt which is very strange because all of this ideas look so logical. The chopper just don't want to explode when I hit him with the RPG. Here's the scrypt:

 

:H1  thread 'H1'   wait 250   Model.Load(#HUNTER)  Model.Load(#ARMY)  Model.Load(#M4)  Model.Load(#ROCKETLA)  038B: load_requested_models     :H1_36  wait 0   if and  Model.Available(#HUNTER)  Model.Available(#ARMY)  Model.Available(#M4)  Model.Available(#ROCKETLA)else_jump @H1_36   04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0 100.0 50.0   [email protected] = Car.Create(#HUNTER, [email protected], [email protected], [email protected])  Car.Health([email protected]) = 150000  0129: [email protected] = create_actor 4 #ARMY in_car [email protected] driverseat   Actor.Health([email protected]) = 10  [email protected] = Actor.Create(CivMale, #ARMY, [email protected], [email protected], [email protected])  [email protected] = Actor.Create(CivMale, #ARMY, [email protected], [email protected], [email protected])  02E2: set_actor [email protected] weapon_accuracy_to 75   02E2: set_actor [email protected] weapon_accuracy_to 75   0464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset 0.8 0 0.5 position 3 angle 180.0 with_weapon 26   0464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset -0.8 0 0.5 position 3 angle 180.0 with_weapon 26   01CA: actor [email protected] kill_player $PLAYER_CHAR   01CA: actor [email protected] kill_player $PLAYER_CHAR   Marker.TieToCar([email protected], [email protected], 4, 2)  Marker.SetColor([email protected], 1)  Model.Destroy(#HUNTER)  Model.Destroy(#ARMY)  Model.Destroy(#M4)  Model.Destroy(#ROCKETLA)  gosub @H1_311     :H1_311  04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0 40.0 20.9   04A2: heli [email protected] fly_to [email protected] [email protected] [email protected] speed 100   0170: [email protected] = player $PLAYER_CHAR z_angle   [email protected] -= 180.0 // floating-point values   04D0: heli [email protected] turn_to_angle [email protected]   if   8443:   not player $PLAYER_CHAR in_a_car   else_jump @H1_454   if   0449:   actor [email protected] in_a_car   else_jump @H1_553   if   831E:   not vehicle [email protected] hit_by_weapon 35   else_jump @H1_570   if      $307 == 1 // integer values   else_jump @H1_721   return   05DC: end_custom_thread :H1_454  wait 0   04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0 -25.0 75.0   04A2: heli [email protected] fly_to [email protected] [email protected] [email protected] speed 100   04D1: reset_heli [email protected] looking_angle  if      $307 == 1 // integer values   else_jump @H1_721   if   8443:   not player $PLAYER_CHAR in_a_car   else_jump @H1_454   wait 0   jump @H1_311     :H1_553  0564: set_vehicle [email protected] helicopter_simulate_crash_landing   wait 4000   jump @H1_570     :H1_570  04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0 40.0 0   02D4: car [email protected] turn_off_engine   020B: explode_car [email protected]   Car.StorePos([email protected], [email protected], [email protected], [email protected])  020C: create_explosion_with_radius 2 at [email protected] [email protected] [email protected]   020C: create_explosion_with_radius 11 at [email protected] [email protected] [email protected]   020C: create_explosion_with_radius 1 at [email protected] [email protected] [email protected]   020C: create_explosion_with_radius 6 at [email protected] [email protected] [email protected]   039D: scatter_particles 17 0.8 0 0 0 11000 at [email protected] [email protected] [email protected] 0.1 0.0 0.2   jump @H1_800     :H1_721  wait 0   if      $ONMISSION == 0 // integer values   else_jump @H1_311   04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0 400.0 500.0   04A2: heli [email protected] fly_to [email protected] [email protected] [email protected] speed 100   wait 4000   jump @H1_800     :H1_800  Marker.Disable([email protected])  Actor.DestroyInstantly([email protected])  Actor.DestroyInstantly([email protected])  Actor.DestroyInstantly([email protected])  Car.Destroy([email protected])

 

And I was having some serious problems with this opcode: "NOT player $PLAYER_CHAR in_a_car". I think I solve that problem but if you see some errors in scrypt related to this opcode please tell me about it. Thank you for your time.

Link to comment
Share on other sites

RPG works with 35,

press F12 while in SannyBuilder & goto SCM Documentation: GTA SA: Weapon numbers,

to see which integer is for which weapon,

 

put something after

 

Car.Destroy([email protected])

 

like

 

05DC: end_custom_thread

 

if it is a cleo script

&

 

004E: end_thread 

 

if it is in Main.scm

 

otherwise game will crash after it,

Link to comment
Share on other sites

Actually I'm building a scrypt for Vice City and I found this text somewhere:

 

30 7  RocketLauncher   #rocketla  (returns nothing)  31 7  FlameThrower     #flame       32 7  M60              #M60         33 7  Minigun          #minigun     35 7  HeliCannon

 

And I tried with 30 and 35 and non of this is working.

Link to comment
Share on other sites

Do you mean Rocket launcher by RPG ?

its 's 30.

lots of problem in you script!

---------------------------------------------

 

04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0 100.0 50.0  // 0.0 instead of 0$307 == 1       //what is this ???04A2: heli [email protected] fly_to [email protected] [email protected] [email protected] speed 100    // the speed is must be in float, like 100.004C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0 40.0 0   //here also [email protected] = Actor.Create(CivMale, #ARMY, [email protected], [email protected], [email protected])    //civmale ???? integer instead of it

 

---------------------------------------------

not crashing anymore!!

but chooper disapperr

i am making a new script for you

---------------------------------------------

something like this ???

 

// This file was decompiled using vicescm.ini published by GtaForums.com on 27.7.07{$VERSION 2.2.0000}{$CLEO .cs} thread 'Ashwin' Model.Load(#HUNTER)  Model.Load(#ARMY)   038B: load_requested_models     :0 wait 0   if and00E1:   key_pressed 0 18 Model.Available(#HUNTER)Model.Available(#ARMY)jf @004C4: create_coordinate [email protected] [email protected] [email protected] from_actor $player_actor offset 0.0 50.2 50.0 00A5: [email protected] = create_car 155 at [email protected] [email protected] [email protected]: set_car [email protected] health_to 99999 04BA: set_car [email protected] speed_instantly 0.0 0129: [email protected] = create_actor 4 #ARMY in_car [email protected] driverseat :1wait 004BA: set_car [email protected] speed_instantly 0.0if or031E:   vehicle [email protected] hit_by_weapon 30031E:   vehicle [email protected] hit_by_weapon 26  jf @1   0564: set_vehicle [email protected] helicopter_simulate_crash_landing wait 25000407: create_coordinate [email protected] [email protected] [email protected] from_car [email protected] 2.0 2.5 1.0           020C: create_explosion_with_radius 2 at [email protected] [email protected] [email protected] 50 0407: create_coordinate [email protected] [email protected] [email protected] from_car [email protected] -2.5 -2.0 0.0020C: create_explosion_with_radius 7 at [email protected] [email protected] [email protected] 1500407: create_coordinate [email protected] [email protected] [email protected] from_car [email protected] -2.5 -2.0 2.0020C: create_explosion_with_radius 6 at [email protected] [email protected] [email protected] 350            0407: create_coordinate [email protected] [email protected] [email protected] from_car [email protected] 2.0 2.5 1.0           020C: create_explosion_with_radius 2 at [email protected] [email protected] [email protected] 50 0407: create_coordinate [email protected] [email protected] [email protected] from_car [email protected] -2.5 -2.0 0.0020C: create_explosion_with_radius 7 at [email protected] [email protected] [email protected] 6500407: create_coordinate [email protected] [email protected] [email protected] from_car [email protected] -2.5 -2.0 2.0020C: create_explosion_with_radius 16 at [email protected] [email protected] [email protected] 5001C3: remove_references_to_car [email protected] // Like turning a car into any random car jump @0  

 

Edited by Ashwin the new boy
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.