Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2016, 2:11:48 PM (7 years ago)
Author:
bberabi
Message:

die startpositonen und sterben von bots

Location:
code/branches/SpaceRace_HS16
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/SpaceRace_HS16/data/levels/newnewnewspacerace.oxw

    r11312 r11327  
    11
    22  <!-- Authors:
    3 Louis ...? :D
     3Louis Meile
    44Berkay Berabi
    55@2016
     
    4646  <!-- SOUNDS & MUSIC -->
    4747 
    48  
     48   
    4949<WorldSound name="Countdown" position="0,0,0" source="sounds/Countdown.ogg" >
    5050      <events>
     
    8282
    8383    <!-- ------------------SpawnPoint----------------- -->
    84     <SpawnPoint position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" />
     84    <SpawnPoint position="-50,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" />
    8585
    8686  <!-- Launch station -->
  • code/branches/SpaceRace_HS16/src/modules/gametypes/SpaceRace.cc

    r11322 r11327  
    8282
    8383
    84         std::vector<int> spawnpositions;
     84       /* std::vector<int> spawnpositions;
    8585       
    8686        spawnpositions.push_back(200);
     
    103103        spawnpositions.push_back(100);
    104104        spawnpositions.push_back(0);
     105*/ 
     106        int startpos[15];
     107       
     108        startpos[0] =100;
     109        startpos[1] =-40;
     110        startpos[2] =0;
     111       
     112        startpos[3] =100;
     113        startpos[4] =-40;
     114        startpos[5] =100;
     115       
     116        startpos[6] =100;
     117        startpos[7] =-40;
     118        startpos[8] =-100;
     119       
     120        startpos[9] =0;
     121        startpos[10] =-40;
     122        startpos[11] =-80;
     123       
     124        startpos[12] =0;
     125        startpos[13] =-40;
     126        startpos[14] =80;
     127       
     128        /*startpos[15] =
     129        startpos[0] =
     130        startpos[0] =
     131        startpos[0] =
     132        startpos[0] =
     133        startpos[0] =*/
     134
    105135
    106136
     
    122152            c=2;
    123153              for (SpaceRaceBot* bot : ObjectList<SpaceRaceBot>()){
    124                 bot->getControllableEntity()->setPosition(spawnpositions.at(a),spawnpositions.at(b),spawnpositions.at(c));
     154                bot->getControllableEntity()->setPosition(startpos[a],startpos[b],startpos[c]);
    125155               a= a+3;
    126156               b = b+3;
     
    131161        }
    132162
    133 
    134                
     163                                               
     164
    135165        std::string message("BE FAST BE FIRST");
    136166        this->getGametypeInfo()->sendAnnounceMessage(message);
     
    285315    bool SpaceRace::allowPawnDeath(Pawn* victim, Pawn* originator)
    286316    {
    287         return true;
     317        return false;
    288318    }
    289319}
Note: See TracChangeset for help on using the changeset viewer.