Creating Portal Neurotoxin Gas: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added information to Timer)
m (→‎See also: Unicodifying, replaced: See Also → See also)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE: Creating Neurotoxin Gas}}
{{DISPLAYTITLE: Portal BTS - Tutorial - Neurotoxin Gas}}
{{back | Portal Level Creation|Portal Level Creation}}
{{back | Portal Level Creation|Portal Level Creation}}
{{Morescreenshots}}{{stub}}
{{stub}}
 
 
==Introduction==
==Introduction==
This guide will teach you how to create neurotoxin gas.
This guide will teach you how to create neurotoxin gas.
Line 14: Line 16:
{{note|If your gas must activate instantenously on map spawn, then make sure you set the <code>Start Active</code> keyvalue to <code>Yes.</code>}}
{{note|If your gas must activate instantenously on map spawn, then make sure you set the <code>Start Active</code> keyvalue to <code>Yes.</code>}}
Set the <code>[[info_particle_system|info_particle_system's]]</code> name to <code>home_neurotoxin_pipe_stream</code>.
Set the <code>[[info_particle_system|info_particle_system's]]</code> name to <code>home_neurotoxin_pipe_stream</code>.
[[File:Neurotoxin Gas Example.png|500px|Example values for <code>[[info_particle_system]]</code> with neurotoxin particles]]


== Timer ==
== Timer ==
[[File:Startneurotoxins Example.png|thumb|500px|An example of the values to put into your output to start the neurotoxin timer]]


The neurotoxin timer is started by using the <code>[[startneurotoxins]]</code> console command.
The neurotoxin timer is started by using the <code>[[startneurotoxins]]</code> console command.
Line 23: Line 29:
Add an output to your <code>[[logic_relay]]</code> or <code>[[logic_auto]]</code> with the target set to your <code>point_clientcommand</code>, the input as <code>Command</code>, and a parameter override of <code>startneurotoxins <seconds></code> where <code><seconds></code> is the number of seconds you want the neurotoxin timer to run for.
Add an output to your <code>[[logic_relay]]</code> or <code>[[logic_auto]]</code> with the target set to your <code>point_clientcommand</code>, the input as <code>Command</code>, and a parameter override of <code>startneurotoxins <seconds></code> where <code><seconds></code> is the number of seconds you want the neurotoxin timer to run for.


[[File:Startneurotoxins Example.png|thumb|500px|An example of the values to put into your output to start the neurotoxin timer]]
 
To stop the timer, you would invoke the <code>startneurotoxins</code> command again with a really high number such as <code>99999</code>.
{{note|Remember to turn off the neurotoxin screens at this point to prevent them from counting down again.}}




== Creating the Neurotoxin Countdown Screens ==


To stop the timer, you would invoke the <code>startneurotoxins</code> command again with a really high number such as <code>99999</code>.
{{todo|Add information on how to add these screens}}
{{note|Remember to turn off the neurotoxin screens at this point to prevent them from counting down again.}}


== See Also ==
== See also ==


* [[Portal Level Creation]]
* [[Portal Level Creation]]


* [[Creating Portal Vents| Creating Vents]]
* [[Creating Portal Vents| Creating Vents]]
[[Category: Level Design]][[Category: Portal]][[Category: Tutorials]][[Category:Level_Design_Tutorials]]
 
[[Category:Portal]]
[[Category:Level Design]]
[[Category:Tutorials]]

Latest revision as of 08:39, 8 January 2024

Portal Level Creation

Stub

This article or section is a stub. You can help by expanding it.


Introduction

This guide will teach you how to create neurotoxin gas.

Note.pngNote:For anyone who wants to complete this page, please finish Creating Vents because the neurotoxin vents in the boss fight room are the exact same shape as the normal vents seen throughout the BTS areas.

Creating the Gas

Create an info_particle_system and set it's particle to human_cleanser. Set its position outside the vent.

Note.pngNote:If your gas must activate instantenously on map spawn, then make sure you set the Start Active keyvalue to Yes.

Set the info_particle_system's name to home_neurotoxin_pipe_stream.

Example values for info_particle_system with neurotoxin particles

Timer

An example of the values to put into your output to start the neurotoxin timer

The neurotoxin timer is started by using the startneurotoxins console command.

Create a point_clientcommand and give it a name, for example client_command.

Add an output to your logic_relay or logic_auto with the target set to your point_clientcommand, the input as Command, and a parameter override of startneurotoxins <seconds> where <seconds> is the number of seconds you want the neurotoxin timer to run for.


To stop the timer, you would invoke the startneurotoxins command again with a really high number such as 99999.

Note.pngNote:Remember to turn off the neurotoxin screens at this point to prevent them from counting down again.


Creating the Neurotoxin Countdown Screens

Todo: Add information on how to add these screens

See also