Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5049 in orxonox.OLD


Ignore:
Timestamp:
Aug 16, 2005, 9:47:01 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some weapon-specifics

Location:
orxonox/trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r5048 r5049  
    439439  {
    440440    WorldEntity* tmp = new NPC();
     441    char npcChar[10];
     442    sprintf (npcChar, "NPC_%d", i);
     443    tmp->setName(npcChar);
    441444    tmp->setAbsCoor(((float)rand()/RAND_MAX) * 5000, 50/*+ (float)rand()/RAND_MAX*20*/, ((float)rand()/RAND_MAX -.5) *100);
    442445    this->spawn(tmp);
  • orxonox/trunk/src/world_entities/npc.cc

    r5046 r5049  
    4343void NPC::collidesWith(WorldEntity* entity, const Vector& location)
    4444{
    45   PRINTF(0)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassName(), 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);
    4646}
    4747
  • orxonox/trunk/src/world_entities/weapons/test_gun.cc

    r5048 r5049  
    120120  this->model = (Model*)ResourceManager::getInstance()->load("models/guns/test_gun.obj", OBJ, RP_CAMPAIGN);
    121121
    122   this->setStateDuration(WS_SHOOTING, .1);
    123   this->setStateDuration(WS_RELOADING, 1);
     122  this->setStateDuration(WS_SHOOTING, .3);
     123  this->setStateDuration(WS_RELOADING, .5);
    124124  this->setStateDuration(WS_ACTIVATING, .4);
    125125  this->setStateDuration(WS_DEACTIVATING, .4);
  • orxonox/trunk/src/world_entities/weapons/turret.cc

    r5002 r5049  
    8282  animation2->setInfinity(ANIM_INF_CONSTANT);
    8383
    84   this->setStateDuration(WS_SHOOTING, .4);
    85   this->setStateDuration(WS_RELOADING, 2);
     84  this->setStateDuration(WS_SHOOTING, .2);
     85  this->setStateDuration(WS_RELOADING, .5);
    8686  this->setStateDuration(WS_ACTIVATING, .4);
    8787  this->setStateDuration(WS_DEACTIVATING, .4);
Note: See TracChangeset for help on using the changeset viewer.