Changeset 6803 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Jan 28, 2006, 11:14:40 AM (19 years ago)
- Location:
- trunk/src/world_entities/weapons
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/cannon.cc
r6799 r6803 74 74 // this->model = (Model*)ResourceManager::getInstance()->load("models/guns/test_gun.obj", OBJ, RP_CAMPAIGN); 75 75 76 this->loadModel("models/guns/plasmadriver_#.obj" );76 this->loadModel("models/guns/plasmadriver_#.obj", 2.0); 77 77 78 78 this->setStateDuration(WS_SHOOTING, 2.0); … … 88 88 this->setActionSound(WA_ACTIVATE, "sound/voices/cannon.wav"); 89 89 90 this->setCapability(WTYPE_ALLDIRS | WTYPE_DIRECTIONAL );90 this->setCapability(WTYPE_ALLDIRS | WTYPE_DIRECTIONAL | WTYPE_HEAVY); 91 91 this->setProjectileType(CL_BOMB); 92 92 this->prepareProjectiles(5); -
trunk/src/world_entities/weapons/weapon.h
r6756 r6803 60 60 WTYPE_DIRECTIONAL = 0x00000001, //!< Weapon is directional/Slot is able to carry directional weapons 61 61 WTYPE_TURRET = 0x00000002, //!< Weapon is a turret/slot is able to carry turrets 62 WTYPE_LIGHT = 0x00000004, //!< For light Armament. 63 WTYPE_HEAVY = 0x00000008, //!< The heavy Armament (Cannons). 62 64 WTYPE_ALLKINDS = 0x0000000f, //!< Weapon is all types/Slot is able to carry all kinds of weapons 63 65 -
trunk/src/world_entities/weapons/weapon_manager.cc
r6778 r6803 185 185 * @param position the position of the given slot 186 186 */ 187 void WeaponManager::setSlotPosition(int slot, const Vector& position )187 void WeaponManager::setSlotPosition(int slot, const Vector& position, PNode* parent) 188 188 { 189 189 if (slot < this->slotCount) 190 { 190 191 this->currentSlotConfig[slot].position.setRelCoor(position); 192 193 if (parent != NULL) 194 this->currentSlotConfig[slot].position.setParent(parent); 195 } 191 196 } 192 197 -
trunk/src/world_entities/weapons/weapon_manager.h
r6679 r6803 62 62 unsigned int getSlotCount() const { return this->slotCount; }; 63 63 // setting up the WeaponManager with the following functions 64 void setSlotPosition(int slot, const Vector& position );64 void setSlotPosition(int slot, const Vector& position, PNode* parent = NULL); 65 65 void setSlotDirection(int slot, const Quaternion& rotation); 66 66 /** @param slot the slot to get the relative position from @returns the relative position of the Carrier to the Slot */
Note: See TracChangeset
for help on using the changeset viewer.