Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in or
create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision |
Your text |
Line 1: |
Line 1: |
| == Overview == | | == Overview == |
| Placed and carried dispensers are instances of this class. | | Placed dispensers in TF2 are instances of this class. |
|
| |
|
| '''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]''' | | '''Source Location: /game/server/tf/tf_obj_dispenser.h''' |
|
| |
|
| '''Linked entity : [https://developer.valvesoftware.com/wiki/Obj_dispenser obj_dispenser]'''
| | ==[[SendProps|Class Structure]]== |
| | |
| ==[[Classes|Class Structure]]== | |
| *'''[[CBaseEntity]]''' | | *'''[[CBaseEntity]]''' |
| **'''[[CBaseAnimating]]''' | | **'''[[CBaseAnimating]]''' |
Line 16: |
Line 14: |
|
| |
|
| == SendProps == | | == SendProps == |
| {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | | {| class="wikitable sortable" 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 22: |
| |'''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 48: |
Line 39: |
| |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%;" |
| |
| |} | | |} |