Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2013, 8:18:15 PM (10 years ago)
Author:
zifloria
Message:

End game screen. Eye candy. Gameplay tweaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/invaders/src/modules/invader/InvaderWeapon.cc

    r9744 r9868  
    6161    void InvaderWeapon::shot()
    6262    {
    63         // orxout(internal_error) << "shotttttt" << endl;
    64 
    6563        assert( this->getWeapon() && this->getWeapon()->getWeaponPack() && this->getWeapon()->getWeaponPack()->getWeaponSystem() && this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn() );
    6664
     
    7472
    7573        this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());
    76         projectile->setOrientation(Quaternion(sqrt(0.5),0,sqrt(0.5),0)); //this->getMuzzleOrientation()   Quaternion::IDENTITY
     74        // only shoot in foreward direction
     75        projectile->setOrientation(Quaternion(sqrt(0.5),0,sqrt(0.5),0));
    7776        projectile->setPosition(this->getMuzzlePosition());
    78         projectile->setVelocity(Vector3(1, 0, 0) * 2000); //this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity() + this->getMuzzleDirection() * this->speed_
     77        // only shoot in foreward direction
     78        projectile->setVelocity(Vector3(1, 0, 0) * 2000);
    7979
    8080        projectile->setShooter(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
Note: See TracChangeset for help on using the changeset viewer.