Author Topic: Where's the code to modify the zombie spawn distance in Rotondo's zombie mod?  (Read 1324 times)

So, I'm trying to set something up for a project I'm working on, but I found out that gamemode_zombie only spawns in the zombies from a certain distance that, as far as I can tell, I can't change. I'd like to figure out where the code to change this set distance is, so that I can change it.

Here is everything spawn related I found. I got this code from Bot_Blockhead if you were wondering.
Code: [Select]
hSpawnTooClose = 0;//Doesn't spawn when player is too close and can see it
hSpawnTCRange = 8;//above range, set in brick units
hSpawnClose = 0;//Only spawn when close to a player, can be used with above function as long as hSCRange is higher than hSpawnTCRange
hSpawnCRange = 32;//above range, set in brick units

This should be everything you need to solve your problem. Also, don't lock your topic, people sometimes have questions.

Edit: Just realized you're using an old mod. If you can't find it, chances are it isn't there, the mod is really old and unsupported. I suggest sticking with the new bots, they're much more efficient and easier to work with.
« Last Edit: June 01, 2014, 01:22:25 AM by YK »

The only reason I'm using Rotondo's is because of the different types of zombies, anyway.
Thanks, though.

EDIT: Figured out how to do this, actually.
Gonna use normal bot hole bricks, with onbotspawn > Bot > Changedatablock > (datablock).
Fixes my problems so that I can use it right, since it's basically only the spawning mechanic I need to change.
Might need to go through some of the code actually and rip it from gamemode_zombie to get it working though since it only seems to change certain aspects.

Or I might try using a vehicle spawn and having it spawn on round start and whenever the vehicle dies, hmm.

EDIT2: The above that isn't crossed out works. Onroundstart(slayer events) > self > respawnvehicle, onvehicledeath(event_vehicle[i think]), it's in the RTB backups) > self > respawnvehicle are the exact events.

Now I just need to get it working with slayer, if I can find where the code for enabling them in minigames is.
nope forget trying to get it to cooperate with slayer, it's pissy and I can't figure out how to make the GUI's work with eachother, and directly editing the compatibility code didn't work either
« Last Edit: June 01, 2014, 10:23:59 AM by Aut0 »