Changeset 12370 for code/branches/OrxoBlox_FS19
- Timestamp:
- May 16, 2019, 1:13:21 PM (6 years ago)
- Location:
- code/branches/OrxoBlox_FS19
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/data/levels/orxoblox.oxw
r12368 r12370 7 7 8 8 <?lua 9 include("HUDTemplates3.oxo")9 10 10 include("stats.oxo") 11 11 include("OrxoBloxHUD.oxo") -
code/branches/OrxoBlox_FS19/data/levels/templates/spaceshipOrxoBlox.oxt
r12367 r12370 6 6 spawnparticleduration = 3 7 7 explosionchunks = 4 8 9 health = 10 10 maxhealth = 10 11 initialhealth = 10 12 13 shieldhealth = 20 14 initialshieldhealth = 20 15 maxshieldhealth = 20 16 shieldabsorption = 0.1 17 shieldrechargerate = 1 18 shieldrechargewaittime = 1 8 19 9 20 primaryThrust = 150 … … 26 37 linearDamping = 0.9 27 38 angularDamping = 0.9999999 39 40 collisiondamage = 100 41 enablecollisiondamage = true 28 42 29 43 > … … 72 86 boostfactor = 2.2 73 87 88 74 89 defEngineSndNormal = "sounds/Engine_low.ogg" 75 90 defEngineSndBoost = "sounds/Engine_high.ogg" 76 77 accelerationfront = 70078 accelerationbrake = 70079 accelerationback = 70080 accelerationleftright = 50081 accelerationupdown = 50082 91 > 83 92 -
code/branches/OrxoBlox_FS19/data/overlays/OrxoBloxHUD.oxo
r12359 r12370 21 21 /> 22 22 23 23 24 </OverlayGroup> 24 25 </Template> 26 <Template name="spaceshiphud"> 27 <OverlayGroup name = "spaceshiphud" scale = "1, 1"> 28 <HUDNavigation 29 name = "Navigation" 30 correctaspect = true 31 font = "Monofur" 32 textsize = 0 33 navMarkerSize = 0.06 34 aimMarkerSize = 0 35 healthMarkerSize = 0 36 healthLevelMarkerSize = 0 37 /> 38 </OverlayGroup> 39 </Template> -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
r12369 r12370 173 173 // Set variable to temporarily force the player to spawn. 174 174 //bool temp = this->bForceSpawn_; 175 this->bForceSpawn_ = true;175 this->bForceSpawn_ = false; 176 176 177 177 // Call start for the parent class. … … 307 307 if((BallPosition.x - Ball->getRadius() >= StonePosition.x - size && BallPosition.x + Ball->getRadius() <= StonePosition.x + size) && 308 308 (BallPosition.z - Ball->getRadius() >= StonePosition.z - size && BallPosition.z + Ball->getRadius() <= StonePosition.z + size)) { 309 orxout() << "FOUND ONE" << endl;309 //orxout() << "FOUND ONE" << endl; 310 310 return someStone; 311 311 } -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.h
r12367 r12370 90 90 { return this->center_; } 91 91 OrxoBloxStones* CheckForCollision(OrxoBloxBall* Ball); 92 92 virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command 93 93 protected: 94 94 private: -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxPrereqs.h
r12366 r12370 74 74 class OrxoBloxStones; 75 75 class OrxoBloxScore; 76 class OrxoBloxShip; 76 77 } 77 78 -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxShip.cc
r12367 r12370 71 71 SUPER(OrxoBloxShip, tick, dt); 72 72 Vector3 pos = this->getPosition(); 73 this->setPosition(pos); 74 } 73 75 76 void OrxoBloxShip::boost(bool bBoost) 77 { 74 78 } 75 79 76 OrxoBlox* OrxoBloxShip::getGame()77 {78 if (game == nullptr)79 {80 for (OrxoBlox* race : ObjectList<OrxoBlox>())81 {82 game = race;83 }84 }85 return game;86 }87 void OrxoBloxShip::death()88 {89 SpaceShip::death();90 }91 80 } 92 81 -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxShip.h
r12367 r12370 51 51 52 52 //no rotation in x and z direction! 53 virtual void rotatePitch(const Vector2& value) override{}; // Rotate in pitch direction. 53 //virtual void rotatePitch(const Vector2& value) override{}; // Rotate in pitch direction. 54 //Yaw 54 55 virtual void rotateRoll(const Vector2& value) override{}; // Rotate in roll direction. 56 virtual void boost(bool boost) override; //Override, so that the ship does not shake 55 57 56 58 /*Functions that can be helpful while debugging. … … 68 70 69 71 protected: 70 virtual void death() override;71 72 private: 72 73 OrxoBlox* getGame();
Note: See TracChangeset
for help on using the changeset viewer.