CTFWeaponBase: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
The base class for TF2 weapons. | |||
'''Source location : ...''' | '''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/shared/tf/tf_weaponbase.h /game/shared/tf/tf_weaponbase.h]''' | ||
'''Linked entity : .. | '''Linked entity : [https://developer.valvesoftware.com/wiki/Tf_weapon_base tf_weapon_base]''' | ||
==[[Classes|Class Structure]]== | |||
==[[ | |||
*'''[[CBaseEntity]]''' | *'''[[CBaseEntity]]''' | ||
**'''[[CBaseAnimating]]''' | **'''[[CBaseAnimating]]''' | ||
***'''[[ | ***'''[[CEconEntity]]''' | ||
****'''[[ | ****'''[[CBaseCombatWeapon]]''' | ||
*****''' | *****'''CTFWeaponBase''' | ||
== 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;" | ||
|+CTFWeaponBase | |+CTFWeaponBase | ||
! style="width: 50%; background-color: #303030; color: white" |Name | ! style="width: 50%; background-color: #303030; color: white" |Name | ||
! style="width: 15%; background-color: #303030; color: white" |Type | ! style="width: 15%; background-color: #303030; color: white" |Type | ||
! style="width: 35%; background-color: #303030; color: white" |Description | ! style="width: 35%; background-color: #303030; color: white" |Description | ||
Line 106: | Line 103: | ||
| style="width: 50%;" |'''m_iConsecutiveShots''' | | style="width: 50%;" |'''m_iConsecutiveShots''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | |||
|} | |||
== Entity DataMaps== | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
|+CTFWeaponBase | |||
! 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%;" |'''CTFWeaponBaseFallThink''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_nCustomViewmodelModelIndex''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | | style="width: 35%;" | | ||
|} | |} |
Latest revision as of 08:52, 8 March 2023
Overview[edit | edit source]
The base class for TF2 weapons.
Source location : /game/shared/tf/tf_weaponbase.h
Linked entity : tf_weapon_base
Class Structure[edit | edit source]
- CBaseEntity
- CBaseAnimating
- CEconEntity
- CBaseCombatWeapon
- CTFWeaponBase
- CBaseCombatWeapon
- CEconEntity
- CBaseAnimating
SendProps[edit | edit source]
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
m_bLowered | Boolean | |||||||||||||||||||
m_bResetParity | Boolean | |||||||||||||||||||
m_iReloadMode | Integer | |||||||||||||||||||
m_bReloadedThroughAnimEvent | Boolean | |||||||||||||||||||
m_bDisguiseWeapon | Boolean | |||||||||||||||||||
| ||||||||||||||||||||
| ||||||||||||||||||||
m_flEnergy | Float | |||||||||||||||||||
m_hExtraWearable | Integer | |||||||||||||||||||
m_hExtraWearableViewModel | Integer | |||||||||||||||||||
m_bBeingRepurposedForTaunt | Boolean | |||||||||||||||||||
m_nKillComboClass | Integer | |||||||||||||||||||
m_nKillComboCount | Integer | |||||||||||||||||||
m_flInspectAnimEndTime | Float | |||||||||||||||||||
m_nInspectStage | Integer | |||||||||||||||||||
m_iConsecutiveShots | Integer |
Entity DataMaps[edit | edit source]
Name | Type | Description |
---|---|---|
CTFWeaponBaseFallThink | ||
m_nCustomViewmodelModelIndex |