Game coopmission manager: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created draft page)
 
No edit summary
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:game_coopmission_manager}}
{{LanguageBar}}
{{csgo point|game_coopmission_manager}}
{{back|Creating a Co-op Strike Map}}
{{Preserved entity|all}}
{{CD|CGameCoopMissionManager|file1=maprules.h}}
{{this is a|point entity|game=Counter-Strike: Global Offensive|name=game_coopmission_manager}}
An entity that keeps track of the coop wave/phase and fires [[output]]s when players complete them.


==Entity description==
See [[List of Counter-Strike: Global Offensive Script Functions#Co-op_Strike|List of CS:GO Script Functions]] for Co-op related [[VScript]] functions.
It fires [[output]]s based on events that occur specifically in the Coop-Strike game mode.
{{Tip|To relay this entity's outputs in VScript, you can either create outputs with <code>RunScriptCode</code> for this entity or use <code>ConnectOutput("...","...")</code> in this entity's script scope.}}


== Keyvalues ==
== Keyvalues ==
{{KV Targetname}}
{{KV Targetname}}
== Inputs ==
{{I Targetname}}


== Outputs ==
== Outputs ==
{{IO|OnMissionCompleted|Fired when the mission succeeds.}}
{{O|OnMissionCompleted|Called when the mission is completed.}}
{{IO|OnRoundLostKilled|Fired when the mission is lost due to both players dying.}}
{{O|OnRoundLostKilled|Called when the round is lost and the players are killed.}}
{{IO|OnRoundLostTime|Fired when the mission is lost due to running out of time.}}
{{O|OnRoundLostTime|Called when the round is lost because time ran out.}}
{{IO|OnRoundReset|Fired when the round resets.}}
{{O|OnRoundReset|Called when the round resets.}}
{{IO|OnSpawnsReset|Fired right before the round resets, so the spawns can be set up properly.}}
{{O|OnSpawnsReset|Called right before the level restarts, so the spawns can be set up.}}
{{IO|OnWaveCompleted|Fired when the current wave is complete.}}
{{O|OnWaveCompleted|Called when the players kill all enemies in this wave/section.}}
{{IO|FireUser1|to=FireUser4|These Outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see [[User Inputs and Outputs]].}}
 
== See Also==
 
* [[List of Counter-Strike: Global Offensive Script Functions#Co-op_Strike_related|List of Counter-Strike: Global Offensive Script Functions]]

Latest revision as of 08:59, 4 May 2025

English (en)Translate (Translate)
Creating a Co-op Strike Map
Recycle-warning.png
This is a preserved entity.
If the game has round restart mechanics this entity may not behave as expected.
C++ Class hierarchy
CGameCoopMissionManager
CRulePointEntity
CRuleEntity
CBaseEntity
C++ maprules.h

game_coopmission_manager is a point entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive. An entity that keeps track of the coop wave/phase and fires outputs when players complete them.

See List of CS:GO Script Functions for Co-op related VScript functions.

Tip.pngTip:To relay this entity's outputs in VScript, you can either create outputs with RunScriptCode for this entity or use ConnectOutput("...","...") in this entity's script scope.

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

Outputs

OnMissionCompleted
Called when the mission is completed.
OnRoundLostKilled
Called when the round is lost and the players are killed.
OnRoundLostTime
Called when the round is lost because time ran out.
OnRoundReset
Called when the round resets.
OnSpawnsReset
Called right before the level restarts, so the spawns can be set up.
OnWaveCompleted
Called when the players kill all enemies in this wave/section.