Asw director control: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(added class hierarchy, cleanup)
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{stub}}
{{cleanup|inputs}}
{{as point|asw_director_control}}
{{CD|CASW_Director_Control|file1=1}}
 
{{this is a|logical entity|game=Alien Swarm|game1=Alien Swarm: Reactive Drop|name=asw_director_control}} Controls the spawning of some NPCs. A similar system exists in Left 4 Dead.
Controls how the Alien Swarm director works.
 
{{todo}}Provide a real explanation, please.
 
 
{{todo}}'':Needs more research into this entity.''


== Keyvalues ==
== Keyvalues ==
{{KV Parentname}}
{{KV Targetname}}
{{KV Targetname}}
{{KV Angles}}
{{KV|Wandering Aliens|intn=wanderers|boolean|Whether to spawn random drones around the players.}}
{{KV|Hordes|intn=hordes|boolean|Whether to spawn large groups of drones periodically.}}
{{KV|Control Spawners|intn=controlspawners|boolean|If enabled, asw_spawners will only work when the director is in an active spawning state.}}


== Inputs ==
== Inputs ==
{{I Parentname}}
{{I|EnableHordes|param=void|Enable random horde spawning.}}
{{I Targetname}}
{{I|DisableHordes|param=void|Disable random horde spawning.}}
{{I|EnableWanderers|param=void|Enable random wandering aliens.}}
{{I|DisableWanderers|param=void|Disable random wandering aliens.}}
{{I|StartFinale|param=void|Enables wanderers, hordes and sends director into crazy spawning mode.}}
<pre>
//asrd only probably
DEFINE_INPUTFUNC( FIELD_VOID, "StartHoldout", InputStartHoldout ),
DEFINE_INPUTFUNC( FIELD_VOID, "StopHoldout", InputStopHoldout ),
DEFINE_INPUTFUNC( FIELD_VOID, "ResetMarineIntensity", InputResetMarineIntensity ),
DEFINE_INPUTFUNC( FIELD_VOID, "SpawnHordeSoon", InputSpawnHordeSoon ),
</pre>


== Outputs ==
== Outputs ==
{{O Targetname}}
{{O|OnEscapeRoomStart|param=void|activator=the marine|Fired when marine enters the escape room with all objectives (except for escape) complete.  {{note|If you rely on this output, you must ship the .layout file along with your map.}}}}

Latest revision as of 08:39, 20 May 2025

Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality because:
inputs
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.
C++ Class hierarchy
CASW_Director_Control
CLogicalEntity
CServerOnlyEntity
CBaseEntity
C++ asw_director_control.cpp

asw_director_control is a logical entity available in Alien Swarm Alien Swarm and Alien Swarm: Reactive Drop Alien Swarm: Reactive Drop. Controls the spawning of some NPCs. A similar system exists in Left 4 Dead.

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

Wandering Aliens (wanderers) <boolean>
Whether to spawn random drones around the players.
Hordes (hordes) <boolean>
Whether to spawn large groups of drones periodically.
Control Spawners (controlspawners) <boolean>
If enabled, asw_spawners will only work when the director is in an active spawning state.

Inputs

EnableHordes <void>
Enable random horde spawning.
DisableHordes <void>
Disable random horde spawning.
EnableWanderers <void>
Enable random wandering aliens.
DisableWanderers <void>
Disable random wandering aliens.
StartFinale <void>
Enables wanderers, hordes and sends director into crazy spawning mode.
//asrd only probably
	DEFINE_INPUTFUNC( FIELD_VOID,	"StartHoldout",	InputStartHoldout ),
	DEFINE_INPUTFUNC( FIELD_VOID,	"StopHoldout",	InputStopHoldout ),
	DEFINE_INPUTFUNC( FIELD_VOID,	"ResetMarineIntensity",	InputResetMarineIntensity ),
	DEFINE_INPUTFUNC( FIELD_VOID,	"SpawnHordeSoon",	InputSpawnHordeSoon ),

Outputs

OnEscapeRoomStart <void>
!activator = the marine
!caller = this entity
Fired when marine enters the escape room with all objectives (except for escape) complete.
Note.pngNote:If you rely on this output, you must ship the .layout file along with your map.