CP sound bug


(isbowhten) #1

in my script i have the commands disable/enable - speaker …
SOMETIMES it dis/en-ables the speakers properly on et 2.60, sometimes NOT.
it ALWAYS dis/en-ables it on et 2.55.
my script definetly executes the lines “disablespeaker” and “enablespeaker” (this is what scriptdebug says)

my .sps file:


speakerScript
{
	speakerDef {
		noise "sound/world/radio_allies.wav"
		origin -997.19 876.37 270.11
		targetname "CPspeakerallies"
		looped "on"
		broadcast "no"
		wait 3000
		random 1000
		volume 127
		range 1250
	}

	speakerDef {
                 	noise "sound/world/radio_axis.wav"
		origin -993.46 876.58 280.39
		targetname "CPspeakeraxis"
		looped "on"
		broadcast "no"
		wait 3000
		random 1000
		volume 127
		range 1250
	}
}

no i did NOT copy anything from prefabs or tutorials, i made it from scratch as it should be very easy but those damn ingame speakers dont seem to work


(isbowhten) #2

:bump: : (


(Cambodunum) #3

sounds like a windows 98 bug xD

sry ive no clue (already a scriptingnewb)
greetz Cambo


(isbowhten) #4

hehe… the sound is an extra part of the CP… so it has nothing to do with a CP… it is just a sound executed by a command within in the CP script, nothing else…

at first i did not use looped ingame speakers and they were not dis/en-abled, but after i made them looped dis/en-ablespeaker commands did their job as expected,

but as i had said, they are not dis/en-abled everytime (and that only on 2.60)


(Cambodunum) #5

now a really newbie thought of mine: (please dont laugh)

maybe you need a “spawn XX” infront of “speakerDef {”

now you see im a totally scriptingnewb :slight_smile:
(but i have to learn it now for my objectivemap)

greetz Cam


(isbowhten) #6

no :stuck_out_tongue: the speakers definition are correct … that is why they sometimes WORK xD … well… they play the sound … so it is correct.

but as i said i had to loop them to make dis/-enable speaker work… so perhaps i nmeed somehting different too.

ps: you can ask me for scripting, i like it! my msn is isbowhten@web.de, and my yahoo ID is isbowhten


(Igloo) #7

[please delete my post :)]


(Cambodunum) #8

ps: you can ask me for scripting, i like it! my msn is isbowhten@web.de, and my yahoo ID is isbowhten

kk … thx :slight_smile:


(isbowhten) #9

nobody knows?


(isbowhten) #10

the reason was: broadcast nopvs instead of broadcast no…
but nopvs has nothing to do with if SOMETIMES only at et 2.6 ingame-speakers dont get dis/en-abled.

am i wrong?


(IndyJones) #11

novps AND looped off


(isbowhten) #12

no you dont know anything cause you copied it… looped off means LOOPED + start off
i have LOPPEd + start on + disable them via script.-…

let the guys who know something about answer my question


(IndyJones) #13

i didn’t copy but looked into goldrush.sps file.
no matter what you say, the problem was with looped “on” and broadcast “no”… :stuck_out_tongue:


(isbowhten) #14

it was ONLY broadcast and i am pretty sure that it is a bug


(IndyJones) #15

i have changed broadcast AND looped - now it’s working.


(isbowhten) #16

doesnt matter what you have changed… the bug is in broadcast