This could be applied to new game modes, where "zombies vs humans" would actually be team "zombie" and team "human".
Or even to league groups, where teams would be the names of each team playing each other.
I do imagine this would open up several new options which could be used or applied in different games.
Maps could also be made with using custom team flags, no longer needing to have a bot for an empty team.
As the teams are hard coded in 2.4.x, this would require a protocol break, but it would be nice to have as an up coming feature.
Code: Select all
#include "bzfsAPI.h"
class SAMPLE_PLUGIN : public bz_Plugin
{
public:
virtual const char* Name() { return "SAMPLE PLUGIN"; }
virtual void Init(const char* config);
virtual void Event(bz_EventData * /* eventData */) { return; }
virtual void Cleanup(void);
};
void SAMPLE_PLUGIN::Cleanup(void)
{
Flush();
bz_debugMessage(4, "SAMPLE_PLUGIN plugin unloaded");
}
BZ_PLUGIN(SAMPLE_PLUGIN)
void SAMPLE_PLUGIN::Init(const char* /*commandLine*/)
{
bz_debugMessage(4, "SAMPLE_PLUGIN plugin loaded");
registerCustomTeam("Humans");
registerCustomTeam("Zombies");
/*registerCustomTeamFlag("Humans",CD2626);
registerCustomTeamFlag("Zombies", 006400);*/
}
// Local Variables: ***
// mode:C++ ***
// tab-width: 8 ***
// c-basic-offset: 2 ***
// indent-tabs-mode: t ***
// End: ***
// ex: shiftwidth=2 tabstop=8