Func block dm spawns

From Valve Developer Community
Revision as of 15:30, 13 October 2021 by Popcorn (talk | contribs) (Created page with "{{lang|func_block_dm_spawns}} {{ent not in fgd}} {{back|CS:GO Gamemodes: Deathmatch}} {{csgo brush|func_block_dm_spawns}} ==Entity Description== This entity is used to block r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)Translate (Translate)
Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.
CS:GO Gamemodes: Deathmatch

Template:Csgo brush

Entity Description

This entity is used to block randomly generated player spawns in CS:GO/CS2 Deathmatch Deathmatch. Any potential origin for an info_deathmatch_spawn is discarded if it is inside the AABB (!) of this entity. If random deathmatch spawns are disabled with info_map_parameters, then this entity has no effect.

Note.pngNote:This entity does not remove any info_deathmatch_spawn entities that are already inside the AABB of this entity!
Note.pngNote:The inputs Enable/Disable/Toggle affect this entity's solidity and visibility, like func_brush. It starts invisible and non-solid.

KeyValues

Inputs

SetExcluded <targetnameRedirectInput/string>
Change the NPC class excluded from collisions
SetInvert <booleanRedirectInput/boolean>
Set the state of invversion for NPC class exclusion (0 or 1)

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

FGD Code

The SetExcluded and SetInvert inputs have been omitted because they have no effect in Counter-Strike: Global Offensive.

@SolidClass base(Targetname, Parentname ) = func_block_dm_spawns:
	"This entity is used to block randomly generated player spawns in Deathmatch.\n" +
	"Any potential origin for an info_deathmatch_spawn is discarded if it is inside the AABB (!) of this entity.\n" +
	"If random deathmatch spawns are disabled with info_map_parameters, then this entity has no effect."
[
]