Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 2, 2010, 11:18:00 PM (14 years ago)
Author:
gnadler
Message:

added a launching sound to the rocket.
Added an additional sound-set function to WeaponMode.cc to be able to set the volume as well as the source.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/modules/weapons/weaponmodes/SimpleRocketFire.cc

    r7056 r7095  
    3737#include "weaponsystem/WeaponSystem.h"
    3838#include "worldentities/pawns/Pawn.h"
     39#include "sound/WorldSound.h"
    3940
    4041namespace orxonox
     
    5253        this->speed_ = 500;
    5354
    54         this->setMunitionName("LaserMunition");
     55            this->setMunitionName("TargetSeeking Rockets");
     56            this->setDefaultSoundWithVolume("sounds/Rocket_launch.ogg",0.4);
    5557        // The firing sound of the Rocket is played in Rocket.cc (because of OpenAl sound positioning)
    5658    }
Note: See TracChangeset for help on using the changeset viewer.