Asw alien goo: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Outputs: Added proper description.)
No edit summary
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{asw point|asw_alien_goo}} This entity creates an animated object which behaves like the biomass in Alien Swarm.  
{{CD|CASW_Alien_Goo|file1=1}}
{{this is a|model entity|game=Alien Swarm|name=asw_alien_goo}} This entity creates an animated object which behaves like the biomass in Alien Swarm.  
When the player touches it, he will be hurt and it can be destroyed using fire. This entity will constantly play its worldmodels <code>idle</code> animation.
When the player touches it, he will be hurt and it can be destroyed using fire. This entity will constantly play its worldmodels <code>idle</code> animation.
  {{Note|This entity can be given any worldmodel and it will still behave like biomass, but it is recommended to use the biomass models found in <code>models\aliens\biomass\</code> folder, which are designed for this purpose and have an appropriate <code>idle</code> animation}}
  {{Note|This entity can be given any worldmodel and it will still behave like biomass, but it is recommended to use the biomass models found in <code>models\aliens\biomass\</code> folder, which are designed for this purpose and have an appropriate <code>idle</code> animation}}
Line 5: Line 6:


== Keyvalues ==
== Keyvalues ==
{{KV Targetname}}
{{KV Targetname}}
 
{{KV Model}}
{{KV Angles}}
:{{warning|It is strongly recommended to use the models from {{Code|models/aliens/biomass/}} folder to avoid confusion.}}  
 
{{KV|Pulse Strength|intn=PulseStrength|float|Controls the amplitude of the pulsating goo (ranges from 0 to 1.0).
{{KV Origin}}
:{{warning|Will only work with models mentioned above.}}
 
}}
{{KV|Worldmodel|model|The 3D model used to display this entity in the world.
{{KV|Pulse Speed|intn=PulseSpeed|float|Controls how quickly the goo pulsates (1.0 is normal, can be set higher or lower).
:{{warning|I strongly reccomend usage of the modles from <code>models\aliens\biomass\</code> folder to avoid confusion!}} }}
:{{warning|Will only work with models mentioned above.}}
 
{{KV|Skin|int|Some models have multiple versions of their textures, called skins. Set this to a number other than 0 to use that skin instead of the default.}}
 
{{KV|Disable Shadows||Used to disable dynamic shadows on this entity.}}
 
{{KV|Pulse Strenght||Controls the amplitude of the pulsating goo (ranges from 0 to 1.0).
:{{warning|Will only work with models mentioned above!}}
}}
}}
 
{{KV|Burning Link Name|intn=BurningLinkName|string|Alien goo/Grub sacs that share the same Burning Link Name will all be set on fire when one of those alien goo's is set on fire.
{{KV|Pulse Speed||Controls how quickly the goo pulsates (1.0 is normal, can be set higher or lower).
:{{warning|Will only work with models mentioned above!}}}}
 
{{KV|Burning Link Name||Alien goo/Grub sacs that share the same Burning Link Name will all be set on fire when one of those alien goo's is set on fire.
:{{tip|Useful for creating large numbers of biomass on a single spot, which should interact when being bunt.}}
:{{tip|Useful for creating large numbers of biomass on a single spot, which should interact when being bunt.}}
}}
}}
 
{{KV|Has Ambient Sound|intn=HasAmbientSound|choices|Whether the goo has a slimey ambient sound effect loop or not.
{{KV|Has Ambient Sound||Whether the goo has a slimey ambient sound effect loop or not.
:{{tip|Whe using large amounts of biomass their ambient sounds may dominate the levels ambience too much, so you might only want one or two biomass entities play a loop.}}
:{{tip|Whe using large amounts of biomass their ambient sounds may dominate the levels ambience too much, so you might only want one or two biomass entities play a loop.}}}}
}}
 
