Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7082 in orxonox.OLD


Ignore:
Timestamp:
Feb 7, 2006, 4:32:14 PM (18 years ago)
Author:
patrick
Message:

trunk: respawn and death patch

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/multi_player_world_data.cc

    r7078 r7082  
    202202    {
    203203      this->localPlayer = new Player();
    204       State::setPlayer(this->localPlayer);
    205204
    206205      Playable* playable;
     
    221220      /* create a Player */
    222221      this->localPlayer = new Player();
    223       State::setPlayer(this->localPlayer);
    224222    }
    225223
     
    228226    PNode::getNullParent()->init();
    229227  }
     228  State::setPlayer(this->localPlayer);
    230229}
    231230
  • trunk/src/util/multiplayer_team_deathmatch.cc

    r7080 r7082  
    4343  this->bLocalPlayerDead = false;
    4444  this->deathTimeout = 10.0f;     // 5 seconds
     45  this->timeout = 0.0f;
    4546
    4647  this->deathScreen = new Billboard();
  • trunk/src/world_entities/playable.cc

    r7079 r7082  
    148148    State::getGameRules()->onPlayerSpawn();
    149149
    150   this->setAbsCoor(0.0, 0.0, 0.0);
    151 
    152   if( this->getOwner()%2 == 0)
     150  if( this->getOwner() % 2 == 0)
     151  {
    153152    this->toList(OM_GROUP_00);
     153    this->setAbsCoor(213.37, 57.71, -47.98);
     154    this->setAbsDir(Quaternion(0.16, 0.98, -0.10));
     155  }
    154156  else
     157  {
    155158    this->toList(OM_GROUP_01);
     159    this->toList(OM_GROUP_01);
     160    this->setAbsCoor(-314.450, 40.701, 83.554);
     161  }
    156162}
    157163
Note: See TracChangeset for help on using the changeset viewer.