Making a headcrab xen teleport: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE: Black Mesa - Making a Headcrab Xen Spawner}}
{{back | Black Mesa Level Creation}}
{{Multiple issues|
{{Orphan|date=February 2024}}
{{cleanup|Grammatical errors.}}
}}{{Tutorial Skill Level | skill=1}}
'''This guide will teach you how to make an npc (in this case a headcrab) teleport in-front of the player as seen throughout the campaign.'''


 
==Step 1==
== Creating Making a headcrab xen teleport ==
===Step 1a===
This guide will teach you how to make an npc (in this case a headcrab) teleport in-front of the player as seen throughout the campaign
{{Tutorial Skill Level | skill=1}}
 
== Trigger Construction ==
=== The trigger ===
Start by creating a brush that uses the ''tools/toolstrigger'' texture
Start by creating a brush that uses the ''tools/toolstrigger'' texture
<br>
<br>
Next tie it to a <code>trigger_once</code> by pressing control + T
Next tie it to a <code>trigger_once</code> by pressing control + T
[[Image:Bms teleport trigger.png|thumb|right|600px|The trigger brush tied to a trigger_once]]
[[File:Bms teleport trigger.png|thumb|right|600px|The trigger brush tied to a trigger_once]]


=== The trigger logic ===
===Step 1b===


Now in the outputs add the following:
Now in the outputs add the following:
{| {{OutputsTable}}
{| {{OutputsTable}}
| [[Image:Io11.png]] || OnStartTouch || xen_spawner || Spawn || &nbsp; || 0.00 || No
| [[File:Io11.png]] || OnStartTouch || xen_spawner || Spawn || &nbsp; || 0.00 || No
|-
|-
|}
|}
Line 22: Line 24:
{{clr}}
{{clr}}


== The xen portal ==
==Step 2==
Place a <code>env_xen_portal</code> with the following properties:
Place a <code>env_xen_portal</code> with the following properties:
{| class=standard-table
{| class=standard-table
Line 38: Line 40:
|}
|}
<br>
<br>
Note: you may play around with the <code>Frequency</code>, <code>Max Live NPCs</code>, <code>Class name of spawned NPC </code> parameters!
You may edit the <code>Class name of spawned NPC </code> parameter to change the desired npc, they are usually xen creatures.
{{warning|Be careful of the Max Live NPCs and Frequency parameters, if you don't know what you are doing then leave it as the above values}}
{{note | You may fiddle around with the <code>Frequency</code>, and <code>Max Live NPCs</code> parameters to your liking.}}
{{warning|Be careful of the Max Live NPCs and Frequency parameters, if you don't know what you are doing then leave it as the above values.}}
{{clr}}
{{clr}}


Line 45: Line 48:
Your final setup should look like this;
Your final setup should look like this;


[[Image:Bms teleport final.png|thumb|center|600px|The final result:]]
[[File:Bms teleport final.png|thumb|center|600px|The final result:]]
 
[[Category:Tutorials]][[Category:Black Mesa level design]]

Latest revision as of 05:38, 22 February 2024

Black Mesa Level Creation
Wikipedia - Letter.png
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality because:
Grammatical errors.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.
Skill Level

This tutorial expects you to have this amount of knowledge within the topic to follow along smoothly.

Novice Familiar Competent Proficient Expert

This guide will teach you how to make an npc (in this case a headcrab) teleport in-front of the player as seen throughout the campaign.

Step 1

Step 1a

Start by creating a brush that uses the tools/toolstrigger texture
Next tie it to a trigger_once by pressing control + T

The trigger brush tied to a trigger_once

Step 1b

Now in the outputs add the following:

  My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnStartTouch xen_spawner Spawn   0.00 No

Step 2

Place a env_xen_portal with the following properties:

Property Name Value
Name xen_spawner
Frequency -1
Max Live NPCs 1
Class name of spawned NPC npc_headcrab


You may edit the Class name of spawned NPC parameter to change the desired npc, they are usually xen creatures.

Note.pngNote: You may fiddle around with the Frequency, and Max Live NPCs parameters to your liking.
Warning.pngWarning:Be careful of the Max Live NPCs and Frequency parameters, if you don't know what you are doing then leave it as the above values.

Final Setup

Your final setup should look like this;

The final result: