View Single Post
Author Message
senseit
Member
Join Date: Aug 2009
Old 08-30-2011 , 00:41   [Nuclear Dawn] Swap Teams at Round End
Reply With Quote #1

The 2 nuclear dawn maps released with the beta were both kind of one sided. Due to benefits/downside of each class. Using a swap team plugin the players might be able to recover their honor after the slaughter they just experienced.

As an example empire is better on downtown as only a few relay towers are needed for those long stretches to get to forward points. On the flip side due to consortium's non-LOS nature of their power propagation they only need 2 relay towers to get to mid on metro.

This will work on any game that uses round_win as the event name and uses team id # 2 and 3 as the 2 team IDs. However, I may add subclass memory (where it will automatically assign the subclass to the last subclass the user was using). When that happens the plugin will only work for nuclear dawn.

As of posting this there is a bug with nuclear dawn where the round_win event only fires after the first round end and not on any successive round ends. So your server should be set to max rounds of 2 (default).

Installation:
Drop the plugin file into your sourcemod's plugin directory and change the map.

Update: cleaned up some of the code

Update: Fixed a possible bug

Update: Fixed a bug that happens in conjunction with [Nuclear Dawn] Team Balancer plugin.
Attached Files
File Type: sp Get Plugin or Get Source (nd-round-teamswap.sp - 764 views - 957 Bytes)

Last edited by psychonic; 12-17-2011 at 11:01. Reason: set Game to Nuclear Dawn
senseit is offline