Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 10, 2011, 4:59:00 PM (14 years ago)
Author:
landauf
Message:

fixed "No munition class defined in WeaponMode" warning:
you have to actually create the munition class, it's not just a string
→ added RocketMunition

Location:
code/trunk/src/modules/weapons/weaponmodes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/weapons/weaponmodes/RocketFire.cc

    r6732 r7846  
    5151        this->speed_ = 500;
    5252
    53         this->setMunitionName("LaserMunition");
     53        this->setMunitionName("RocketMunition");
    5454        // The firing sound of the Rocket is played in Rocket.cc (because of OpenAl sound positioning)
    5555    }
  • code/trunk/src/modules/weapons/weaponmodes/SimpleRocketFire.cc

    r7183 r7846  
    5353        this->speed_ = 500;
    5454
    55             this->setMunitionName("TargetSeeking Rockets");
    56             this->setDefaultSoundWithVolume("sounds/Rocket_launch.ogg",0.4f);
     55        this->setMunitionName("RocketMunition");
     56        this->setDefaultSoundWithVolume("sounds/Rocket_launch.ogg",0.4f);
    5757        // The firing sound of the Rocket is played in Rocket.cc (because of OpenAl sound positioning)
    5858    }
Note: See TracChangeset for help on using the changeset viewer.