Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Oct 27, 2005, 10:56:58 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Weapons update, Now one can really assign SlotCapabilities
Debug-redesign (small)

File:
1 edited

Legend:

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

    r5435 r5440  
    136136
    137137  this->weaponMan->setSlotPosition(0, Vector(-2.6, .1, -3.0));
     138  this->weaponMan->setSlotCapability(0, WTYPE_ALLDIRS & WTYPE_DIRECTIONAL);
    138139
    139140  this->weaponMan->setSlotPosition(1, Vector(-2.6, .1, 3.0));
     141  this->weaponMan->setSlotCapability(1, WTYPE_ALLDIRS & WTYPE_DIRECTIONAL);
    140142
    141143  this->weaponMan->setSlotPosition(2, Vector(-1.5, .5, -.5));
     
    329331
    330332// FIXME THIS MIGHT BE CONSIDERED EITHER A FEATURE, OR A BUG
    331 int slot = 2;
    332333void Player::ADDWEAPON()
    333334{
     
    336337  turret1->setStateDuration(WS_SHOOTING, (float)rand()/RAND_MAX*.5+.1);
    337338
    338   this->weaponMan->addWeapon(turret1, 2, slot++);
     339  this->weaponMan->addWeapon(turret1, 2);
    339340
    340341  this->weaponMan->changeWeaponConfig(2);
Note: See TracChangeset for help on using the changeset viewer.