CObjectDispenser: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 24: Line 24:
|'''m_iState'''
|'''m_iState'''
|Integer
|Integer
|What is this dispenser doing right now?
|What this dispenser is currently doing
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="1" |Values
! colspan="1" |Values
Line 35: Line 35:
|'''m_iAmmoMetal'''
|'''m_iAmmoMetal'''
|Integer
|Integer
|
|The amount of ammo / metal this dispenser has in reserve to give to players
|-
|-
|'''m_iMiniBombCounter'''
|'''m_iMiniBombCounter'''

Latest revision as of 14:05, 13 November 2022

Overview[edit | edit source]

Placed and carried dispensers are instances of this class.

Source location : /game/server/tf/tf_obj_dispenser.h

Linked entity : obj_dispenser

Class Structure[edit | edit source]

SendProps[edit | edit source]

CObjectDispenser
Name Type Description
m_iState Integer What this dispenser is currently doing
Values
  • 0 - DISPENSER_STATE_IDLE
  • 1 - DISPENSER_STATE_UPGRADING
m_iAmmoMetal Integer The amount of ammo / metal this dispenser has in reserve to give to players
m_iMiniBombCounter Integer
healing_array_element Integer
"healing_array" Array

Entity DataMaps[edit | edit source]

CObjectDispenser
Name Type Description
CObjectDispenserDispenseThink
CObjectDispenserRefillThink
m_iszCustomTouchTrigger