Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9009 for code/branches


Ignore:
Timestamp:
Dec 20, 2011, 10:03:15 PM (13 years ago)
Author:
jo
Message:

Quick fix for the rocket. Taking care of this issue later.

Location:
code/branches/presentation2011
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2011/data/levels/presentationHS11.oxw

    r9008 r9009  
    1616?>
    1717
    18 <Level>
     18<Level
     19 gametype = "TeamGametype"
     20>
    1921  <templates>
    2022    <Template link=lodtemplate_default />
     
    2830
    2931    <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/>
    3133
    3234    <Script code="formationcontroller formationflight true" onLoad="true">
     
    3638    </Script> <!-- make bots "friendly", doesn't work yet :-( -->
    3739
    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">
    3941        <!--events>
    4042            <visibility>
  • code/branches/presentation2011/src/modules/weapons/projectiles/Rocket.cc

    r8980 r9009  
    161161       
    162162        this->player_ = this->getShooter()->getPlayer();
    163         this->getShooter()->getPlayer()->startTemporaryControl(this);
     163        if(this->player_)
     164            this->player_->startTemporaryControl(this);
    164165
    165166        if( GameMode::isMaster() )
  • code/branches/presentation2011/src/modules/weapons/projectiles/Rocket.h

    r8855 r9009  
    122122
    123123            WeakPtr<PlayerInfo> player_; //!< The player that controls the Rocket.
     124            //WeakPtr<Pawn> pawn_; //!< The pawn that controls the Rocket. TODO
    124125            Timer destroyTimer_; //!< Timer to destroy the projectile after its lifetime has run out.
    125126            float lifetime_; //!< The time the projectile exists.
Note: See TracChangeset for help on using the changeset viewer.