void RabidRabbitEventHandler::Init(const char* /*commandLineParameter*/) { MaxWaitTime = 1.0f; bz_registerCustomMapObject("RABIDRABBITZONE",&rabidrabbithandler); bz_registerCustomMapObject("RRSOUNDOFF",&rabidrabbithandler); bz_registerCustomMapObject("RRCYCLEONDIE",&rabidrabbithandler); Register(bz_eTickEvent); Register(bz_ePlayerDieEvent); }
void SpawnAtBase::Init (const char* /*commandLine*/) { bz_registerCustomMapObject("BASESPAWNZONE", this); // Register our events with Register() Register(bz_eGetPlayerSpawnPosEvent); }
void KeepAwayEventHandler::Init(const char* /*commandLine*/) { MaxWaitTime = 0.5f; bz_registerCustomMapObject("keepaway",&keepawaymaphandler); Register(bz_ePlayerUpdateEvent); Register(bz_ePlayerPausedEvent); Register(bz_ePlayerPartEvent); Register(bz_ePlayerJoinEvent); Register(bz_ePlayerDieEvent); bz_registerCustomSlashCommand("kastatus",&keepawaycommands); bz_registerCustomSlashCommand("kaon",&keepawaycommands); bz_registerCustomSlashCommand("kaoff",&keepawaycommands); bz_registerCustomSlashCommand("katimemult",&keepawaycommands); bz_registerCustomSlashCommand("katimemultmin",&keepawaycommands); bz_registerCustomSlashCommand("katime",&keepawaycommands); bz_registerCustomSlashCommand("kaautotimeon",&keepawaycommands); bz_registerCustomSlashCommand("kaautotimeoff",&keepawaycommands); bz_registerCustomSlashCommand("kas",&keepawaycommands); bz_registerCustomSlashCommand("kaffon",&keepawaycommands); bz_registerCustomSlashCommand("kaffoff",&keepawaycommands); bz_registerCustomSlashCommand("kaf",&keepawaycommands); bz_registerCustomSlashCommand("kaf+",&keepawaycommands); bz_registerCustomSlashCommand("kasoundon",&keepawaycommands); bz_registerCustomSlashCommand("kasoundoff",&keepawaycommands); bz_registerCustomSlashCommand("kaflagreseton",&keepawaycommands); bz_registerCustomSlashCommand("kaflagresetoff",&keepawaycommands); }
void KOTHHandler::Init(const char* /*commandLine*/){ MaxWaitTime = 0.5f; bz_registerCustomMapObject("KOTH",&kothmaphandler); Register(bz_ePlayerUpdateEvent); Register(bz_ePlayerPausedEvent); Register(bz_ePlayerPartEvent); Register(bz_ePlayerJoinEvent); Register(bz_ePlayerDieEvent); bz_registerCustomSlashCommand("kothstatus",&kothcommands); bz_registerCustomSlashCommand("kothon",&kothcommands); bz_registerCustomSlashCommand("kothoff",&kothcommands); bz_registerCustomSlashCommand("kothsoundon",&kothcommands); bz_registerCustomSlashCommand("kothsoundoff",&kothcommands); bz_registerCustomSlashCommand("kothtimemult",&kothcommands); bz_registerCustomSlashCommand("kothtimemultmin",&kothcommands); bz_registerCustomSlashCommand("kothtime",&kothcommands); bz_registerCustomSlashCommand("kothautotimeon",&kothcommands); bz_registerCustomSlashCommand("kothautotimeoff",&kothcommands); bz_registerCustomSlashCommand("kingsay",&kothcommands); }
BZF_PLUGIN_CALL int bz_Load(const char * /*commandLine */ ) { bz_debugMessage(4, "koth plugin loaded"); bz_registerCustomMapObject("KOTH", &kothmaphandler); bz_registerEvent(bz_ePlayerUpdateEvent, &kotheventhandler); bz_registerEvent(bz_ePlayerPausedEvent, &kothplayerpaused); bz_registerEvent(bz_ePlayerPartEvent, &kothplayerleft); bz_registerEvent(bz_ePlayerJoinEvent, &kothplayerjoined); bz_registerEvent(bz_ePlayerDieEvent, &kothplayerdied); bz_registerCustomSlashCommand("kothstatus", &kothcommands); bz_registerCustomSlashCommand("kothon", &kothcommands); bz_registerCustomSlashCommand("kothoff", &kothcommands); bz_registerCustomSlashCommand("kothsoundon", &kothcommands); bz_registerCustomSlashCommand("kothsoundoff", &kothcommands); bz_registerCustomSlashCommand("kothtimemult", &kothcommands); bz_registerCustomSlashCommand("kothtimemultmin", &kothcommands); bz_registerCustomSlashCommand("kothtime", &kothcommands); bz_registerCustomSlashCommand("kothautotimeon", &kothcommands); bz_registerCustomSlashCommand("kothautotimeoff", &kothcommands); bz_registerCustomSlashCommand("kingsay", &kothcommands); return 0; }
void EventHandler::Init ( const char* /*commandLine*/ ) { bz_registerCustomMapObject("FLAGSTAYZONE",&flagStayZoneHandler); Register(bz_ePlayerUpdateEvent); }