Swap team spawns
1 Attachment(s)
Swap team spawns v1.4
Author: Digi (aka Hunter-Digital) 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 :twisted: (just an example usage :lol:) 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 Credits: - Buy zone team discussions, that helped me with the buyzone switching - stupok for his code with storing values and getting to switch spawns without deleting the extra ones - meigyoku for the swapping at the X round ideea 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) This plugin can be compiled via Web Compiler (aka "Get Plugin") |
Re: Reverse Player Spawns
Why not? :twisted:
Nice |
Re: Reverse Player Spawns
What if a map has 16 CT spawns and only 10 T spawns ?
You could delete 6 CT spawns to fix that possible issue. |
Re: Reverse Player Spawns
Why not what ?
Yes, those 6 extra spawns are removed, until I find a better way to switch them without deleting any :} hmm... just got an ideea, let me just test it... |
Re: Reverse Player Spawns
Also, where is the place to set the cvar to 1 ?
I mean, you are resetting it to 0 on plugin_init, plugin_cfg is called 1sec after it, but amxx.cfg is randomùy executed from plugin_init and per maps configs are randomly executed like 6.1 sec after plugin_cfg. So, per maps settings will fail. I suggest to add a command instead of a cvar. -edit- For those 6 extra spawns, i remember haveing tried to alter classname and failed. |
Re: Reverse Player Spawns
That ideea doesn't work, wanted to rename them :lol: (edit: yes, the classname thing, doesn't seem to want to work)
Oh well, new version uploaded... you can toggle spawn reversing mid-game now. |
Re: Reverse Player Spawns
Now you need to add something so you don't delete those 6 ents so when you toggle you can retrieve them :)
|
Re: Reverse Player Spawns
Well it seems I can't create spawn points O.o I searched for all codes I could search, nothing worked, they all spawn me at 0 0 0 even tough the entity's position is where it should be...
|
Re: Reverse Player Spawns
nice plugin dude. :)
|
Re: Reverse Player Spawns
Like it! +k
|
All times are GMT -4. The time now is 04:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.