Esempio n. 1
0
void CustomFlagSample::Init ( const char* /*commandLine*/ )
{
  bz_debugMessage(4, "customflagsample plugin loaded");

  // register our special custom flag
  bz_RegisterCustomFlag("CF", "Custom Flag", "A simple sample custom flag from the customflagsample plugin", /*eSuperShot*/0, eGoodFlag);

  // register events for pick up, drop, transfer, and fire
  Register(bz_eFlagTransferredEvent);
  Register(bz_eFlagGrabbedEvent);
  Register(bz_eFlagDroppedEvent);
  Register(bz_eShotFiredEvent);
  Register(bz_ePlayerDieEvent);
}
Esempio n. 2
0
void ReverseGeno::Init (const char* /*commandLine*/)
{
    // Register our events with Register()
    Register(bz_eFlagGrabbedEvent);
    Register(bz_ePlayerDieEvent);
    Register(bz_eTickEvent);

    // Register our custom flags
    bz_RegisterCustomFlag("RG", "Reverse Geno", "Get shot within five seconds to kill the other team and avoid self-destruction.", 0, eBadFlag);

    bait = -1;
    fish = -1;
    grabTime = -1;
    shotTime = -1;
}