Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 10, 2007, 5:33:19 PM (17 years ago)
Author:
nicolasc
Message:

bump

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/spike_ball.cc

    r10217 r10224  
    6868  this->weaponMan = new WeaponManager(dynamic_cast<WorldEntity*>(this));
    6969  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);
    7073
    7174  Weapon* cannon = new SpikeLauncher();
     
    7376  this->weaponMan->addWeapon(cannon, 0, 0);
    7477  this->weaponMan->changeWeaponConfig(0);
    75 
    76   this->ttd = false;
    7778}
    7879
     
    176177  this->shiftCoor(v);
    177178
    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))
    181185      this->deactivate();
    182     this->ttd = true;
    183   }
    184186
    185187  angle += rotationSpeed * dt;
Note: See TracChangeset for help on using the changeset viewer.