Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 24, 2007, 6:13:17 PM (17 years ago)
Author:
marcscha
Message:

SegFault prevention hack in fast factory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/weapons/acid_launcher.cc

    r10333 r10345  
    8484  animation2->setInfinity(ANIM_INF_CONSTANT);
    8585*/
    86   this->setStateDuration(WS_SHOOTING, .6);
     86  this->setStateDuration(WS_SHOOTING, 1.0f);
     87
    8788  this->setStateDuration(WS_RELOADING, 1.0f);
    8889  this->setStateDuration(WS_ACTIVATING, .4);
     
    9596  this->setCapability(WTYPE_ALLDIRS | WTYPE_TURRET | WTYPE_DIRECTIONAL | WTYPE_LIGHT);
    9697  this->setProjectileTypeC("AcidSplash");
    97 
    9898//   this->loadModel("models/guns/turret1.obj", 1.0);
    9999
    100100  this->setEmissionPoint(2.0, 0, 0);
    101   this->getProjectileFactory()->prepare(100);
     101  this->getProjectileFactory()->prepare(10);
    102102
    103103  this->setActionSound(WA_SHOOT, "sound/explosions/explosion_1.wav");
     
    148148
    149149  Projectile* pj = NULL;
    150   for( int i=0; i < 5; i++)
     150  for( int i=0; i < 1; i++)
    151151  {
    152152      pj  = this->getProjectile();
     
    155155
    156156      fired = true;
    157       pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*115.0 + VECTOR_RAND(10)));
     157      pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*165.0 + VECTOR_RAND(10)));
    158158
    159159      pj->setParent(PNode::getNullParent());
Note: See TracChangeset for help on using the changeset viewer.