CBaseCombatWeapon: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Overview ==
== Overview ==
...
The base class for usable weapons.


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


'''Linked entity : ...'''
'''VScript : [https://developer.valvesoftware.com/wiki/Team_Fortress_2/Scripting/Script_Functions#CBaseCombatWeapon Script_Functions#CBaseCombatWeapon]'''


==[[Classes|Class Structure]]==
==[[Classes|Class Structure]]==
*'''[[CBaseEntity]]'''
*'''[[CBaseEntity]]'''
**'''[[CBaseAnimating]]'''
**'''[[CBaseAnimating]]'''
***'''[[CBaseAnimatingOverlay]]'''
***'''[[CEconEntity]]'''
****'''[[CBaseFlex]]'''
****'''CBaseCombatWeapon'''
*****'''[[CBaseCombatCharacter]]'''
******'''[[CBasePlayer]]'''
*******'''CTFPlayer'''


== 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;"
|+CBaseCombatWeapon  
|+CBaseCombatWeapon  
! style="width: 50%; background-color: #303030; color: white" |Name  
! style="width: 50%; background-color: #303030; color: white" |Name  

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]

SendProps[edit | edit source]

CBaseCombatWeapon
Name Type Description
LocalWeaponData
m_iClip1 Integer
m_iClip2 Integer
m_iPrimaryAmmoType Integer
m_iSecondaryAmmoType Integer
m_nViewModelIndex Boolean
m_bFlipViewModel Integer
m_flAnimTime Integer
LocalActiveWeaponData
m_flNextPrimaryAttack Float
m_flNextSecondaryAttack Float
m_nNextThinkTick Integer
m_flTimeWeaponIdle Float
m_flAnimTime Integer
m_iViewModelIndex Integer
m_iWorldModelIndex Integer
m_iState Integer
m_hOwner Integer

Entity DataMaps[edit | edit source]

CBaseCombatWeapon
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