Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 23, 2005, 9:28:06 PM (18 years ago)
Author:
stefalie
Message:

da bomb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/world_entities/src/world_entities/weapons/cannon.cc

    r5623 r5744  
    7878  this->loadModel("models/guns/cannon.obj");
    7979
    80   this->setStateDuration(WS_SHOOTING, .1);
     80  this->setStateDuration(WS_SHOOTING, 2.0);
    8181  this->setStateDuration(WS_RELOADING, .1);
    82   this->setStateDuration(WS_ACTIVATING, .4);
     82  this->setStateDuration(WS_ACTIVATING, .1);
    8383  this->setStateDuration(WS_DEACTIVATING, .4);
    8484
    85   this->setMaximumEnergy(1000, 100);
    86   this->increaseEnergy(1000);
     85  this->setMaximumEnergy(100, 1);
     86  this->increaseEnergy(30);
    8787  //this->minCharge = 2;
    8888
     
    9090
    9191  this->setCapability(WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    92   this->setProjectileType(CL_LASER);
    93   this->prepareProjectiles(20);
     92  this->setProjectileType(CL_BOMB);
     93  this->prepareProjectiles(5);
    9494
    9595//  this->objectComponent1 = new PNode();
     
    163163  pj->setParent(NullParent::getInstance());
    164164
    165   pj->setVelocity(this->getVelocity() + this->getAbsDir().apply(Vector(1,0,0))*50+VECTOR_RAND(5));
     165  pj->setVelocity(this->getVelocity() + this->getAbsDir().apply(Vector(1,0,0))*15+VECTOR_RAND(5));
    166166
    167167  pj->setAbsCoor(this->getEmissionPoint());
Note: See TracChangeset for help on using the changeset viewer.