Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4951 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc


Ignore:
Timestamp:
Jul 24, 2005, 11:15:00 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: the new WeaponManager is online :)

File:
1 edited

Legend:

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

    r4926 r4951  
    4949  Weapon* wpLeft = new TestGun(this, Vector(-2.6, 0.1, -3.0), Quaternion(), 1);
    5050
    51   this->weaponMan->addWeapon(wpRight, WM_CONFIG0, WM_SLOT0);
     51  this->weaponMan->addWeapon(wpRight);
    5252//  this->weaponMan->addWeapon(wpLeft, WM_CONFIG1, WM_SLOT1);
    5353//  this->weaponMan->addWeapon(wpRight, WM_CONFIG2);
     
    8383  Weapon* wpLeft = new TestGun(this, Vector(-2.6, 0.1, -3.0), Quaternion(), 1);
    8484
    85   this->weaponMan->addWeapon(wpRight, WM_CONFIG0, WM_SLOT0);
    86   this->weaponMan->addWeapon(wpLeft, WM_CONFIG1, WM_SLOT1);
    87   this->weaponMan->addWeapon(wpRight, WM_CONFIG2);
    88   this->weaponMan->addWeapon(wpLeft, WM_CONFIG2);
     85  this->weaponMan->addWeapon(wpRight, 0,0);
     86  this->weaponMan->addWeapon(wpLeft, 0, 1);
     87  this->weaponMan->addWeapon(wpLeft, 1, 1);
     88  this->weaponMan->addWeapon(wpRight, 2, 0);
     89/*  this->weaponMan->addWeapon(wpRight, WM_CONFIG2);
     90  this->weaponMan->addWeapon(wpLeft, WM_CONFIG2);*/
    8991}
    9092
     
    9698  this->setClassID(CL_PLAYER, "Player");
    9799
    98   this->model = (Model*)ResourceManager::getInstance()->load("models/reaplow.obj", OBJ, RP_CAMPAIGN);
     100//  this->model = (Model*)ResourceManager::getInstance()->load("models/reaplow.obj", OBJ, RP_CAMPAIGN);
    99101  travelSpeed = 15.0;
    100102  velocity = new Vector();
Note: See TracChangeset for help on using the changeset viewer.