{{KV|Required By Objective|intn=RequiredByObjective|choices|Whether the goo must be destroyed for an objective. (supresses burn hint if no).
{{KV|Requiered By Objective||Whether the goo must be destroyed for an objective. (supresses burn hint if no).
:{{Note|Does not mean goo must be destroyed to complete mission - to achive that effect use [[asw_objective_destroy_goo]] entity.}}
:{{Note|Does not mean goo must be destroyed to complete mission - to achive that effect use [[asw_objective_destroy_goo]] entity.}}
}}
}}
== Inputs ==
{{I Targetname}}
{{IO|enbale/disable shadows|En/disable dynamic shadows on this object [?].|}}
{{IO|Skin|Change the skin of this objects wordl model.|}}


== Outputs ==
== Outputs ==
{{O Targetname}}
{{O|OnIgnite|Fired when the biomass is set on fire.
{{IO|OnIgnite|Fired when the biomass is set on fire.
:{{tip|Useful for calling spawners while marines have to wait for biomass to be destroyed.}}
:{{tip|Useful for calling spawners while marines have to wait for biomass to be destroyed.}}|}}
}}
 
{{O|OnGooDestroyed|Fired when the biomass is fully destroyed.
{{IO|OnGooDestroyed|Fired when the biomass is fully destroyed.
:{{tip|Useful for firing a completion input on an asw_objective_destroy_goo.}}
:{{tip|Useful for firing a completion input on an asw_objective_destroy_goo.}}|}}
}}
 
== See also ==
*[[List of Alien Swarm entities]]
 
[[Category:Alien Swarm Entities]]

Latest revision as of 07:38, 20 May 2025

C++ Class hierarchy
CASW_Alien_Goo
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity
C++ asw_alien_goo_shared.cpp

asw_alien_goo is a model entity available in Alien Swarm Alien Swarm. This entity creates an animated object which behaves like the biomass in Alien Swarm. When the player touches it, he will be hurt and it can be destroyed using fire. This entity will constantly play its worldmodels idle animation.

Note.pngNote:This entity can be given any worldmodel and it will still behave like biomass, but it is recommended to use the biomass models found in models\aliens\biomass\ folder, which are designed for this purpose and have an appropriate idle animation
Tip.pngTip:Good for interaction with asw_objective_destroy_goo!

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

World Model (model) <model path>[ Edit ]
In-game 3D representation of the entity to display. This is the path to a MDL relative to the game's root directory. (128 character limit)

Warning.pngWarning:It is strongly recommended to use the models from models/aliens/biomass/ folder to avoid confusion.
Pulse Strength (PulseStrength) <float>
Controls the amplitude of the pulsating goo (ranges from 0 to 1.0).
Warning.pngWarning:Will only work with models mentioned above.
Pulse Speed (PulseSpeed) <float>
Controls how quickly the goo pulsates (1.0 is normal, can be set higher or lower).
Warning.pngWarning:Will only work with models mentioned above.
Burning Link Name (BurningLinkName) <string>
Alien goo/Grub sacs that share the same Burning Link Name will all be set on fire when one of those alien goo's is set on fire.
Tip.pngTip:Useful for creating large numbers of biomass on a single spot, which should interact when being bunt.
Has Ambient Sound (HasAmbientSound) <choices>
Whether the goo has a slimey ambient sound effect loop or not.
Tip.pngTip:Whe using large amounts of biomass their ambient sounds may dominate the levels ambience too much, so you might only want one or two biomass entities play a loop.
Required By Objective (RequiredByObjective) <choices>
Whether the goo must be destroyed for an objective. (supresses burn hint if no).
Note.pngNote:Does not mean goo must be destroyed to complete mission - to achive that effect use asw_objective_destroy_goo entity.

Outputs

OnIgnite
Fired when the biomass is set on fire.
Tip.pngTip:Useful for calling spawners while marines have to wait for biomass to be destroyed.
OnGooDestroyed
Fired when the biomass is fully destroyed.
Tip.pngTip:Useful for firing a completion input on an asw_objective_destroy_goo.