Forum posts

Posted 17 years ago2007-02-04 03:49:19 UTC
in Sound looping through round end Post #211605
Hello, I need help with the following. I am making a CSS Map and I have 4 .wav files (songs) that I would like to be played in order. The problem is, it will get annoying at the beginning of a new round to hear the start of the first song again. I would like to know if it's possible (and how) to have the sound file finish playing even through round restart. I can combine the four files into 1 if needed. I would also like this file to loop when it has completed once. If this is not possible, what alternatives do I have?
Posted 17 years ago2006-12-19 19:08:57 UTC
in Fire Triggered by Button Post #206977
I finally figured out what was wrong. The "Damage activates" flag cannot be enabled for the func_button because I think when you first use it it senses that damage and "activates" it again, which would turn it off, so before you can even see it, it is shut off. Also make sure you don't have 0.50 for parameter override for the extiguish temporary- I set it to 0.51 and it worked fine. I dunno why this is but instead of making the fire completely vanish immediately, setting 0.51 makes it go in just about half a second. Thanks everyone for all your help, especially BJ. :)

PS: The problem map is now an example map if anyone would like to check out just what the heck I've been talking about. :P
www.twhl.co.za/mapvault_map.php?id=4326
Posted 17 years ago2006-12-19 17:26:53 UTC
in Fire Triggered by Button Post #206957
Ok, I tinkered with it but couldn't get it to work. I know I had it working before, so that's why I don't understand what's wrong now. :/ Anyways here is an example map with a working fire (on the left) and supposed to work with sound (but non-working) on the right.

http://twhl.co.za/mapvault_map.php?id=4326

Please take a look at it an tell me what you think. Thanks.
Posted 17 years ago2006-12-18 22:44:01 UTC
in Fire Triggered by Button Post #206859
Hmm ok I did what you said and now i use the button, but no fire appears, nor any sounds, but I get 1 damage. Also each time I "use" it I get another 1 damage.
Some info:

ambient_generic:
sound name: ambient/fire/fire_small_loop2.wav

inputs:
source: oven button
output:onin
my input: playsound
delay:0
once: no

and

source: oven button
output:onout
my input: stopsound
delay:0
once: no

func_button
name: oven button
delay before reset: 0
sounds: none(silent)

outputs:
my output: onin
target entity: oven fire
target input: start fire
delay: 0
only once: no

my output:onin
target entity: fire sound
target input: playsound
delay: 0
only once: no

my output:onout
target entity: oven fire
target input: extinguishtemporary
parameter: .1
delay: 0
only once: no

my output:onout
target entity: fire sound
target input: stopsound
delay: 0
only once: no
Posted 17 years ago2006-12-17 20:21:56 UTC
in Fire Triggered by Button Post #206717
Umm, ok, I tried what you said and it didn't work. What would happen was the fire would start and the sound as well, but the sound would only last 1/4 of a second and then repeat itself. I also could no longer disable the fire nor the sound. This is what I did.
I created an ambient_generic and picked a sound and assigned the name "fire sound" to it. The sound name is ambient/fire/fire_small_loop2.wav For flags I have only "Start Silent" checked out of a possible "Play Everywhere" and "Is NOT Looped"
On my "Button" (a nodraw brush with the two outputs assigned already to start and end the fire) I created another output.
My Output Named: OnPressed
Targets entity named: fire sound
Via this input: Togglesound

And like I said above is what happens. What should I change to have the sound loop when the flame is burning and then turn off again when you stop the fire? Thanks.
Posted 17 years ago2006-12-17 17:46:43 UTC
in Fire Triggered by Button Post #206693
Ok thanks BJ, your method worked perfectly. One more thing, do you know how I would have the fire play a "burning" sound only when the fire is active? Thanks.
Posted 17 years ago2006-12-17 14:39:16 UTC
in Fire Triggered by Button Post #206674
Ok I have all that setup, except I cannot do Toggle for "Via this input" My only options are:
Kill
KillHierarchy
AddOutput
FireUser1-4
SetParent
SetParentAttachment
SetParentAttachmentMaintainOffset
ClearParent
Enable
Disable
StartFire
Start the fire.
Extinguish
ExtinguishTemporary
Posted 17 years ago2006-12-17 03:09:21 UTC
in Fire Triggered by Button Post #206633
Hello, just a quick question here. In my CSS map I have an env_fire. Now I would like to know what to do to allow, say for example the player to "use" (with e, toggleable) a box made of the nodraw texture, which will act like a button. This button should instantly enable and disable the fire, preferably with accompanying sound. How should I do this? Thanks.
Posted 17 years ago2006-12-09 10:40:16 UTC
in func_door Horizontally Post #205556
Thanks, I did what you said and it worked perfectly. ;)
Posted 17 years ago2006-12-09 02:28:48 UTC
in func_door Horizontally Post #205535
Hello, I am making a desk and have a drawer coming out of it. I have a brush that is currently tied to the entity func_door. I need this brush to come out away from desk- you know, outward, like a normal drawer does. I've fooled around and all I can get it to do is go upward but not outward. How can I get it to move horizontally? Thanks.
Posted 17 years ago2006-12-01 23:37:36 UTC
in Sliding Door help Post #204785
Ok, I just removed the frames and now everything is ok. Now that I think about it, it looks better without it. :P Thanks for the help.
Posted 17 years ago2006-12-01 01:10:49 UTC
in Sliding Door help Post #204707
Hello, I downloaded and used the sliding, glass breakable door found here:
http://sourceprefabs.com/modules.php?op=modload&name=Downloads&file=index&req=viewdownloaddetails&lid=101&ttitle=Sliding_Glass_Door
Now, I want to use it, only except for breakable glass, I just want a brush with my own texture. I have tried many things but either nothings moves, or just the two frames move and the actual wood doors stay in the same spot. What do I need to change from the glass doors to the wooden doors in that download to make it work? Thanks.