Changeset 4878 in orxonox.OLD for orxonox/branches/weaponSystem/src/world_entities/weapons/test_gun.cc
- Timestamp:
- Jul 17, 2005, 12:37:18 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/weaponSystem/src/world_entities/weapons/test_gun.cc
r4836 r4878 50 50 51 51 this->model = (Model*)ResourceManager::getInstance()->load("models/test_gun.obj", OBJ, RP_CAMPAIGN); 52 this->idleTime = 0.2f;53 52 this->leftRight = leftRight; 54 53 … … 145 144 void TestGun::fire() 146 145 { 147 if( !this-> hasWeaponIdleTimeElapsed())146 if( !this->stateTimeElapsed()) 148 147 { 149 148 this->weaponIdle(); … … 158 157 pj->setVelocity(this->getVelocity()); 159 158 State::getWorldEntityList()->add(pj); 160 this->localTime = 0;161 159 162 160 this->animation1->replay(); … … 191 189 void TestGun::tick (float time) 192 190 { 193 this-> localTime += time;191 this->stateTime += time; 194 192 } 195 193
Note: See TracChangeset
for help on using the changeset viewer.