Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
tysman

help me please!

Recommended Posts

ZAZ

 

Oh ok that sound simple enough here is my spawn places coord's table (mine doesn't have a gosub but it works anyway) I would like to make lets just say 8 of 21 of these to spawn without fog here is the two sets of code to make him spawn:

 

This is the old fog code used in the original script so should I remove this?

 

 

Again: Its possible to use the fog check to select between 2 different coords groupes.

Maybe spawnings near the street by fog and deep in the forrest if no fog

It doesnt matter if the coords are in a subscript or insert in the script but its better to read the script if the coords are excluded.

 

What I did:

The script choose a random integer value from 0 up to 8 if its foggy

and so it reads only one of the first 9 coords settings

 

If its not foggy it choose a random value from 9 up to 21

and so it reads in this case only one of the last 12 coords settings

 

 

 

 

 

{$CLEO .cs}:BigFozzyBear03A4: name_thread 'BIGFOZ'[email protected] = [email protected] = 0:BigFozzyBear_14wait 250if0256:   player $PLAYER_CHAR definedelse_jump @BigFozzyBear_14if and$ONMISSION == [email protected] == 000A3:   actor $PLAYER_ACTOR sphere 0 in_rectangle_cornerA -2815.2 -2911.9 cornerB 7.9 -748.38else_jump @BigFozzyBear_140A8D: [email protected] = read_memory 13112092 size 4 virtual_protect 00A8D: [email protected] = read_memory 13112096 size 4 virtual_protect 0if [email protected] == [email protected] == 9else_jump @BigFozzyBear_15 0209: [email protected] = random_int_in_ranges 0 8gosub @read_coords_tablejump @BigFozzyBear_17:BigFozzyBear_150209: [email protected] = random_int_in_ranges 9 21gosub @read_coords_table:BigFozzyBear_17if00FE: actor $PLAYER_ACTOR sphere 0 in_sphere [email protected] [email protected] [email protected] radius 260.0 260.0 260.0else_jump @BigFozzyBear_14:BigFozzyBear_444wait 0if823D: not special_actor 1 loadedelse_jump @BigFozzyBear_449023C: load_special_actor 'BIGFOOT' as 1 // models 290-299jump @BigFozzyBear_444:BigFozzyBear_44902CE: [email protected] = ground_z_at [email protected] [email protected] [email protected] = Actor.Create(24, #SPECIAL01, [email protected], [email protected], [email protected])0208: [email protected] = random_float_in_ranges 0.0 360.0Actor.Angle([email protected]) = [email protected]: set_actor [email protected] immune_to_headshots 0Actor.Health([email protected]) = 1000007BC: set_actor [email protected] decision_maker_to 32 // AS_pack_version04D8: set_actor [email protected] drowns_in_water 00946: set_actor [email protected] actions_uninterupted_by_weapon_fire 107FE: set_actor [email protected] fighting_style_to 5 003FE: set_actor [email protected] money 00245: set_actor [email protected] walk_style_to "OLDMAN"0187: [email protected] = create_marker_above_actor [email protected] 018B: set_marker [email protected] radar_mode 2 :BigFozzyBear_556wait 0if0256:   player $PLAYER_CHAR definedelse_jump @BigFozzyBear_556ifActor.Dead([email protected])else_jump @BigFozzyBear_602Actor.RemoveReferences([email protected])0296: unload_special_actor [email protected] = [email protected] = 00164: disable_marker [email protected] @BigFozzyBear_708:BigFozzyBear_602if   or80FE: not actor [email protected] near_point 0 in_sphere [email protected] [email protected] [email protected] radius 400.0 400.0 400.08104: not actor $PLAYER_ACTOR near_actor [email protected] radius 350.0 350.0 350.0 sphere 0 else_jump @BigFozzyBear_667Actor.DestroyWithFade([email protected])0296: unload_special_actor [email protected] = [email protected] = 00164: disable_marker [email protected] jump @BigFozzyBear_708:BigFozzyBear_667if and051A: actor [email protected] damaged_by_actor [email protected] == 0else_jump @BigFozzyBear_55605E2: AS_actor [email protected] kill_actor [email protected] = 1jump @BigFozzyBear_556 :BigFozzyBear_708jump @BigFozzyBear_14:[email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = [email protected] == [email protected] = [email protected] = [email protected] = 29.2691end0051: return 

 

Share this post


Link to post
Share on other sites
tysman

Thanks man that worked perfectly I tested it with 0 to 1 on no fog and it worked except the 1 worked and the zero didn't why is that? smile.gifsmile.gifsmile.gif

 

Anyway have 20 cookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gif

Share this post


Link to post
Share on other sites
tysman

All I want to say is thanks to all you guys for helping me with this issue everything is 100% the way I wanted it, everybody deserves 20 cookie.gifcookie.gifcookie.gifcookie.gifcookie.gifcookie.gif 's for that. There is another post by me where I need help with another scripting thing and modding thing as well but believe me it's allot easier, check it out colgate.gifcolgate.gif

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 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.