Logic Timers

Logic Timers

Re: Logic Timers Posted by Dark|Killer on Wed Sep 7th 2005 at 9:56am
Dark|Killer
758 posts
Posted 2005-09-07 9:56am
758 posts 225 snarkmarks Registered: Dec 22nd 2004 Occupation: Student Location: Dubai (Middle East)
Hey all,

In this map of mine, im trying to create certain explosion's sounds
randomly in my map, i triggered the logic timer by a trigger, and
worked with the input and output, but the sounds wont play, its just i
think i messed up some stuff in the input\output thingy..

What i need is just tell me how to make an ambient_generic to play
sound at random times in the map, i dont really want to put triggers
every step to play it right ? so...Just point me to a tut if i missed
one, and uhh, if you know, please inform me XD
.::Dark|Masta::. - One name. One legend.
Re: Logic Timers Posted by BlisTer on Wed Sep 7th 2005 at 3:45pm
BlisTer
801 posts
Posted 2005-09-07 3:45pm
BlisTer
member
801 posts 1304 snarkmarks Registered: Jun 10th 2004 Location: Belgium
i found logic_timers to work without input, they just need to be "start disabled: no". If you want them to fire on random intervals, you'll have to work with "Minimum Random Interval - Use Random Time" or "Maximum Random Interval - Use Random Time" and not fill in a refire interval.

your output should point to the name of your ambient_generic entity, via the OnTimer command. the action should be "Playsound"

You can set the ambient generic to be audible within a certain radius, or everywhere if you check the "play everywhere" flag under the flags tab of your ambient generic. If you want custom sound, you should point to an mp3 or wav that sits under ...sound<yourcustomfolder>

edit: if you want to start the random explosions with a trigger: make the logic_timer disbaled and use your trigger to enable it. If, with that, you want the first explosion to be there at that exact moment, you should also directly trigger the ambient_generic with your trigger
These words are my diaries screaming out loud
Re: Logic Timers Posted by Dark|Killer on Wed Sep 7th 2005 at 8:30pm
Dark|Killer
758 posts
Posted 2005-09-07 8:30pm
758 posts 225 snarkmarks Registered: Dec 22nd 2004 Occupation: Student Location: Dubai (Middle East)
Yo hey man it worked, thanks alot, i tweaked it up that i made a
certain light turns on with the explosion sound as if its like glowing
the room from the outside XD

Thanks alot dude
.::Dark|Masta::. - One name. One legend.
Re: Logic Timers Posted by Crono on Wed Sep 7th 2005 at 8:34pm
Crono
6628 posts
Posted 2005-09-07 8:34pm
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
Yo hey man it worked, thanks alot, i tweaked it up that i made a
certain light turns on with the explosion sound as if its like glowing
the room from the outside XD

Thanks alot dude
Huh. That's clever. I never thought about doing that at all, that'd be really cool. Hey, you could even trigger a shake and dust from ceilings to give some added effects, depending on how close the "explosion" is.

Oh, DoD:S mapping will be fun :smile:
Blame it on Microsoft, God does.
Re: Logic Timers Posted by BlisTer on Wed Sep 7th 2005 at 9:02pm
BlisTer
801 posts
Posted 2005-09-07 9:02pm
BlisTer
member
801 posts 1304 snarkmarks Registered: Jun 10th 2004 Location: Belgium
Dark|Killer said:
Yo hey man it worked, thanks alot, i tweaked it up that i made a certain light turns on with the explosion sound as if its like glowing the room from the outside XD
Thanks alot dude
np that's why we're here, helping each-other sniff. Heh, seriously, thats a great idea. You could create that a-bomb effect, that white flash. Just place a lot of white lights around the place at a very high brightness, set to enable for only 1sec. Dunno if you can make the textures adapt to that light though, would have to be dynamic. I'll look into that when/if i ever make a SP map again.
These words are my diaries screaming out loud
Re: Logic Timers Posted by Dark|Killer on Wed Sep 7th 2005 at 9:14pm
Dark|Killer
758 posts
Posted 2005-09-07 9:14pm
758 posts 225 snarkmarks Registered: Dec 22nd 2004 Occupation: Student Location: Dubai (Middle East)
I made it, it worked, i even made it through a window with block light
brushes and made a cool effect, and the dust crono seems to be really
nice too gives a cool effect, thanks alot u guys...

So i triggered these:

Lights go off and on

Shakes with each explosions and each explosion got its own sound, thats pretty nice hehe

dust that looks realy really amazing

and thats all XD

Pretty cool, thanks for your help guys

P.S. you should try doing it too, if you i cant give post up the bsp XD
.::Dark|Masta::. - One name. One legend.
Re: Logic Timers Posted by Crono on Wed Sep 7th 2005 at 10:25pm
Crono
6628 posts
Posted 2005-09-07 10:25pm
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
That'd be cool. I'd like to see the effect in action. And I'm too lazy to do it on my own :razz:
Blame it on Microsoft, God does.
Re: Logic Timers Posted by BlisTer on Wed Sep 7th 2005 at 10:44pm
BlisTer
801 posts
Posted 2005-09-07 10:44pm
BlisTer
member
801 posts 1304 snarkmarks Registered: Jun 10th 2004 Location: Belgium
same here :smile: and maybe put your entities for the effect in a small .vmf
These words are my diaries screaming out loud
Re: Logic Timers Posted by Dark|Killer on Thu Sep 8th 2005 at 11:01am
Dark|Killer
758 posts
Posted 2005-09-08 11:01am
758 posts 225 snarkmarks Registered: Dec 22nd 2004 Occupation: Student Location: Dubai (Middle East)
Yo, ok here it is, i added an env_sprite to give a hotter view, there
are some timing bugs and glitches, but who would care, add it in a big
map and no one would notice...Becuase its like continues shooting, i
added env_gunfire too, and battle backgrounds, so it means that its
WAR, its nice if you were liking running through the streets with
lights,sounds,shakes,effects,guns and cool stuff all around you, makes
a really perfect war view...hehe

Files: http://www.ihud.com/file.php?file=1126178035/timertest.zip

P.S. if you fixed the bugs or added nicer effects or fixed anything,
inform us here and post the bsp\vmf so we can enjoy too...XD

Another P.S. If the download host is kinda slow or somethin like that,
its becuase i lost all good free file hosting websites, so if you can
tell me too, well it will be nice of you XD
.::Dark|Masta::. - One name. One legend.
Re: Logic Timers Posted by Crono on Thu Sep 8th 2005 at 11:53am
Crono
6628 posts
Posted 2005-09-08 11:53am
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
Not quite what I was imagining :biggrin:
Blame it on Microsoft, God does.
Re: Logic Timers Posted by Dark|Killer on Thu Sep 8th 2005 at 12:26pm
Dark|Killer
758 posts
Posted 2005-09-08 12:26pm
758 posts 225 snarkmarks Registered: Dec 22nd 2004 Occupation: Student Location: Dubai (Middle East)
LOL, fix any bugs and post what you get here :biggrin:

And try doing what you got in your mind (imagination) :razz:
.::Dark|Masta::. - One name. One legend.