Swap Team Spawn

Swap team spawns v1.4
Description:

It swaps team spawns and buyzones.
This means that the CT team can spawn on de_dust2 in the Terrorist's base and the Terrorists in the CT base near the bombsites, you can also set mp_c4timer to 90 or 60, then the terrorists plant the bomb and let the time-pressing assault begin (just an example usage )

CVars:
- mp_swapspawns 0/1/2
0 = normal team spawns
1 = swapped team spawns
2 = swap teams each round
CVar Notes: This cvar resets itself to 0 at mapstart, use in map configurations to enable it for maps you want it to be enabled for.

- mp_swapround 0/x (Only works if "mp_swapspawns" is set to 2)
0 = don't use it, swap each round
x = swap at this round when reached
CVar Notes: This cvar resets itself to 0 at mapstart, use in map configurations to enable it for maps you want it to be enabled for.

- mp_showswapping 0/1/2
0 = do not show messages
1 = show messages when teams swap by cvar set to 1
2 = show messages when teams swap by cvar set to 1 OR 2 (each round)
CVar Notes: This cvar does not reset itself.

Modules used:
- Engine

Change Log:
Version 1.4
- some minor optimizations
- fixed message not showing when swapping set back to normal
- new cvar "mp_swapround", if "mp_swapspawns" is set to 2, only after the X round the team spawns will swap.
- now using only one log event hook for restart and round end
- when checking for online players, added to exclude hltv besides bots
- optimized code following stupok's tips too
- optimized code following Hawk552's tips
- removed the DELAY_FLOOD define because it wasn't needed anymore
Version 1.3:
- Changed name and variables to the "swap team spawns" style
- Added "swapspawns_version" public variable
- Changed so that spawns swap only at round end to prevent spawn conflicts
- Changed command into cvar for simple usage
- Added option to swap team spawns each round
- Added option to print a message when swapping occurs
Version 1.2: Re-coded to allow mid-game switch and not deleting extra spawns
Versions 1.1 and below: Release and modifications (forgot what exacly, doesn't matter anyway)


DOWNLOAD HERE
Get Plugin or Get Source (swap_spawns.sma - 1029 views - 9.2 KB)

No comments

Not a single link is allowed to submit in comment :o