Changeset 5049 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Aug 16, 2005, 9:47:01 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r5048 r5049 439 439 { 440 440 WorldEntity* tmp = new NPC(); 441 char npcChar[10]; 442 sprintf (npcChar, "NPC_%d", i); 443 tmp->setName(npcChar); 441 444 tmp->setAbsCoor(((float)rand()/RAND_MAX) * 5000, 50/*+ (float)rand()/RAND_MAX*20*/, ((float)rand()/RAND_MAX -.5) *100); 442 445 this->spawn(tmp); -
orxonox/trunk/src/world_entities/npc.cc
r5046 r5049 43 43 void NPC::collidesWith(WorldEntity* entity, const Vector& location) 44 44 { 45 PRINTF(0)("collision %s vs %s @ (%f,%f,%f)\n", this->get ClassName(), entity->getClassName(), location.x, location.y, location.z);45 PRINTF(0)("collision %s vs %s @ (%f,%f,%f)\n", this->getName(), entity->getName(), location.x, location.y, location.z); 46 46 } 47 47 -
orxonox/trunk/src/world_entities/weapons/test_gun.cc
r5048 r5049 120 120 this->model = (Model*)ResourceManager::getInstance()->load("models/guns/test_gun.obj", OBJ, RP_CAMPAIGN); 121 121 122 this->setStateDuration(WS_SHOOTING, . 1);123 this->setStateDuration(WS_RELOADING, 1);122 this->setStateDuration(WS_SHOOTING, .3); 123 this->setStateDuration(WS_RELOADING, .5); 124 124 this->setStateDuration(WS_ACTIVATING, .4); 125 125 this->setStateDuration(WS_DEACTIVATING, .4); -
orxonox/trunk/src/world_entities/weapons/turret.cc
r5002 r5049 82 82 animation2->setInfinity(ANIM_INF_CONSTANT); 83 83 84 this->setStateDuration(WS_SHOOTING, . 4);85 this->setStateDuration(WS_RELOADING, 2);84 this->setStateDuration(WS_SHOOTING, .2); 85 this->setStateDuration(WS_RELOADING, .5); 86 86 this->setStateDuration(WS_ACTIVATING, .4); 87 87 this->setStateDuration(WS_DEACTIVATING, .4);
Note: See TracChangeset
for help on using the changeset viewer.