Changeset 3755 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc
- Timestamp:
- Apr 8, 2005, 12:46:33 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/player.cc
r3752 r3755 53 53 acceleration = 10.0; 54 54 //weapons: 55 Weapon* wp = new TestGun(this, new Vector(-2.6, 0.1, 3.0), new Quaternion()); 56 this->weapons->add(wp); 57 this->activeWeapon = wp; 55 Weapon* wpRight = new TestGun(this, new Vector(-2.6, 0.1, 3.0), new Quaternion(), 0); 56 Weapon* wpLeft = new TestGun(this, new Vector(-2.6, 0.1, -3.0), new Quaternion(), 1); 57 this->weapons->add(wpRight); 58 this->activeWeapon = wpRight; 59 this->activeWeaponL = wpLeft; 58 60 } 59 61 … … 150 152 151 153 this->activeWeapon->draw(); 154 this->activeWeaponL->draw(); 152 155 } 153 156 … … 161 164 /* link tick to weapon */ 162 165 this->activeWeapon->tick(time); 166 this->activeWeaponL->tick(time); //FIX FIX DELETE REMOVE 163 167 // player controlled movement 164 168 this->move(time); … … 206 210 if( this->bFire) 207 211 { 208 if(this->activeWeapon != NULL) 209 this->activeWeapon->fire(); 212 //if(this->activeWeapon != NULL) 213 this->activeWeapon->fire(); 214 //FIX THIS FIX FIIIIIIIIIIIX 215 this->activeWeaponL->fire(); 210 216 } 211 217 if( this->bWeaponChange && this->weapons->getSize() > 1)
Note: See TracChangeset
for help on using the changeset viewer.