Changeset 5064 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Aug 17, 2005, 1:32:23 AM (19 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/npc.cc
r5063 r5064 21 21 22 22 #include "state.h" 23 23 #include "list.h" 24 24 25 25 using namespace std; … … 44 44 PRINTF(0)("collision %s vs %s @ (%f,%f,%f)\n", this->getName(), entity->getName(), location.x, location.y, location.z); 45 45 this->setVisibiliy(false); 46 //State::getWorldEntityList()->remove(this);46 State::getWorldEntityList()->remove(this); 47 47 } 48 48 -
orxonox/trunk/src/world_entities/player.cc
r5041 r5064 91 91 wpLeft->setName("testGun Left"); 92 92 93 Weapon* turret = new Turret(this->weaponMan); 94 turret->setName("main-Turret"); 93 Weapon* turret1 = new Turret(this->weaponMan); 94 turret1->setName("Turret1"); 95 turret1->setStateDuration(WS_SHOOTING, .2); 95 96 Weapon* turret2 = new Turret(this->weaponMan); 97 turret2->setName("Turret2"); 98 turret2->setStateDuration(WS_SHOOTING, .3); 99 Weapon* turret3 = new Turret(this->weaponMan); 100 turret3->setName("Turret3"); 101 turret3->setStateDuration(WS_SHOOTING, .17); 102 103 Weapon* turret4 = new Turret(this->weaponMan); 104 turret4->setName("Turret4"); 105 turret4->setStateDuration(WS_SHOOTING, .3); 106 107 96 108 this->weaponMan->addWeapon(wpLeft, 1, 0); 97 109 this->weaponMan->addWeapon(wpRight,1 ,1); 98 this->weaponMan->addWeapon(turret , 2, 2);110 this->weaponMan->addWeapon(turret1, 2, 2); 99 111 this->weaponMan->addWeapon(turret2, 2, 3); 112 this->weaponMan->addWeapon(turret3, 2, 4); 113 this->weaponMan->addWeapon(turret4, 2, 5); 114 115 100 116 //this->weaponMan->addWeapon(turret, 3, 0); 101 117 … … 130 146 131 147 this->weaponMan = new WeaponManager(this); 132 this->weaponMan->setSlotCount(4); 148 this->weaponMan->setSlotCount(6); 149 133 150 this->weaponMan->setSlotPosition(0, Vector(-2.6, .1, -3.0)); 151 134 152 this->weaponMan->setSlotPosition(1, Vector(-2.6, .1, 3.0)); 153 135 154 this->weaponMan->setSlotPosition(2, Vector(-1.5, .5, -.5)); 136 155 this->weaponMan->setSlotDirection(2, Quaternion(-M_PI_4*.5, Vector(1,0,0))); 156 137 157 this->weaponMan->setSlotPosition(3, Vector(-1.5, .5, .5)); 138 158 this->weaponMan->setSlotDirection(3, Quaternion(M_PI_4*.5, Vector(1,0,0))); 159 160 this->weaponMan->setSlotPosition(4, Vector(-1.5, -.5, .5)); 161 this->weaponMan->setSlotDirection(4, Quaternion(-M_PI_4*.5+M_PI, Vector(1,0,0))); 162 163 this->weaponMan->setSlotPosition(5, Vector(-1.5, -.5, -.5)); 164 this->weaponMan->setSlotDirection(5, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0))); 165 139 166 } 140 167 -
orxonox/trunk/src/world_entities/weapons/turret.cc
r5049 r5064 82 82 animation2->setInfinity(ANIM_INF_CONSTANT); 83 83 84 this->setStateDuration(WS_SHOOTING, . 2);85 this->setStateDuration(WS_RELOADING, . 5);84 this->setStateDuration(WS_SHOOTING, .1); 85 this->setStateDuration(WS_RELOADING, .1); 86 86 this->setStateDuration(WS_ACTIVATING, .4); 87 87 this->setStateDuration(WS_DEACTIVATING, .4); 88 88 89 this->setMaximumEnergy(1000 , 10);90 this->increaseEnergy(100 );89 this->setMaximumEnergy(10000, 50); 90 this->increaseEnergy(100000); 91 91 //this->minCharge = 2; 92 92
Note: See TracChangeset
for help on using the changeset viewer.