CObjectDispenser: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Overview ==
== Overview ==
Placed and carried dispensers in TF2 are instances of this class.
Placed and carried dispensers are instances of this class.


'''Source location : /game/server/tf/tf_obj_dispenser.h'''
'''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/tf/tf_obj_dispenser.h /game/server/tf/tf_obj_dispenser.h]'''


'''Linked entity : obj_dispenser'''
'''Linked entity : [https://developer.valvesoftware.com/wiki/Obj_dispenser obj_dispenser]'''


==[[SendProps|Class Structure]]==
==[[Classes|Class Structure]]==
*'''[[CBaseEntity]]'''
*'''[[CBaseEntity]]'''
**'''[[CBaseAnimating]]'''
**'''[[CBaseAnimating]]'''
Line 16: Line 16:


== SendProps ==
== SendProps ==
{| class="wikitable sortable" style="margin: 0 auto; width: 100%; padding: 0;"
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
|+CObjectDispenser
|+CObjectDispenser
! style="width: 50%; background-color: #303030; color: white" |Name  
! style="width: 50%; background-color: #303030; color: white" |Name  
Line 24: Line 24:
|'''m_iState'''
|'''m_iState'''
|Integer
|Integer
|What this dispenser is currently doing
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="1" |Values
|-
|
|
* 0 - DISPENSER_STATE_IDLE
* 1 - DISPENSER_STATE_UPGRADING
|}
|-
|-
|'''m_iAmmoMetal'''
|'''m_iAmmoMetal'''
|Integer
|Integer
|
|The amount of ammo / metal this dispenser has in reserve to give to players
|-
|-
|'''m_iMiniBombCounter'''
|'''m_iMiniBombCounter'''
Line 41: Line 48:
|Array
|Array
|
|
|}
== Entity DataMaps ==
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+CObjectDispenser
! style="width: 50%; background-color: #303030; color: white" |Name
! style="width: 15%; background-color: #303030; color: white" |Type
! style="width: 35%; background-color: #303030; color: white" |Description
|-
| style="width: 50%;" |'''CObjectDispenserDispenseThink'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''CObjectDispenserRefillThink'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iszCustomTouchTrigger'''
| style="width: 15%;" |
| style="width: 35%;" |
|}
|}

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