Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5064 in orxonox.OLD for orxonox/trunk/src/world_entities


Ignore:
Timestamp:
Aug 17, 2005, 1:32:23 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: shooting-star :)

Location:
orxonox/trunk/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/npc.cc

    r5063 r5064  
    2121
    2222#include "state.h"
    23 
     23#include "list.h"
    2424
    2525using namespace std;
     
    4444    PRINTF(0)("collision %s vs %s @ (%f,%f,%f)\n", this->getName(), entity->getName(), location.x, location.y, location.z);
    4545  this->setVisibiliy(false);
    46   //State::getWorldEntityList()->remove(this);
     46  State::getWorldEntityList()->remove(this);
    4747}
    4848
  • orxonox/trunk/src/world_entities/player.cc

    r5041 r5064  
    9191  wpLeft->setName("testGun Left");
    9292
    93   Weapon* turret = new Turret(this->weaponMan);
    94   turret->setName("main-Turret");
     93  Weapon* turret1 = new Turret(this->weaponMan);
     94  turret1->setName("Turret1");
     95  turret1->setStateDuration(WS_SHOOTING, .2);
    9596  Weapon* turret2 = new Turret(this->weaponMan);
     97  turret2->setName("Turret2");
     98  turret2->setStateDuration(WS_SHOOTING, .3);
     99  Weapon* turret3 = new Turret(this->weaponMan);
     100  turret3->setName("Turret3");
     101  turret3->setStateDuration(WS_SHOOTING, .17);
     102
     103  Weapon* turret4 = new Turret(this->weaponMan);
     104  turret4->setName("Turret4");
     105  turret4->setStateDuration(WS_SHOOTING, .3);
     106
     107
    96108  this->weaponMan->addWeapon(wpLeft, 1, 0);
    97109  this->weaponMan->addWeapon(wpRight,1 ,1);
    98   this->weaponMan->addWeapon(turret, 2, 2);
     110  this->weaponMan->addWeapon(turret1, 2, 2);
    99111  this->weaponMan->addWeapon(turret2, 2, 3);
     112  this->weaponMan->addWeapon(turret3, 2, 4);
     113  this->weaponMan->addWeapon(turret4, 2, 5);
     114
     115
    100116  //this->weaponMan->addWeapon(turret, 3, 0);
    101117
     
    130146
    131147  this->weaponMan = new WeaponManager(this);
    132   this->weaponMan->setSlotCount(4);
     148  this->weaponMan->setSlotCount(6);
     149
    133150  this->weaponMan->setSlotPosition(0, Vector(-2.6, .1, -3.0));
     151
    134152  this->weaponMan->setSlotPosition(1, Vector(-2.6, .1, 3.0));
     153
    135154  this->weaponMan->setSlotPosition(2, Vector(-1.5, .5, -.5));
    136155  this->weaponMan->setSlotDirection(2, Quaternion(-M_PI_4*.5, Vector(1,0,0)));
     156
    137157  this->weaponMan->setSlotPosition(3, Vector(-1.5, .5, .5));
    138158  this->weaponMan->setSlotDirection(3, Quaternion(M_PI_4*.5, Vector(1,0,0)));
     159
     160  this->weaponMan->setSlotPosition(4, Vector(-1.5, -.5, .5));
     161  this->weaponMan->setSlotDirection(4, Quaternion(-M_PI_4*.5+M_PI, Vector(1,0,0)));
     162
     163  this->weaponMan->setSlotPosition(5, Vector(-1.5, -.5, -.5));
     164  this->weaponMan->setSlotDirection(5, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0)));
     165
    139166}
    140167
  • orxonox/trunk/src/world_entities/weapons/turret.cc

    r5049 r5064  
    8282  animation2->setInfinity(ANIM_INF_CONSTANT);
    8383
    84   this->setStateDuration(WS_SHOOTING, .2);
    85   this->setStateDuration(WS_RELOADING, .5);
     84  this->setStateDuration(WS_SHOOTING, .1);
     85  this->setStateDuration(WS_RELOADING, .1);
    8686  this->setStateDuration(WS_ACTIVATING, .4);
    8787  this->setStateDuration(WS_DEACTIVATING, .4);
    8888
    89   this->setMaximumEnergy(1000, 10);
    90   this->increaseEnergy(100);
     89  this->setMaximumEnergy(10000, 50);
     90  this->increaseEnergy(100000);
    9191  //this->minCharge = 2;
    9292
Note: See TracChangeset for help on using the changeset viewer.