- Timestamp:
- Jul 5, 2006, 12:13:06 PM (18 years ago)
- Location:
- branches/presentation/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/creatures/fps_player.cc
r9212 r9213 169 169 170 170 this->initWeapon = false; 171 toList( OM_PLAYERS ); 171 172 } 172 173 … … 366 367 velocity -= Vector(0.0, 1.0, 0.0) * this->fallVelocity; 367 368 368 PRINTF(0)("vel %f\n", this->fallVelocity);369 // PRINTF(0)("vel %f\n", this->fallVelocity); 369 370 } 370 371 else … … 463 464 } 464 465 466 465 467 void FPSPlayer::destroy( WorldEntity* killer ) 466 468 { -
branches/presentation/src/world_entities/projectiles/laser.cc
r9162 r9213 42 42 43 43 this->setMinEnergy(10); 44 this->setHealthMax( 10);44 this->setHealthMax(0); 45 45 this->lifeSpan = 5.0; 46 46 … … 88 88 } 89 89 90 this->setHealth(10); 90 this->setDamage(0); 91 this->setHealth(0); 91 92 } 92 93 -
branches/presentation/src/world_entities/weapons/fps_sniper_rifle.cc
r9003 r9213 145 145 return; 146 146 147 pj->setParent(PNode::getNullParent()); 147 pj->setParent(this); 148 pj->setParentMode(PNODE_ROTATE_AND_MOVE); 148 149 149 pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))* 250 + VECTOR_RAND(5));150 pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*550 + VECTOR_RAND(5) ); 150 151 151 pj->setAbsCoor(this->getEmissionPoint() );152 pj->setAbsCoor(this->getEmissionPoint() + this->getAbsDirX() * 25.0f); 152 153 pj->setAbsDir(this->getAbsDir()); 153 154 pj->activate();
Note: See TracChangeset
for help on using the changeset viewer.