Thread: random sound
View Single Post
Intouchable
Senior Member
Join Date: Mar 2012
Old 04-02-2012 , 04:12   Re: random sound
Reply With Quote #6

Sry, but don't like this i just need sounds only.. Now look.
PHP Code:
new const ZMClasses[][] = {
      
"noob zombie",
      
"bla zombie",
      
"ouch zombie"
}

new 
zm_miss_sounds[][] = {        
{  
"umbrella_swarm/armored/miss/claw_miss_1.wav",  "umbrella_swarm/armored/miss/claw_miss_2.wav", }, // noob zombie random sounds when he miss! first sounds
{  "umbrella_swarm/fake/miss/claw_miss_1.wav",  "umbrella_swarm/fake/miss/claw_miss_2.wav", }, // bla zombie random sounds when he miss! second sounds 
{  "umbrella_swarm/dasd/miss/claw_miss_1.wav",  "umbrella_swarm/dasd/miss/claw_miss_2.wav", } // ouch zombie random SOUNDS! third sounds

If i'am the noob zombie i would have these 2 sounds random when i miss with knife, where I wrote first sound array, if i'am bla zombie i woud have second 3 sounds random when i miss... Can write example how to select noob, bla and ouch zombies sound random?

Last edited by Intouchable; 04-02-2012 at 04:23.
Intouchable is offline