Hook Gasstation Explosion
Hi there,
does anyone know how to hook the gasstation explosion? I looked at the [L4D] No Mercy's Elevator [APRIL/2020] https://forums.alliedmods.net/showth...elevator+doors He hooks the elevator by HookSingleEntityOutput(entity, "OnReachedBottom", OnReachedBottom, true); What entity would it be to hook the gasstation explosion? And how would I find that one out? Tried stripper_dump but don't know what to look for. Basically I want the plugin to hook explosion, set off a mega horde and catapult 2-3 cars high away from the gasstation in the direction of the burger sign. Give the lil oops moment to the players with luck incap a player with one of those cars… |
Re: Hook Gasstation Explosion
Can you show stripper dump ?
And can you also, go to |
Re: Hook Gasstation Explosion
1 Attachment(s)
This is the position right unter the gasstation.
setang 18.078381 89.387306 0.000000 setpos 12386.853516 6288.364258 116.332886; Stripper Dump attached. |
Re: Hook Gasstation Explosion
I just guessing, there is logic_relay: gasstation_explosion_relay (and gaspumps have own relays too)
Code:
{ Code:
... Listen globally entity outputs PHP Code:
But you need hook on round_freeze_end or else event. OnMapStart maybe works in L4D, I'm not sure. PHP Code:
|
Re: Hook Gasstation Explosion
Thanks you, I tried both suggestions but I don't see anything in chat when I shoot the gas station.
Any idea why it might not give any output? |
Re: Hook Gasstation Explosion
Dam, I have maybe do something wrong.
*edit Just for test, edit Code:
public void OnTrigger(const char[] output, int caller, int activator, float delay) |
Re: Hook Gasstation Explosion
This fires
- OnTrigger 'gasstation_explosion_relay' index -2119029715 - OnTrigger 'gasstation_explosion_relay' index -2134451156 - OnTrigger 'gasstation_explosion_relay' index -2104460105 - OnTrigger 'gasstation_explosion_relay' index -2137469871 - OnTrigger 'gasstation_explosion_relay' index -2046321482 - OnTrigger 'gasstation_explosion_relay' index -2073998298 - OnTrigger 'gasstation_explosion_relay' index -2107548637 I found it! changed if(!StrEqual( to if(StrEqual( char m_iName[MAX_NAME_LENGTH]; GetEntPropString(caller, Prop_Data, "m_iName", m_iName, sizeof(m_iName)); if(StrEqual(m_iName, "gasstation_explosion_relay", false)){ PrintToChatAll("- OnTrigger 'gasstation_explosion_relay' index %i", caller); } Thanks a lot!!! |
Re: Hook Gasstation Explosion
Yes. I had to make a test map to look problem.
I didn't know that logic_* don't have entity index (above zero). I fix my previous examples |
Re: Hook Gasstation Explosion
1 Attachment(s)
Thanks a lot man.
Here is what I have now :D Unexpected, when you stand in the car's way! Unfortunately the car can't fly to the burger sign, there must be some transparent barrier blocking it at the truck. So now it flies to the other side, that's OK too. One strange thing occurres though, when you jump on that car and then jump again, it pulls you away to one direction. I have no idea what is causing it. When you jump on the car pre explode it is normal. I replace the car after six seconds with another one, that fixes it. |
All times are GMT -4. The time now is 22:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.