CBaseGrenade: Difference between revisions

From SigMod
Jump to navigation Jump to search
(Created blank page)
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Overview ==
The base class for grenades.


'''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/shared/basegrenade_shared.h /game/shared/basegrenade_shared.h]'''
'''Linked entity : [https://developer.valvesoftware.com/wiki/grenade grenade]'''
==[[Classes|Class Structure]]==
*'''[[CBaseEntity]]'''
**'''[[CBaseAnimating]]'''
***'''[[CBaseProjectile]]'''
****'''CBaseGrenade'''
== SendProps ==
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
|+CBaseGrenade
! 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_flDamage'''
| style="width: 15%;" |Float
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_DmgRadius'''
| style="width: 15%;" |Float
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bIsLive'''
| style="width: 15%;" |Boolean
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hThrower'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecVelocity'''
| style="width: 15%;" |Vector
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fFlags'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|}
== Entity DataMaps ==
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+CBaseGrenade
! 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%;" |'''CBaseGrenadeBounceTouch'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''CBaseGrenadeDangerSoundThink'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''CBaseGrenadeDetonate'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''CBaseGrenadeDetonateUse'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''CBaseGrenadeExplodeTouch'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''CBaseGrenadePreDetonate'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''CBaseGrenadeSlideTouch'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''CBaseGrenadeSmoke'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''CBaseGrenadeTumbleThink'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_DmgRadius'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bHasWarnedAI'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bIsLive'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flDamage'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flDetonateTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flWarnAITime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hThrower'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iszBounceSound'''
| style="width: 15%;" |
| style="width: 35%;" |
|}

Latest revision as of 00:29, 17 September 2023

Overview[edit | edit source]

The base class for grenades.

Source location : /game/shared/basegrenade_shared.h

Linked entity : grenade

Class Structure[edit | edit source]

SendProps[edit | edit source]

CBaseGrenade
Name Type Description
m_flDamage Float
m_DmgRadius Float
m_bIsLive Boolean
m_hThrower Integer
m_vecVelocity Vector
m_fFlags Integer

Entity DataMaps[edit | edit source]

CBaseGrenade
Name Type Description
CBaseGrenadeBounceTouch
CBaseGrenadeDangerSoundThink
CBaseGrenadeDetonate
CBaseGrenadeDetonateUse
CBaseGrenadeExplodeTouch
CBaseGrenadePreDetonate
CBaseGrenadeSlideTouch
CBaseGrenadeSmoke
CBaseGrenadeTumbleThink
m_DmgRadius
m_bHasWarnedAI
m_bIsLive
m_flDamage
m_flDetonateTime
m_flWarnAITime
m_hThrower
m_iszBounceSound