Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      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

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

need help with a fire mod


tysman
 Share

Recommended Posts

Basically I have this fire mod and what it does is you push the key SHIFT + the key F and then a fire would appear with logs and also a fire extinguisher near by. what I sorta want it to do is when CJ puts the fire out the logs go away. And then CJ can place another fire. Here is my full code:

 

// 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---------------0000: NOP :NONAME_2wait 0 if   Player.Defined($PLAYER_CHAR)else_jump @NONAME_2 Model.Load(#FIRE_EX)Model.Load(1463)04ED: load_animation "BOMBER" 038B: load_requested_models jump @NONAME_51 :NONAME_51wait 0 if and  Model.Available(1463)  Model.Available(#FIRE_EX)04EE:   animation "BOMBER" loaded else_jump @NONAME_51 jump @NONAME_93 :NONAME_93wait 0 if and  not Actor.Driving($PLAYER_ACTOR)8449:   not actor $PLAYER_ACTOR in_a_car else_jump @NONAME_93 jump @NONAME_125 :NONAME_125wait 0 if and0AB0:   key_pressed 16 0AB0:   key_pressed 70 else_jump @NONAME_93 jump @NONAME_155 :NONAME_155wait 0 $ONMISSION = 1 0605: actor $PLAYER_ACTOR perform_animation_sequence "BOM_PLANT_IN" IFP_file "BOMBER" 4.0 loop 0 0 0 0 time -1 // versionA 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 2.0 -1.0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset -0.2 -2.0 0.0 wait 200 02CF: [email protected] = create_fire_at [email protected] [email protected] [email protected] propagation 0 size 1 [email protected] = Object.Init(1463, [email protected], [email protected], [email protected])032B: [email protected] = create_weapon_pickup #FIRE_EX group 3 ammo 1000 at [email protected] [email protected] [email protected] jump @NONAME_335 :NONAME_335wait 0 if 80EC:   not actor $PLAYER_ACTOR 0 near_point [email protected] [email protected] radius 100.0 100.0 else_jump @NONAME_397 Object.RemoveReferences([email protected])02D1: remove_fire [email protected] $ONMISSION = 0 jump @NONAME_93 :NONAME_397wait 0 if and0AB0:   key_pressed 16 0AB0:   key_pressed 70 else_jump @NONAME_335 Object.RemoveReferences([email protected])$ONMISSION = 0 jump @NONAME_439 :NONAME_439wait 0 if and  not Actor.Driving($PLAYER_ACTOR)8449:   not actor $PLAYER_ACTOR in_a_car else_jump @NONAME_439 jump @NONAME_155 

 

Link to comment
Share on other sites

Yes I want to terminate the logs when the fire is put out, then if i press those keys again it do the script all over again. smile.gif

Edited by tysman
Link to comment
Share on other sites

You have to check if the fire is extinguished, then you can pick the logs to remove them. Your script creates the logs again if you've already placed ones. In this case, you have to use arrays instead of the simple var but it would look weird, because you'll be able to put as many logs you want all over the world. So I made this script. smile.gif

 

{$CLEO .cs}0000: NOP :NONAME_2wait 0 if   Player.Defined($PLAYER_CHAR)else_jump @NONAME_2 Model.Load(#FIRE_EX)Model.Load(1463)04ED: load_animation "BOMBER" 038B: load_requested_models :NONAME_51if and  not Model.Available(1463)  not Model.Available(#FIRE_EX)04EE:   animation "BOMBER" loaded else_jump @NONAME_93 wait 0 jump @NONAME_51 :NONAME_93wait 0 if   not Actor.Driving($PLAYER_ACTOR)else_jump @NONAME_93 if and0AB0:   key_pressed 16 0AB0:   key_pressed 70 else_jump @NONAME_93 $ONMISSION = 1 0605: actor $PLAYER_ACTOR perform_animation_sequence "BOM_PLANT_IN" IFP_file "BOMBER" 4.0 loop 0 0 0 0 time -1 // versionA:NONAME_125wait 0 if   Actor.Animation($PLAYER_ACTOR) == "BOM_PLANT_IN"jf @NONAME_125 0613: [email protected] = actor $PLAYER_ACTOR animation "BOM_PLANT_IN" time if  [email protected] > 0.80 else_jump @NONAME_125 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 2.0 -1.0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset -0.2 -2.0 0.0 [email protected] = Object.Init(1463, [email protected], [email protected], [email protected])02CF: [email protected] = create_fire_at [email protected] [email protected] [email protected] propagation 0 size 1 032B: [email protected] = create_weapon_pickup #FIRE_EX group 3 ammo 1000 at [email protected] [email protected] [email protected] :NONAME_335wait 0 if or02D0:   fire [email protected] extinguished80EC:   not actor $PLAYER_ACTOR 0 near_point [email protected] [email protected] radius 50.0 50.0 else_jump @NONAME_335 Model.Destroy(#FIRE_EX)Model.Destroy(1463)04EF: release_animation "BOMBER" Object.Destroy([email protected])02D1: remove_fire [email protected] $ONMISSION = 0 if   not Pickup.Picked_up([email protected])else_jump @NONAME_397 Pickup.Destroy([email protected]):NONAME_397jump @NONAME_2 

 

012          345
678   9A   BCD
EFG HIJK LMN
OPQR  STUV
WX    YZ

Link to comment
Share on other sites

Thank you that worked 100% have some cookie.gifcookie.gifcookie.gifcookie.gifcookie.gif The last thing I would like to do is make a campfire ring with logs in it, so it's just like camping. Do you know if those logs are being used somewhere on the map or should I just make one from scratch

Link to comment
Share on other sites

As I remember, I haven't ever seen one. Maybe someone has already found it. sad.gif

012          345
678   9A   BCD
EFG HIJK LMN
OPQR  STUV
WX    YZ

Link to comment
Share on other sites

Ok no problem one last question is, do you know or do you know somebody that knows about merging a COLL file with a DFF file confused.gif

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.