Tremulous Forum

Media => Mapping Center => Topic started by: striker on May 04, 2009, 06:42:55 am

Title: Alarm and stuff/button
Post by: striker on May 04, 2009, 06:42:55 am
I'm kinda making a few maps  i was looking around messing with some controls for make making , seems I'm making a base any one know how to make a button start an alarm (sound loop) and push it again to stop it.  Ill appreciate it if some one can help.  ???

thanks
Title: Re: Alarm and stuff/button
Post by: Knowitall66 on May 04, 2009, 08:48:34 am
Make a target_speaker (There's a looping key/checkbox in the entity window ('N')) then link a button/trigger to it (Ctrl K). Issue is afaik with standard code you can't stop the sound once its been triggered. (I beleive the 'Advanced Map Patch' (Mod) fixes this).
One possible solution is edit the sound effect to make it longer then don't have it loop (So it'll play for a bit but not forever).
Title: Re: Alarm and stuff/button
Post by: striker on May 04, 2009, 10:46:49 am
thankz m8 much appreciated   :D
Title: Re: Alarm and stuff/button
Post by: striker on May 15, 2009, 07:44:07 am
mmmm im back  for some reson when i try to push the button it dose nothing, the button dont move eather, well i tryed any way thankx any way
Title: Re: Alarm and stuff/button
Post by: whitebear on June 09, 2009, 10:45:25 pm
Just make sure the button is "func_button" and that you did not add "health" key. If you have "health" key then you need to damage the button until you have done damage equal or more than the value set in "health" key. Also the sound needs to be *.Wav format and Mono. I am not sure but I also think the rate of the audio should be 22050 Hz
Title: Re: Alarm and stuff/button
Post by: UniqPhoeniX on June 10, 2009, 02:28:53 am
A targetname key on buttons also makes them not work :(.
Title: Re: Alarm and stuff/button
Post by: whitebear on June 10, 2009, 05:23:48 am
Ah yes. But I don't see reason to add "targetname" on them.
Title: Re: Alarm and stuff/button
Post by: ==Troy== on June 10, 2009, 01:09:16 pm
There is a bug in trem that you cannot turn off looping sounds.