Item defuser: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Used BaseEntity and BaseAnimating templates. Added code class. Added Related Console Variables)
Line 1: Line 1:
{{base point multi|Item_defuser|game1=Counter-Strike: Source|game2=Counter-Strike: Global Offensive}}
{{base point multi|Item_defuser|game1=Counter-Strike: Source|game2=Counter-Strike: Global Offensive}}
{{Note| {{csgo}} The [[item_cutters|cutters]] seen in [[Hostage Rescue]] maps use the same code class.}}
{{code class|CItemDefuser|item_defuser.cpp}}


==Entity description==
==Entity description==
This [[entity]] represents the defuse kit in bomb/defuse maps in [[Counter-Strike: Source]] and [[Counter-Strike: Global Offensive]].
This [[entity]] represents the defuse kit in [[Bomb Defusal]] maps. When this entity is picked up successfully by a player, it is removed.


{{Note| {{csgo}} This represents the [[Item cutters|cutters]] in hostage maps.}}
== Related Console Variables ==
These [[ConVar]]s exist only in {{csgo}}.
{| class=standard-table
! ConVar
! Default
! Description
|-
| <code>mp_death_drop_defuser</code>
| 1
| Whether or not players drop their defuser on death.
|-
| <code>mp_defuser_allocation</code>
| 0
| How to allocate defusers to CTs at the start of a round:
*0: none
*1: random
*2: all CTs
|}


==Keyvalues==
==Keyvalues==
* {{KV Targetname}}
{{ScrollBox|
{{KV BaseEntity|noscroll=1}}
{{KV BaseAnimating|noscroll=1}}
}}
==Flags==
{{fl|1|Start constrained|Prevents the model from moving.}}
==Inputs==
==Inputs==
* {{I Targetname}}
{{ScrollBox|
{{I BaseEntity|noscroll=1}}
{{I BaseAnimating|noscroll=1}}
}}
==Outputs==
==Outputs==
* {{O Targetname}}
{{IO|OnPlayerTouch|nofgd=1|Does not fire at all?}}
{{IO|OnCacheInteraction|nofgd=1|Does not fire at all?}}
{{O BaseEntity}}
{{O BaseAnimating}}
[[Category:Counter-Strike: Source Entities]]
[[Category:Counter-Strike: Source Entities]]

Revision as of 00:11, 23 April 2022

Template:Base point multi

Note.pngNote: Counter-Strike: Global Offensive The cutters seen in Hostage Rescue maps use the same code class.
C++ In code, it is represented by theCItemDefuserclass, defined in theitem_defuser.cppfile.

Entity description

This entity represents the defuse kit in Bomb Defusal maps. When this entity is picked up successfully by a player, it is removed.

Related Console Variables

These ConVars exist only in Counter-Strike: Global Offensive.

ConVar Default Description
mp_death_drop_defuser 1 Whether or not players drop their defuser on death.
mp_defuser_allocation 0 How to allocate defusers to CTs at the start of a round:
  • 0: none
  • 1: random
  • 2: all CTs

Keyvalues

Note.pngNote:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history

Flags

Start constrained : [1]
Prevents the model from moving.

Inputs

Note.pngNote:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history

Outputs

OnPlayerTouch  !FGD
Does not fire at all?
OnCacheInteraction  !FGD
Does not fire at all?
Note.pngNote:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history