WiseElec: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Temp notice about further clean up.)
(My final cleanup I hope. Still needs work. Removed "credits", since you can see who did what in the version summery.)
Line 1: Line 1:
{{Template:Inuse}}
{{morescreenshots}}
{{morescreenshots}}
== Electrified Obstacles ==
== Electrified Obstacles ==
Line 5: Line 4:
[[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 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).  
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 as one but as a recommendation, using a [[model]] prop for this makes it easy. For the tutorial we will use a railing from ''Half Life 2'' (see right).  


{{note|Remember the player has to get around the obstacle.}}
{{tip|It doesn't have to be a fence! Try a ladder, door/gate or even water/ground!}}


{{note|You could apply this concept to a ladder, door/gate or even water/ground.}}


=== Overview ===


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).
For the purpose of this tutorial the rail obstacle is initially electrified, since that is what many will require. For that purpose, the example map shows that 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.
When a player "touches" the fence in this tutorial while it is electrified there will be sparks, and the player will get blown back a few feet.


 
{{idea|To create a realistic effect, you may want to add sounds and possibly smoke.}}
{{tip|To create a realistic effect, you may want to add sounds and possibly smoke.}}




[[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:
[[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_spark]]s, one (1) [[trigger_push]] and one (1) [[logic_timer]] to lend some logic.
one (1) [[env_physexplosion]], eight (8) [[env_spark]]s, one (1) [[trigger_push]] and one (1) [[logic_timer]] to lend some logic.
{{note|You can load the example map file at the bottom to see the entities specified here.}}
=== Requirements ===
It is recommended that you have basic understanding of the Hammer editor, and with placing a [[entity]] and the manipulation of such.
{{note|You can load the example map file at the bottom to see how things should go together.}}




{{note|Load the example map file at the bottom to see each of the entities mentioned here.}}


{{idea|You could easily create a switch for this, another kind of "secret" trigger or the lever like Valve used in [[Ravenholm]].}}
== Getting to it ==
 
So let's get going on creating that electrified obstacle.


For the On/Off switch use two [[trigger_multiple]]s and place them over the red and green carpets.


First, we should find a spot in our level or map in which we think we should place one. As with ''Half Life 2'' players solve "puzzles" to continue progressing the game - and this can be thought as of such.


[[image:wiseElec02.jpg|thumb|150px|right|Hammer design view.]]
Next, we will make the obstacle that will be "electrified". This can be a [[prop_static]] or a displacement. It is recommended to use something like a fence, or a railing (shown in the first screenshot), since it logical item to a player. You could just as easily use motion enabled entity types.  
In the tutorial, the [[prop_static]] entity is for the railing/electrified object but you could just as easily use motion enabled entity types.  


{{note|Remember the player has to get around the obstacle.}}


{{idea|This concept could be extended to a gate that would swing open once the electricity was turned off, or even a loose cable trapped under a vehicle.}}
{{idea|This concept could be extended to a gate that would swing open once the electricity was turned off, or even a loose cable trapped under a vehicle.}}
Now, we will create the entities for the electrified fence.
'''''The table showing setup of the entities is not currently available.'''''
Most people will require a way of shutting the "electricity" off to the obstacle. Follow these steps:
'''''The table showing setup of the entities is not currently available.'''''
{{idea|You could easily create a switch for this, another kind of "secret" trigger or the lever like Valve used in [[Ravenholm]].}}
[[image:wiseElec02.jpg|thumb|150px|right|Hammer design view.]]


== Wrap up ==
== Wrap up ==
There’s a lot more you can do, hopefully this article have stimulated your imagination.
There’s a lot more you can do, hopefully this article have stimulated your imagination.
* [[wiseElec.vmf|The example used in this tutorial.]]  
* [[wiseElec.vmf|The example used in this tutorial.]]  
* If you need further help please use the [http://forums.steampowered.com/forums/forumdisplay.php?f=193 forum for Source level Design]
* If you need further help please use the [http://forums.steampowered.com/forums/forumdisplay.php?f=193 forum] for Source level Design


<h2> Credits </h2>
<h2> Credits </h2>
The tutorial was originally created by [[User:Mark WiseCarver|wisemx]], and ported from sdknuts.net/wiseElec to the VDC by [[User:Plykkegaard|Peter [AGHL]]] 05:55, 9 Feb 2008 (PST)
Original tutorial was originally created by [[User:Mark WiseCarver|wisemx]] from [http://sdknuts.net/wiseElec]
 
[[Category:Level Design Tutorials]]
[[Category:Level Design Tutorials]]

Revision as of 12:39, 7 July 2011

Electrified Obstacles

Typical electrified obstacle.

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 as one but as a recommendation, using a model prop for this makes it easy. For the tutorial we will use a railing from Half Life 2 (see right).

Tip.pngTip:It doesn't have to be a fence! Try a ladder, door/gate or even water/ground!


Overview

For the purpose of this tutorial the rail obstacle is initially electrified, since that is what many will require. For that purpose, the example map shows that 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 in this tutorial while it is electrified there will be sparks, and the player will get blown back a few feet.

Tip.pngIdea:To create a realistic effect, you may want to add sounds and possibly smoke.


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.

Note.pngNote:You can load the example map file at the bottom to see the entities specified here.


Requirements

It is recommended that you have basic understanding of the Hammer editor, and with placing a entity and the manipulation of such.

Note.pngNote:You can load the example map file at the bottom to see how things should go together.


Getting to it

So let's get going on creating that electrified obstacle.


First, we should find a spot in our level or map in which we think we should place one. As with Half Life 2 players solve "puzzles" to continue progressing the game - and this can be thought as of such.

Next, we will make the obstacle that will be "electrified". This can be a prop_static or a displacement. It is recommended to use something like a fence, or a railing (shown in the first screenshot), since it logical item to a player. You could just as easily use motion enabled entity types.

Note.pngNote:Remember the player has to get around the obstacle.
Tip.pngIdea:This concept could be extended to a gate that would swing open once the electricity was turned off, or even a loose cable trapped under a vehicle.

Now, we will create the entities for the electrified fence.


The table showing setup of the entities is not currently available.


Most people will require a way of shutting the "electricity" off to the obstacle. Follow these steps:


The table showing setup of the entities is not currently available.


Tip.pngIdea:You could easily create a switch for this, another kind of "secret" trigger or the lever like Valve used in Ravenholm.
Hammer design view.

Wrap up

There’s a lot more you can do, hopefully this article have stimulated your imagination.

Credits

Original tutorial was originally created by wisemx from [1]