Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 4, 2009, 3:52:28 PM (14 years ago)
Author:
youngk
Message:

Implemented Firing sounds in Weapons HsW01, LightningGun and RocketFire. Engine and Explosion sounds for the Rocket are not yet implemented.
From now on, when creating a new sound for a weapon, just insert "this→setDefaultSound(PATH_TO_FILE)" into the constructor of the weapon.

Sound Files for HsW01 and LightningGun will be available in a couple of minutes

File:
1 edited

Legend:

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

    r6154 r6245  
    3636#include "worldentities/pawns/Pawn.h"
    3737
     38#include "sound/WorldSound.h"
     39
    3840namespace orxonox
    3941{
     
    4951
    5052        this->setMunitionName("LaserMunition");
     53        this->setDefaultSound("sounds/Weapon_LightningGun.ogg");
    5154    }
    5255
     
    5659
    5760    void LightningGun::fire()
    58     {
     61    {       
    5962        LightningGunProjectile* projectile = new LightningGunProjectile(this);
    6063        projectile->setMaterial("Flares/LightningBall_");
Note: See TracChangeset for help on using the changeset viewer.