Difference between revisions of "Slime Water"

From Valve Developer Community
Jump to: navigation, search
m (Creation)
m
 
Line 3: Line 3:
 
}}
 
}}
 
[[File:drownicon.png|thumb|right]]
 
[[File:drownicon.png|thumb|right]]
'''Slime''', '''toxic water''', or '''goo'''  is an obstacle in [[Portal 2]]. Like [[shredder|shredders]] and [[pit (Portal 2)|pits]], objects and players that drop into it are destroyed. The surface is brown and green.
+
'''Slime water''', '''toxic water''', '''deadly acid''', or '''deadly goo'''  is an obstacle in [[Portal 2]]. Like [[shredder|grinders]] and [[pit (Portal 2)|bottomless pits]], objects and players that drop into it are destroyed. The surface is brown, and foamy around the edges.
  
 
==Creation==
 
==Creation==
* Create a brush extending over the area where you want the slime.  Apply a [[toolsnodraw]] texture to all surfaces, then one of the toxicslime textures to the top.
+
* Create a brush extending over the area where you want the slime.  Apply a nodraw ([[toolsnodraw|tools/toolsnodraw]]) texture to all surfaces, then one of the nature/toxicslime textures to the top.
* Create another brush in the same location.  Texture with [[tool textures#trigger|toolstrigger]].  Choose Tie to Entity and select [[Trigger_hurt]].  Set Damage and Damage Cap to 1000 and Damage Type to RADIATION.
+
* Create another brush in the same location.  Apply the trigger texture ([[tool textures#trigger|tools/toolstrigger]]).  Choose Tie to Entity and select [[trigger_hurt]].  Set Damage and Damage Cap to 1000 and Damage Type to CHEMICAL (but '''not''' DROWN).
* You will fall through water, so the basin needs another brush at its base.
+
* The basin needs another brush at its base because you will fall through water, and also because water doesn't seal leaks.
* One way to destroy objects: place a [[trigger_multiple]] above the water, with the flag Physics Objects, and these outputs:
+
* One way to destroy objects: place a [[trigger_multiple]] in the water, with the flag Physics Objects, and these outputs:
  
:{| border=1 cellpadding="2" cellspacing="1"
+
::{| class=standard-table
|- align=left style="background:#DCDCDC; color:black"
 
 
!
 
!
 
! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
 
! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
Line 21: Line 20:
 
|}
 
|}
  
{{Note|The engine will show you that both commands are invalid, just ignore it}}
 
 
The SilentDissolve command destroys cubes and fires their OnDissolved output correctly, so they can respawn. The Kill output removes other entities that ignore SilentDissolve. It is delayed to ensure SilentDissolve executes.
 
  
 +
The SilentDissolve input destroys cubes and fires their OnDissolved output correctly, so they can respawn. The Kill output removes other entities that ignore SilentDissolve. It is delayed to ensure SilentDissolve executes first.
  
 
Although you cannot see it in-game, the slime will probably have ugly edges where the texture tiles. To fix this, you need to stretch the slime texture to the size of your pit. However, for whatever reason, pressing "Fit" on the [[Hammer Face Edit Dialog]] with the slime texture will not align it properly. To properly align/stretch the texture of the slime:
 
Although you cannot see it in-game, the slime will probably have ugly edges where the texture tiles. To fix this, you need to stretch the slime texture to the size of your pit. However, for whatever reason, pressing "Fit" on the [[Hammer Face Edit Dialog]] with the slime texture will not align it properly. To properly align/stretch the texture of the slime:
* Find a texture that is 256x256.
+
# Find a texture that is 256×256.
* Open the face edit dialog on the slime.
+
# Open the face edit dialog on the slime.
* Apply the 256x256 texture to the face.
+
# Apply the 256×256 texture to the face.
* Press "Fit."
+
# Press "Fit."
* Switch texture back to slime.
+
# Switch texture back to slime.
 
 
  
To finish it off, put a particle effect over the slime. You can use water_mist_256, water_mist_512, or water_mist_1024_512. ([[List of Portal 2 Particles]])
 
  
If, when you run the level in Portal 2, the Slime Water appears glitchy, try running the map with "vis" set to 'Normal' or 'Fast'.
+
To finish it off, you can put a particle effect over the slime. You can use water_mist_256, water_mist_512, or water_mist_1024_512. (See [[List of Portal 2 Particles]].)
  
 +
If, when you run the level in Portal 2, the Deadly Goo appears glitchy, try compiling the map with "vvis" set to 'Normal' or 'Fast'.
  
See [[sp_a2_bridge_the_gap]].
+
See ''sp_a2_trust_fling.vmf'' (included with the [[Portal 2 Authoring Tools]]) for an example map using Deadly Goo.
  
 
[[Category:Portal 2 Level Design]]
 
[[Category:Portal 2 Level Design]]
 
[[Category:Portal 2 Tutorials]]
 
[[Category:Portal 2 Tutorials]]

Latest revision as of 00:30, 7 April 2016

Русский
Drownicon.png

Slime water, toxic water, deadly acid, or deadly goo is an obstacle in Portal 2. Like grinders and bottomless pits, objects and players that drop into it are destroyed. The surface is brown, and foamy around the edges.

Creation

  • Create a brush extending over the area where you want the slime. Apply a nodraw (tools/toolsnodraw) texture to all surfaces, then one of the nature/toxicslime textures to the top.
  • Create another brush in the same location. Apply the trigger texture (tools/toolstrigger). Choose Tie to Entity and select trigger_hurt. Set Damage and Damage Cap to 1000 and Damage Type to CHEMICAL (but not DROWN).
  • The basin needs another brush at its base because you will fall through water, and also because water doesn't seal leaks.
  • One way to destroy objects: place a trigger_multiple in the water, with the flag Physics Objects, and these outputs:
My Output > Target Entity Target Input Parameter Delay Only Once
Io11.png OnStartTouch  !activator SilentDissolve   0.00 No
Io11.png OnStartTouch  !activator Kill   0.10 No


The SilentDissolve input destroys cubes and fires their OnDissolved output correctly, so they can respawn. The Kill output removes other entities that ignore SilentDissolve. It is delayed to ensure SilentDissolve executes first.

Although you cannot see it in-game, the slime will probably have ugly edges where the texture tiles. To fix this, you need to stretch the slime texture to the size of your pit. However, for whatever reason, pressing "Fit" on the Hammer Face Edit Dialog with the slime texture will not align it properly. To properly align/stretch the texture of the slime:

  1. Find a texture that is 256×256.
  2. Open the face edit dialog on the slime.
  3. Apply the 256×256 texture to the face.
  4. Press "Fit."
  5. Switch texture back to slime.


To finish it off, you can put a particle effect over the slime. You can use water_mist_256, water_mist_512, or water_mist_1024_512. (See List of Portal 2 Particles.)

If, when you run the level in Portal 2, the Deadly Goo appears glitchy, try compiling the map with "vvis" set to 'Normal' or 'Fast'.

See sp_a2_trust_fling.vmf (included with the Portal 2 Authoring Tools) for an example map using Deadly Goo.