ZDoom / gzdoom

GZDoom is a feature centric port for all Doom engine games, based on ZDoom, adding an OpenGL renderer and powerful scripting capabilities
http://zdoom.org
GNU General Public License v3.0
2.33k stars 526 forks source link

Added ChangeTeam function for teamplay #2577

Closed Boondorl closed 1 month ago

Boondorl commented 1 month ago

Also removes the TeamLibrary global since all it did was call what should've been static functions.

MajorCooke commented 1 month ago

Yes! Thank you so much! Finally my Darwinia mod can have a better method of team changing instead of some hack I wrote.

One small request, can there be a way to change a team's color? Or is that not possible?

Boondorl commented 1 month ago

It's doable, just didn't have a personal reason to add it (I needed this for a special DM gamemode in my own mod, but it's good to give the server control of this in-general since it can also be used for things like auto-switching teams and balancing them).