CBaseCombatWeapon: Difference between revisions
Jump to navigation
Jump to search
(Created blank page) |
No edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Overview == | |||
The base class for usable weapons. | |||
'''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/shared/basecombatweapon_shared.h /game/shared/basecombatweapon_shared.h]''' | |||
'''VScript : [https://developer.valvesoftware.com/wiki/Team_Fortress_2/Scripting/Script_Functions#CBaseCombatWeapon Script_Functions#CBaseCombatWeapon]''' | |||
==[[Classes|Class Structure]]== | |||
*'''[[CBaseEntity]]''' | |||
**'''[[CBaseAnimating]]''' | |||
***'''[[CEconEntity]]''' | |||
****'''CBaseCombatWeapon''' | |||
== SendProps == | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
|+CBaseCombatWeapon | |||
! 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 | |||
|- | |||
| colspan="3" style="padding: 0; margin: 0;" | | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="3" |LocalWeaponData | |||
|- | |||
| style="width: 50%;" |'''m_iClip1''' | |||
| style="width: 15%;" |Integer | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iClip2''' | |||
| style="width: 15%;" |Integer | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iPrimaryAmmoType''' | |||
| style="width: 15%;" |Integer | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iSecondaryAmmoType''' | |||
| style="width: 15%;" |Integer | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_nViewModelIndex''' | |||
| style="width: 15%;" |Boolean | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_bFlipViewModel''' | |||
| style="width: 15%;" |Integer | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_flAnimTime''' | |||
| style="width: 15%;" |Integer | |||
| style="width: 35%;" | | |||
|} | |||
|- | |||
| colspan="3" style="padding: 0; margin: 0;" | | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="3" |LocalActiveWeaponData | |||
|- | |||
| style="width: 50%;" |'''m_flNextPrimaryAttack''' | |||
| style="width: 15%;" |Float | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_flNextSecondaryAttack''' | |||
| style="width: 15%;" |Float | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_nNextThinkTick''' | |||
| style="width: 15%;" |Integer | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_flTimeWeaponIdle''' | |||
| style="width: 15%;" |Float | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_flAnimTime''' | |||
| style="width: 15%;" |Integer | |||
| style="width: 35%;" | | |||
|} | |||
|- | |||
| style="width: 50%;" |'''m_iViewModelIndex''' | |||
| style="width: 15%;" |Integer | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iWorldModelIndex''' | |||
| style="width: 15%;" |Integer | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iState''' | |||
| style="width: 15%;" |Integer | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_hOwner''' | |||
| style="width: 15%;" |Integer | |||
| style="width: 35%;" | | |||
|} | |||
== Entity DataMaps == | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0; | |||
|+CBaseCombatWeapon | |||
! 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%;" |'''CBaseCombatWeaponAttemptToMaterialize''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''CBaseCombatWeaponDefaultTouch''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''CBaseCombatWeaponDestroyItem''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''CBaseCombatWeaponFallThink''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''CBaseCombatWeaponHideThink''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''CBaseCombatWeaponMaterialize''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''CBaseCombatWeaponSetPickupTouch''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputHideWeapon''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_IdealActivity''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_OnCacheInteraction''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_OnNPCPickup''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_OnPlayerPickup''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_OnPlayerUse''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_bAltFireHudHintDisplayed''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_bAltFiresUnderwater''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_bFireOnEmpty''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_bFiresUnderwater''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_bInReload''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_bReloadHudHintDisplayed''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_bReloadsSingly''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_bRemoveable''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_fFireDuration''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_fMaxRange1''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_fMaxRange2''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_fMinRange1''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_fMinRange2''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_flHudHintMinDisplayTime''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_flHudHintPollTime''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_flNextPrimaryAttack''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_flNextSecondaryAttack''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_flTimeWeaponIdle''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_flUnlockTime''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_hLocker''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_hOwner''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iAltFireHudHintCount''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iClip1''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iClip2''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iPrimaryAmmoCount''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iPrimaryAmmoType''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iReloadHudHintCount''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iSecondaryAmmoCount''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iSecondaryAmmoType''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iState''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iSubType''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iszName''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_nIdealSequence''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_nViewModelIndex''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_pConstraint''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|} |
Latest revision as of 13:00, 17 September 2023
Overview[edit | edit source]
The base class for usable weapons.
Source location : /game/shared/basecombatweapon_shared.h
VScript : Script_Functions#CBaseCombatWeapon
Class Structure[edit | edit source]
- CBaseEntity
- CBaseAnimating
- CEconEntity
- CBaseCombatWeapon
- CEconEntity
- CBaseAnimating
SendProps[edit | edit source]
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
m_iViewModelIndex | Integer | |||||||||||||||||||||||||
m_iWorldModelIndex | Integer | |||||||||||||||||||||||||
m_iState | Integer | |||||||||||||||||||||||||
m_hOwner | Integer |
Entity DataMaps[edit | edit source]
Name | Type | Description |
---|---|---|
CBaseCombatWeaponAttemptToMaterialize | ||
CBaseCombatWeaponDefaultTouch | ||
CBaseCombatWeaponDestroyItem | ||
CBaseCombatWeaponFallThink | ||
CBaseCombatWeaponHideThink | ||
CBaseCombatWeaponMaterialize | ||
CBaseCombatWeaponSetPickupTouch | ||
InputHideWeapon | ||
m_IdealActivity | ||
m_OnCacheInteraction | ||
m_OnNPCPickup | ||
m_OnPlayerPickup | ||
m_OnPlayerUse | ||
m_bAltFireHudHintDisplayed | ||
m_bAltFiresUnderwater | ||
m_bFireOnEmpty | ||
m_bFiresUnderwater | ||
m_bInReload | ||
m_bReloadHudHintDisplayed | ||
m_bReloadsSingly | ||
m_bRemoveable | ||
m_fFireDuration | ||
m_fMaxRange1 | ||
m_fMaxRange2 | ||
m_fMinRange1 | ||
m_fMinRange2 | ||
m_flHudHintMinDisplayTime | ||
m_flHudHintPollTime | ||
m_flNextPrimaryAttack | ||
m_flNextSecondaryAttack | ||
m_flTimeWeaponIdle | ||
m_flUnlockTime | ||
m_hLocker | ||
m_hOwner | ||
m_iAltFireHudHintCount | ||
m_iClip1 | ||
m_iClip2 | ||
m_iPrimaryAmmoCount | ||
m_iPrimaryAmmoType | ||
m_iReloadHudHintCount | ||
m_iSecondaryAmmoCount | ||
m_iSecondaryAmmoType | ||
m_iState | ||
m_iSubType | ||
m_iszName | ||
m_nIdealSequence | ||
m_nViewModelIndex | ||
m_pConstraint |