Laserfizzler

Avatar
marKiu
238 Posts
Posted Feb 02, 2012
I was trying to create a laserfield which can be triggered and becomes a fizzler...
On triggered the close animation starts and the laserfield disappears. After that the skin of the laserpanel changes to a fizzler and the open animation begins. At the end the fizzlerfield appears.

This is easy to do with 2 relays but if one relay gets retriggered during the animation its bugged.
I could use a normal button with a reset timer to prevent retriggering but i need a floor_button for my map.

Does anyone got an idea how to solve this problem?

I tried to delay the activation of the relays but then you can simply walk off the button after u triggered it and the laser will stay enabled.

Please help me, i really need this animation to be working for my new map.
Thanks in advance...

I added the .vmf so its easier to understand. laserfizzler.vmf

Advertisement
Registered users don’t see ads! Register now!
Avatar
Robdon
204 Posts
Posted Feb 02, 2012
Replied 2 hours later
Hi,

Its probably going wrong when you trigger the button and then quickly trigger the button again.

Its a timing issue, its trying to start the other relay while the first one is still running.

So, what you need to do is put the following as the first command in each relay, and make sure all the other command are below it (ie start them with a delay of 0.01 or more)

laser_relay1:
OnTrigger:laser_relay2:CancelPending

laser_relay2:
OnTigger:laser_relay1:CancelPending

Then the first thing it will do it cancel the other relay if they get called too quickly.

Rob.

Avatar
marKiu
238 Posts
Posted Feb 02, 2012
Replied 6 hours later
Nice Robdon,

its working fine. thanks.

markiu

Avatar
BenVlodgi
633 Posts
Posted Feb 06, 2013
Replied 1 year later
LPFreaky90 uploaded some great instances here

Lp's Fizzlers

&

Avatar
iWork925
1,080 Posts
Posted Feb 06, 2013
Replied 6 minutes later
Wow those are great! How do I install them so I can use them in hammer?
Avatar
Lpfreaky90
2,842 Posts
Posted Feb 06, 2013
Replied 2 hours later

iWork925 wrote:
Wow those are great! How do I install them so I can use them in hammer?

Copy this content to your steamapps/common/portal 2/ folder.
the instances are in sdk_content/instances/Lp/fizzlers
the textures go to portal2/materials/Lp

When you publish your map; don't forget to add the textures in your file with a program like pakrat :smile:

Avatar
iWork925
1,080 Posts
Posted Feb 06, 2013
Replied 5 hours later
How do you use pakrat?
Avatar
Gemarakup
1,183 Posts
Posted Feb 07, 2013
Replied 4 hours later
Download pakrat, run the pakrat.jar, add the custom files, save the BSP. The game with use the files as they are in the right directory.
Avatar
iWork925
1,080 Posts
Posted Feb 07, 2013
Replied 3 hours later
Its asking me what to open the jar file with. What do I use?
Avatar
josepezdj
2,386 Posts
Posted Feb 07, 2013
Replied 42 minutes later
@iWork. you need the Java Runtime Environment 1.5.0 (at least) installed in your computer to use pakrat.

If it's your first time using it, I'd suggest you to take a look to this tutorial. Do not hesitate to ask me whatever issue you might find (I've packed thousands of custom thingies :wink:)

Avatar
iWork925
1,080 Posts
Posted Feb 07, 2013
Replied 2 hours later
Gee thanks. Your all SO helpful...

But I was jk! :lol:

Avatar
josepezdj
2,386 Posts
Posted Feb 07, 2013
Replied 39 minutes later

iWork925 wrote:
Gee thanks. Your all SO helpful...
But I was jk! :lol:

Haha, you're impossible! lol. You and your acid sense of humor! :lol: Sometimes it's difficult to catch your jokes :biggrin: (but I always lol)

Avatar
iWork925
1,080 Posts
Posted Feb 07, 2013
Replied 1 hour later
lol sorry, its hard to type sarcasm...
Avatar
BenVlodgi
633 Posts
Posted Feb 07, 2013
Replied 1 minutes later

iWork925 wrote:
lol sorry, its hard to type sarcasm...

there should be a font for that kind of stuff

Avatar
iWork925
1,080 Posts
Posted Feb 07, 2013
Replied 2 minutes later
Especially when you reanimate a year old thread...
Avatar
Gemarakup
1,183 Posts
Posted Feb 07, 2013
Replied 1 minutes later
That's not the first time someone did that, but there is no problem with that.
Advertisement
Registered users don’t see ads! Register now!
Avatar
BenVlodgi
633 Posts
Posted Feb 07, 2013
Replied 5 hours later

iWork925 wrote:
Especially when you reanimate a year old thread...

:razz: shhh, they'd never had noticed