Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3991 in orxonox.OLD


Ignore:
Timestamp:
Apr 27, 2005, 4:05:24 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/ll2trunktemp: starts again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/ll2trunktemp/src/world_entities/player.cc

    r3989 r3991  
    128128  bFire = false;
    129129  acceleration = 10.0;
     130
     131
    130132  //weapons:
    131   Weapon* wp = new TestGun(this, Vector(-1.1, 0.0, 2.6), Quaternion(), 0);
    132   this->weapons->add(wp);
    133   this->activeWeapon = wp;
     133  this->weaponMan = new WeaponManager();
     134  Weapon* wpRight = new TestGun(this,Vector(-2.6, 0.1, 3.0), Quaternion(), 0);
     135  Weapon* wpLeft = new TestGun(this, Vector(-2.6, 0.1, -3.0), Quaternion(), 1);
     136 
     137  this->weaponMan->addWeapon(wpRight, W_CONFIG0);
     138  this->weaponMan->addWeapon(wpLeft, W_CONFIG1);
     139  this->weaponMan->addWeapon(wpRight, W_CONFIG2);
     140  this->weaponMan->addWeapon(wpLeft, W_CONFIG2);
    134141}
    135142
Note: See TracChangeset for help on using the changeset viewer.