Changeset 10224 in orxonox.OLD for branches/playability/src/world_entities/projectiles
- Timestamp:
- Jan 10, 2007, 5:33:19 PM (18 years ago)
- Location:
- branches/playability/src/world_entities/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/spike_ball.cc
r10217 r10224 68 68 this->weaponMan = new WeaponManager(dynamic_cast<WorldEntity*>(this)); 69 69 this->weaponMan->setParentEntity(this); 70 this->weaponMan->setSlotCount(1); 71 this->weaponMan->setSlotPosition(0, Vector(0, 0, 0)); 72 this->weaponMan->setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 70 73 71 74 Weapon* cannon = new SpikeLauncher(); … … 73 76 this->weaponMan->addWeapon(cannon, 0, 0); 74 77 this->weaponMan->changeWeaponConfig(0); 75 76 this->ttd = false;77 78 } 78 79 … … 176 177 this->shiftCoor(v); 177 178 178 if (this->tickLifeCycle(dt)){ 179 this->weaponMan->getWeapon(0)->requestAction(WA_SHOOT); 180 if (this->ttd) 179 if(this->lifeCycle > .9){ 180 printf("called by spikeball "); 181 this->weaponMan->fire(); 182 } 183 184 if (this->tickLifeCycle(dt)) 181 185 this->deactivate(); 182 this->ttd = true;183 }184 186 185 187 angle += rotationSpeed * dt; -
branches/playability/src/world_entities/projectiles/spike_ball.h
r10217 r10224 64 64 65 65 WeaponManager* weaponMan; 66 67 bool ttd;68 66 }; 69 67
Note: See TracChangeset
for help on using the changeset viewer.