Re: trigger_hurt
Posted by hunter264 on
Sun Dec 5th 2004 at 4:42pm
4 posts
0 snarkmarks
Registered:
Dec 5th 2004
Occupation: HVAC
Hello,
Been mapping for a while I come to it now that I want to add an electric shock to my sub station on the fence. So I go and try to place the trigger_hurt entity and there is none? Is it just me or am I missing something here? Is there another entity that I can use that I dont know about to apply to my fence so when the player touches it he recieves damage? Also what I am trying is if you remeber in hl2 when you had to unplug the electirc cord to shut the force fields off well I am trying to create that but with electric. U knwo you plug it in electric is applied to fence unplug then it is off. Does anyone know how to do that? Help would be greatly appreciated . Thankyou -Mike
Re: trigger_hurt
Posted by Tracer Bullet on
Sun Dec 5th 2004 at 5:15pm
2271 posts
445 snarkmarks
Registered:
May 22nd 2003
Occupation: Graduate Student (Ph.D)
Location: Seattle WA, USA
I've checked it out, and there is in fact a trigger hurt. are you aware that it is a brush-based entity? You have to place a brush to define the volume in which the entity will operate, then you have to tie the brush to the trigger_hurt.
I do not know how the plug effect was acheived. Clearly that was a utilization of some of the physics entities, but it would take me a while to work out how it might be done. If you were to use a switch instead, it would be much simpler. All you would have to do is place a switch that sends a "disable" command to all of your electrical-effects entities when it is fired.
Re: trigger_hurt
Posted by hunter264 on
Sun Dec 5th 2004 at 6:11pm
4 posts
0 snarkmarks
Registered:
Dec 5th 2004
Occupation: HVAC
Okay so I have to creat the brush then tie the entinity in I got it now. Thankyou very much. Now your were saying about a switch that will do me fine also. Now how do I tie that in with the trigger_hurt. Is there a tutorial you can point me to? Thanks alot
Re: trigger_hurt
Posted by Tracer Bullet on
Sun Dec 5th 2004 at 6:48pm
2271 posts
445 snarkmarks
Registered:
May 22nd 2003
Occupation: Graduate Student (Ph.D)
Location: Seattle WA, USA
Do it like this:
Create the trigger_hurt with the settings you want and give it a name. e.g. E_Shock_1
Now create your switch or button (try a func_button). In the output tab you want it to disable E_Shock_1, so the output entry would be something like this:
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
OnPressed E_Shock_1 Disable 0
[/quote]
With this setup, when the button is pressed, any and all entities named "E_Shock_1" will be disabled with a delay of zero seconds.