Did I just trip over a hidden flag?

Moderators: GSH, VSMIT, Red Devil, Commando

Post Reply
APCs r Evil
Sabre
Posts: 299
Joined: Sat Feb 19, 2011 4:13 am

Did I just trip over a hidden flag?

Post by APCs r Evil » Wed Feb 23, 2011 4:10 am

I was fumbling around with a spraybomb weapon some time ago, I gave up on it for a while because I couldn't get it to bounce quietly using;

bounceSound = "silence.wav"//One of my custom sound files, you'll never guess what it sounds like

I tried it again today, hoping I'd typed the flag incorrectly before. This time I used;

soundBounce = "silence.wav"//note the difference

Using the second flag, the spraybomb bounced silently.

Looking through the changelog, modlog and any spraybomb ODFs I could think of, I couldn't find any reference to the second flag so I'm wondering if anyone knows about it.

In short,

bounceSound = X//Works for bouncebombs only
soundBounce = X//Works for spraybombs only, seems to be undocumented

User avatar
GSH
Patch Creator
Posts: 2481
Joined: Fri Feb 18, 2011 4:55 pm
Location: USA
Contact:

Re: Did I just trip over a hidden flag?

Post by GSH » Wed Feb 23, 2011 4:27 am

Only items added since 1.3 started are in the changelog. As far as I can tell, [SprayBombClass]::soundBounce was in the code when 1.3 started.

-- GSH

User avatar
TheJamsh
Bull Dog
Posts: 689
Joined: Sat Feb 19, 2011 5:49 pm

Re: Did I just trip over a hidden flag?

Post by TheJamsh » Wed Feb 23, 2011 8:34 am

Known about this for a while, its definitely a flag from before 1.3 development.

But yeah, for some reason Spraybomb and Bouncebomb have the words arranged differently for the same result. Could be loads of reasons why i guess!

User avatar
GSH
Patch Creator
Posts: 2481
Joined: Fri Feb 18, 2011 4:55 pm
Location: USA
Contact:

Re: Did I just trip over a hidden flag?

Post by GSH » Wed Feb 23, 2011 3:18 pm

Also, it's hardly hidden if odfs in data.pak use it:

C:\src\BZ2\data\weapons\isdf\mortars\gmdmgun\mdmgun.odf(26):soundBounce = "mdmort03.wav"

-- GSH

Post Reply