CTFSniperRifle: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Overview ==
== Overview ==
...
The Sniper's sniper rifles which are under the weapon class tf_weapon_sniperrifle are instances of this class.


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


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


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


== 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;"
|+CTFSniperRifle  
|+CTFSniperRifle  
! style="width: 50%; background-color: #303030; color: white" |Name  
! style="width: 50%; background-color: #303030; color: white" |Name  
Line 28: Line 28:
| style="width: 50%;" |'''m_flChargedDamage'''
| style="width: 50%;" |'''m_flChargedDamage'''
| style="width: 15%;" |Float
| style="width: 15%;" |Float
| style="width: 35%;" |
|}
|}
== Entity DataMaps ==
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+CTFSniperRifle
! 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%;" |'''m_bRezoomAfterShot'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flChargedDamage'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flRezoomTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flUnzoomTime'''
| style="width: 15%;" |
| style="width: 35%;" |
| style="width: 35%;" |
|}
|}

Latest revision as of 16:36, 26 February 2022

Overview[edit | edit source]

The Sniper's sniper rifles which are under the weapon class tf_weapon_sniperrifle are instances of this class.

Source location : /game/shared/tf/tf_weapon_sniperrifle.h

Linked entity : tf_weapon_sniperrifle

Class Structure[edit | edit source]

SendProps[edit | edit source]

CTFSniperRifle
Name Type Description
SniperRifleLocalData
m_flChargedDamage Float

Entity DataMaps[edit | edit source]

CTFSniperRifle
Name Type Description
m_bRezoomAfterShot
m_flChargedDamage
m_flRezoomTime
m_flUnzoomTime