Spawn Generator
I made this version for my Call Of Duty mw2 Mod,
I don't know if its a good way, but if U think its usefull, Have fun with it. PHP Code:
The system: - When a player die, it will save his origins (If hes not stuck), and when the cvar (spawngenerator_spawns) is reached, it will spawn players on those origins. - It will get enabled when the cvar is reached. Else its just to the spawn. If U got some improvements, post them! Btw this is made for Deathmatch mode, so everyone won't spawn at once. |
Re: Spawn Generator
Why not check minimum distance between spawns? There could be 10 spawns literally on same place.
|
Re: Spawn Generator
Hmm, good idea.
I will add it, and a checker if a player is close, don't teleport him to there. |
Re: Spawn Generator
You could also add "angles calculator", so players won't spawn aiming at the wall.
|
Re: Spawn Generator
With "angles calculator",
You mean save player that die's his angles, & put it to the player that spawns, or just put it *AMOUNT* ? |
Re: Spawn Generator
Quote:
|
Re: Spawn Generator
Update
Added a "spawn close" check, and a check if a player is close, but not tested that one. About angles, I will do some researche. |
Re: Spawn Generator
For some reasons player spawn somtimes in the ground Oo
|
Re: Spawn Generator
Nice! can be useful
|
| All times are GMT -4. The time now is 20:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.