Hi, it’s me again with a few stupid coding questions.
I’ve been trying my ass of for this but I just don’t get it to work.
Ok we start of simple (atleast I thought it should be simple)
Here is what I wanted it to do:
I wanted to let’s say:
cgs.media.noAmmoSound = trap_S_RegisterSound( "sound/weapons/misc/fire_dry.wav", qfalse );
This to have multiple sounds that could be used for it (so if you have a “dry fire” you don’t hear the same click everytime. (don’t ask me why, but this is just an example)
So I looked at some of the other code and came up with this:
for( i = 0; i < 2; i++ ) {
cgs.media.noAmmoSound = trap_S_RegisterSound(va( "sound/weapons/misc/fire_dry%i.wav", qfalse );
}
That didn’t work, really right (he only played the second sound and not the first.
So I noticed at some other examples that the had this [i] behind the cgs.media.noAmmoSound
So I tried this but now I get errors that he can’t build the code =(
I looked at some of the code that uses the [i] but I couldn’t figure out why they DID work but mine did not.
How Do I fix this???
Second problem
I wanted those sounds (some of them, like the land_hurt etc.) to be different per team.
Well I looked and I looked and tried and tried but couldn’t figure out how to make it happen.
(hope all this isn’t to complicated to do)
Can somebody help me?
Thnx & Greetz Panther aka Way2evil
