Changeset 9009 for code/branches
- Timestamp:
- Dec 20, 2011, 10:03:15 PM (13 years ago)
- Location:
- code/branches/presentation2011
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2011/data/levels/presentationHS11.oxw
r9008 r9009 16 16 ?> 17 17 18 <Level> 18 <Level 19 gametype = "TeamGametype" 20 > 19 21 <templates> 20 22 <Template link=lodtemplate_default /> … … 28 30 29 31 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> 30 < SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>32 <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/> 31 33 32 34 <Script code="formationcontroller formationflight true" onLoad="true"> … … 36 38 </Script> <!-- make bots "friendly", doesn't work yet :-( --> 37 39 38 <SpaceShip position=" 3000,0,5000" lookat="-1300,-600,900" name="attacker" visible="true">40 <SpaceShip position="1000,-500,2000" lookat="-1300,-600,900" name="attacker" visible="true"> 39 41 <!--events> 40 42 <visibility> -
code/branches/presentation2011/src/modules/weapons/projectiles/Rocket.cc
r8980 r9009 161 161 162 162 this->player_ = this->getShooter()->getPlayer(); 163 this->getShooter()->getPlayer()->startTemporaryControl(this); 163 if(this->player_) 164 this->player_->startTemporaryControl(this); 164 165 165 166 if( GameMode::isMaster() ) -
code/branches/presentation2011/src/modules/weapons/projectiles/Rocket.h
r8855 r9009 122 122 123 123 WeakPtr<PlayerInfo> player_; //!< The player that controls the Rocket. 124 //WeakPtr<Pawn> pawn_; //!< The pawn that controls the Rocket. TODO 124 125 Timer destroyTimer_; //!< Timer to destroy the projectile after its lifetime has run out. 125 126 float lifetime_; //!< The time the projectile exists.
Note: See TracChangeset
for help on using the changeset viewer.