I threw together a really simple spawn system in an old iSnipe mod I put together a good amount of time ago.
I was wondering if there was a better way to go about this in a "revamped" version of this old mod of mine.
It works really well, only people would drop a few feet when spawning and get hurt and the guy would continuously make the "bleeding noise" (panting).. Which I think I wound up fixing some how.. I don't really remember it was so long ago xD.
And, players would spawn facing random directions, and I definitely never figured out how to set the direction they were facing. If anyone knows a better way to set up a spawn system, please don't hesitate to contact me! Either on here or via
Skype: thatKid.bro
My code:
Code:
spawnsys()
{
if(getDvar("mapname") == "mp_terminal")
{
if(self.team == "allies")
{
{
self.spawnLocations = [];
self.spawnLocations[0] = (-310.8, 4853.7, 253.1);
self.spawnLocations[1] = (-56.7, 4866.4, 253.1);
self.spawnLocations[2] = (-57.3, 5383.9, 253.1);
self.spawnLocations[3] = ( 75.3, 5405.2, 252.1);
self.spawnLocations[4] = ( 396.9, 5062, 252.1);
self.spawnLocations[5] = (-439.5, 5585.2, 252.1);
self setOrigin(self.spawnLocations[randomInt(self.spawnLocations.size)]);
}
}
else if(self.team == "axis")
{
{
self.spawnLocations = [];
self.spawnLocations[0] = ( 2254.7, 4485.5, 252.1);
self.spawnLocations[1] = ( 1944.4, 5035.9, 252.1);
self.spawnLocations[2] = ( 2307.0, 4731.8, 252.1);
self.spawnLocations[3] = ( 2579.4, 4748.6, 252.1);
self.spawnLocations[4] = ( 2202.1, 4198.3, 108.1);
self.spawnLocations[5] = ( 2616.8, 4130.4, 108.1);
self setOrigin(self.spawnLocations[randomInt(self.spawnLocations.size)]);
}
}
}
}
Just checked, I did wind up fixing the "panting/bleeding noise". So that's not a problem anymore.