Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 6, 2006, 12:05:23 AM (18 years ago)
Author:
patrick
Message:

trunk: game rules definitions added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/multiplayer_team_deathmatch.cc

    r7035 r7037  
    3535  this->setClassID(CL_MULTIPLAYER_TEAM_DEATHMATCH, "MultiplayerTeamDeathmatch");
    3636
     37  this->bLocalPlayerDead = false;
     38  this->deathTimeout = 10.0f;     // 5 seconds
     39
    3740  if( root != NULL)
    3841    this->loadParams(root);
     
    5053{
    5154  GameRules::loadParams(root);
     55
     56  LoadParam(root, "death-penalty-timeout", this, MultiplayerTeamDeathmatch, setDeathPenaltyTimeout)
     57      .describe("sets the time in seconds a player has to wait for respawn");
     58
     59  LoadParam(root, "max-kills", this, MultiplayerTeamDeathmatch, setMaxKills)
     60      .describe("sets the maximal kills for winning condition");
    5261}
    5362
     
    7483 */
    7584void MultiplayerTeamDeathmatch::tick(float dt)
    76 {}
     85{
     86
     87}
    7788
    7889
Note: See TracChangeset for help on using the changeset viewer.