WiseElec: Difference between revisions
m (Appending Template: to the beginning of a template tag isn't necessary) |
DarK St3alth (talk | contribs) m (Temp notice about further clean up.) |
||
Line 1: | Line 1: | ||
{{Template:Inuse}} | |||
{{morescreenshots}} | {{morescreenshots}} | ||
== Electrified Obstacles == | == Electrified Obstacles == | ||
Line 4: | Line 5: | ||
[[image:wiseElec01.jpg|thumb|150px|right|Typical electrified obstacle.]] | [[image:wiseElec01.jpg|thumb|150px|right|Typical electrified obstacle.]] | ||
In this tutorial, we will create an obstacle in which it is electrified and can be toggled by a [[trigger]]. You can any [[model]] for this, but for the tutorial we will use a railing from ''Half Life 2'' (see right). | In this tutorial, we will create an obstacle such as a fence in which it is electrified and can be toggled by a [[trigger]]. You can any [[model]] for this, but for the tutorial we will use a railing from ''Half Life 2'' (see right). | ||
{{note|Remember the player has to get around the obstacle.}} | {{note|Remember the player has to get around the obstacle.}} |
Revision as of 10:22, 7 July 2011

You can upload screenshots at Special:Upload. For help, see the Help:Images.
Electrified Obstacles
In this tutorial, we will create an obstacle such as a fence in which it is electrified and can be toggled by a trigger. You can any model for this, but for the tutorial we will use a railing from Half Life 2 (see right).


For the purpose of this tutorial the rail obstacle is initially electrified, however, it can be disabled by standing on a small red carpet and re-enabled by standing on a small green carpet (the carpets are not shown in screenshots).
When a player "touches" the fence while it is electrified there will be sparks, and the player will get blown back a few feet.

trigger_hurt is used to start off the series of events when the player touches it. Additionally, it outputs to entities to create the "blow back" of the player and sparks. These are:
one (1) env_physexplosion, eight (8) env_sparks, one (1) trigger_push and one (1) logic_timer to lend some logic.


For the On/Off switch use two trigger_multiples and place them over the red and green carpets.
In the tutorial, the prop_static entity is for the railing/electrified object but you could just as easily use motion enabled entity types.

Wrap up
There’s a lot more you can do, hopefully this article have stimulated your imagination.
- The example used in this tutorial.
- If you need further help please use the forum for Source level Design
Credits
The tutorial was originally created by wisemx, and ported from sdknuts.net/wiseElec to the VDC by Peter [AGHL] 05:55, 9 Feb 2008 (PST)