Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2009, 6:04:10 PM (14 years ago)
Author:
scheusso
Message:

some fixes in weapon system / weapons
fabian: projectiles also spawn on wrong position in standalone mode

Location:
code/branches/presentation2/src/modules/weapons/weaponmodes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/modules/weapons/weaponmodes/LightningGun.cc

    r5781 r6153  
    5959        projectile->setMaterial("Flares/LightningBall_");
    6060
     61        this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());
    6162        projectile->setOrientation(this->getMuzzleOrientation());
    6263        projectile->setPosition(this->getMuzzlePosition());
  • code/branches/presentation2/src/modules/weapons/weaponmodes/RocketFire.cc

    r6107 r6153  
    3636#include "weaponsystem/WeaponPack.h"
    3737#include "weaponsystem/WeaponSystem.h"
     38#include "worldentities/pawns/Pawn.h"
    3839
    3940namespace orxonox
     
    5758        Rocket* rocket = new Rocket(this);
    5859
     60        this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());
    5961        rocket->setOrientation(this->getMuzzleOrientation());
    6062        rocket->setPosition(this->getMuzzlePosition());
Note: See TracChangeset for help on using the changeset viewer.