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

[GTAVC]Want Actor to NOT spawn when Player in Interiours


DoubleVision
 Share

Recommended Posts

I'm trying to make the actor NOT spawn when I'm inside any interiour, for, example inside Northpoint Mall, Oceanview hotel, etc. I'm using a stripped main.scm:

 

004F: create_thread @NEMESIS_1 // Resident Evil Nemesis Spawns

:NEMESIS
03A4: name_thread 'NEMESIS'

:NEMESIS_1
0001: wait 99990 ms
00D6: if and
0256: player $PLAYER_CHAR defined
8118: not actor $PLAYER_ACTOR dead
004D: jump_if_false @NEMESIS_1
0247: request_model #COP
0247: request_model #MINIGUN
038B: load_requested_models
04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset -5.0 49.0 1.0
009A: [email protected] = create_actor 4 #COP at [email protected] [email protected] -100.0
0245: set_actor [email protected] walk_style_to 37 ///was 49 jogger
0223: set_actor [email protected] health_to 5000
01B9: set_actor [email protected] armed_weapon_to 33
01B2: give_actor [email protected] weapon 33 ammo 100 // Load the weapon model before using this
02E2: set_actor [email protected] weapon_accuracy_to 50
0489: set_actor [email protected] muted 1
0446: set_actor [email protected] head_decapitatation_possible 0 ///was 1
02AB: set_actor [email protected] immunities BP 0 FP 0 EP 0 CP 0 MP 0
02E0: actor [email protected] aggressive
03FE: set_actor [email protected] money 5000
01CC: actor [email protected] kill_player $PLAYER_CHAR
0002: jump @NEMESIS_2

:NEMESIS_2
0001: wait 500 ms
00D6: if or
8256: not player $PLAYER_CHAR defined
0118: actor $PLAYER_ACTOR dead
0118: actor [email protected] dead
004D: jump_if_false @NEMESIS_3
0002: jump @NEMESIS_4

:NEMESIS_3
0001: wait 500 ms
00D6: if or
80FB: not player $PLAYER_CHAR 0 [email protected] radius 90.0 90.0 90.0
0449: actor [email protected] in_a_car
004D: jump_if_false @NEMESIS_3
0002: jump @NEMESIS_4

:NEMESIS_4
0001: wait 100 ms
034F: destroy_actor_with_fade [email protected] // The actor fades away like a ghost
0002: jump @NEMESIS_5

:NEMESIS_5
0001: wait 99990 ms
00D6: if and
0256: player $PLAYER_CHAR defined
8118: not actor $PLAYER_ACTOR dead
004D: jump_if_false @NEMESIS_5
0247: request_model #COP
0247: request_model #CHNSAW
038B: load_requested_models
04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset -5.0 49.0 1.0
009A: [email protected] = create_actor 4 #COP at [email protected] [email protected] -100.0
0245: set_actor [email protected] walk_style_to 37 ///was 49 jogger
0223: set_actor [email protected] health_to 5000
01B9: set_actor [email protected] armed_weapon_to 11
01B2: give_actor [email protected] weapon 11 ammo 900 // Load the weapon model before using this
02E2: set_actor [email protected] weapon_accuracy_to 50
0489: set_actor [email protected] muted 1
0446: set_actor [email protected] head_decapitatation_possible 0 ///was 1
02AB: set_actor [email protected] immunities BP 0 FP 0 EP 0 CP 0 MP 0
02E0: actor [email protected] aggressive
03FE: set_actor [email protected] money 5000
01CC: actor [email protected] kill_player $PLAYER_CHAR
0002: jump @NEMESIS_6

:NEMESIS_6
0001: wait 500 ms
00D6: if or
8256: not player $PLAYER_CHAR defined
0118: actor $PLAYER_ACTOR dead
0118: actor [email protected] dead
004D: jump_if_false @NEMESIS_7
0002: jump @NEMESIS_8

:NEMESIS_7
0001: wait 500 ms
00D6: if or
80FB: not player $PLAYER_CHAR 0 [email protected] radius 90.0 90.0 90.0
0449: actor [email protected] in_a_car
004D: jump_if_false @NEMESIS_7
0002: jump @NEMESIS_8

:NEMESIS_8
0001: wait 100 ms
034F: destroy_actor_with_fade [email protected] // The actor fades away like a ghost
0002: jump @NEMESIS_9

:NEMESIS_9
0001: wait 99990 ms
00D6: if and
0256: player $PLAYER_CHAR defined
8118: not actor $PLAYER_ACTOR dead
004D: jump_if_false @NEMESIS_9
0247: request_model #COP
0247: request_model #FLAME
038B: load_requested_models
04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset -5.0 49.0 1.0
009A: [email protected] = create_actor 4 #COP at [email protected] [email protected] -100.0
0245: set_actor [email protected] walk_style_to 37 ///was 49 jogger
0223: set_actor [email protected] health_to 5000
01B9: set_actor [email protected] armed_weapon_to 31
01B2: give_actor [email protected] weapon 31 ammo 900 // Load the weapon model before using this
02E2: set_actor [email protected] weapon_accuracy_to 100
0489: set_actor [email protected] muted 1
0446: set_actor [email protected] head_decapitatation_possible 0 ///was 1
02AB: set_actor [email protected] immunities BP 0 FP 0 EP 0 CP 0 MP 0
02E0: actor [email protected] aggressive
03FE: set_actor [email protected] money 5000
01CC: actor [email protected] kill_player $PLAYER_CHAR
0002: jump @NEMESIS_10

:NEMESIS_10
0001: wait 500 ms
00D6: if or
8256: not player $PLAYER_CHAR defined
0118: actor $PLAYER_ACTOR dead
0118: actor [email protected] dead
004D: jump_if_false @NEMESIS_11
0002: jump @NEMESIS_12

:NEMESIS_11
0001: wait 500 ms
00D6: if or
80FB: not player $PLAYER_CHAR 0 [email protected] radius 90.0 90.0 90.0
0449: actor [email protected] in_a_car
004D: jump_if_false @NEMESIS_11
0002: jump @NEMESIS_12

:NEMESIS_12
0001: wait 100 ms
034F: destroy_actor_with_fade [email protected] // The actor fades away like a ghost
0002: jump @NEMESIS_1

Edited by Dachinko
Link to comment
Share on other sites

spaceeinstein

Are you willing to use CLEO? Without CLEO, any time a change in interior occurs, you have to set up a global variable indicating that it has happened. With CLEO, you can simply retrieve the active interior number from memory and check if it's 0.

Edited by spaceeinstein
Link to comment
Share on other sites

Hi, spacey. I'm using a stripped main.scm for Xbox. I need it for a Zombie mod Project. I already went over the limit of actors spawning. If I add anymore the game can glitch and maybe even freeze.

Unfortunately, xbox doesn't support cleo.

I have about:

~21 zombies spawning in main world (of over 100 something varieties, one ped spawning after a different one spawns/taking turns)

~20 something more spawning in interiours in alternating co-ordinates

~like 1 human survivor at the vercetti mansion from alternating co-ordinates.

 

I think 40 is the limit for xbox? I tried added one extra one and the map would glitch out.

I want to add zombies in the shooting range, but zombies are still spawning outside. I want the ones that spawn outside to stop when I enter shooting range so that I can spawn some inside.

 

I also have zombies spawning inside the northpoint Mall, but it lags, because there's 21 zombies spawning outside and then the 7 or so inside the mall.

 

Xbox can only use scripts from main.scm.

Edited by Dachinko
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.