Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9301


Ignore:
Timestamp:
Jun 16, 2012, 3:23:01 PM (13 years ago)
Author:
jo
Message:

Quick fix: Suppress default bots in racing gametypes, since so far we haven't a racing bot implemented yet.

Location:
code/branches/presentation2012merge
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2012merge/data/levels/surfaceRace.oxw

    r9276 r9301  
     1<!--
     2TODO:
     3    Replace bottom's texture. It just does not look good.
     4    Pickups are not displayed properly.
     5-->
     6
    17<LevelInfo
    28 name = "Surface Race"
    3  description = "just awesome"
     9 description = "Race on a planet's surface."
    410 screenshot = "surfaceRace.png"
    511 tags = "gametype"
     
    1723
    1824<Level
    19 gametype = SpaceRace
     25  gametype = SpaceRace
    2026>
    2127
     
    3339    hasPhysics   = true
    3440  >
     41
     42    <?lua
     43      include("includes/pickups.oxi")
     44    ?>
    3545
    3646  <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"/>
  • code/branches/presentation2012merge/src/modules/gametypes/OldSpaceRace.h

    r9271 r9301  
    5959
    6060            virtual void newCheckpointReached();
     61            virtual void addBots(unsigned int amount){} //<! overwrite function in order to bypass the addbots command.
     62                                                        //<! This is only a temporary solution. Better: create racingBots.
    6163
    6264            inline void setCheckpointsReached(int n)
  • code/branches/presentation2012merge/src/modules/gametypes/SpaceRace.cc

    r9263 r9301  
    4848        this->cantMove_ = false;
    4949        this->bTimeIsUp_ = false;
     50        this->numberOfBots_ = 0; // quick fix: don't allow default-bots to enter the race
     51                                 // remove this line, if a raceBot has been created.
    5052    }
    5153
Note: See TracChangeset for help on using the changeset viewer.