CBeam: 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 entities which represent beam effects. (Particularly [[CEnvBeam]] and [[CEnvLaser]])


'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/shared/beam_shared.h /game/shared/beam_shared.h]'''
'''Linked Entity : [https://developer.valvesoftware.com/wiki/beam beam]'''
==[[Classes|Class Structure]]==
*'''[[CBaseEntity]]'''
**'''CBeam'''
== SendProps ==
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
|+CBeam
! 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_nBeamType'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nBeamFlags'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nNumBeamEnts'''
| 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" |m_hAttachEntity
|-
| style="width: 50%;" |'''000'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''001'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''002'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''003'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''004'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''005'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''006'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''007'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''008'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''009'''
| 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" |m_nAttachIndex
|-
| style="width: 50%;" |'''000'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''001'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''002'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''003'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''004'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''005'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''006'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''007'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''008'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''009'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|}
|-
| style="width: 50%;" |'''m_nHaloIndex'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fHaloScale'''
| style="width: 15%;" |Float
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fWidth'''
| style="width: 15%;" |Float
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fEndWidth'''
| style="width: 15%;" |Float
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fFadeLength'''
| style="width: 15%;" |Float
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fAmplitude'''
| style="width: 15%;" |Float
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fStartFrame'''
| style="width: 15%;" |Float
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fSpeed'''
| style="width: 15%;" |Float
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nRenderFX'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nRenderMode'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flFrameRate'''
| style="width: 15%;" |Float
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flHDRColorScale'''
| style="width: 15%;" |Float
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flFrame'''
| style="width: 15%;" |Float
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_clrRender'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecEndPos'''
| style="width: 15%;" |Vector
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nModelIndex'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecOrigin'''
| style="width: 15%;" |Vector
| style="width: 35%;" |
|-
| style="width: 50%;" |'''moveparent'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nMinDXLevel'''
| 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" |beampredictable_id
|-
| style="width: 50%;" |'''m_PredictableID'''
| style="width: 15%;" |Integer
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bIsPlayerSimulated'''
| style="width: 15%;" |Boolean
| style="width: 35%;" |
|}
|}
== Entity DataMaps ==
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+CBeam
! 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%;" |'''InputColorBlueValue'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputColorGreenValue'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputColorRedValue'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputNoise'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputWidth'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fAmplitude'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fEndWidth'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fFadeLength'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fHaloScale'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fSpeed'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fStartFrame'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_fWidth'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flDamage'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flFireTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flFrame'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flFrameRate'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flHDRColorScale'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hAttachEntity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hEndEntity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nAttachIndex'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nBeamFlags'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nBeamType'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nDissolveType'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nHaloIndex'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nMinDXLevel'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nNumBeamEnts'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecEndPos'''
| style="width: 15%;" |
| style="width: 35%;" |
|}

Latest revision as of 22:20, 29 July 2022

Overview[edit | edit source]

The base class for entities which represent beam effects. (Particularly CEnvBeam and CEnvLaser)

Source location : /game/shared/beam_shared.h

Linked Entity : beam

Class Structure[edit | edit source]

SendProps[edit | edit source]

CBeam
Name Type Description
m_nBeamType Integer
m_nBeamFlags Integer
m_nNumBeamEnts Integer
m_hAttachEntity
000 Integer
001 Integer
002 Integer
003 Integer
004 Integer
005 Integer
006 Integer
007 Integer
008 Integer
009 Integer
m_nAttachIndex
000 Integer
001 Integer
002 Integer
003 Integer
004 Integer
005 Integer
006 Integer
007 Integer
008 Integer
009 Integer
m_nHaloIndex Integer
m_fHaloScale Float
m_fWidth Float
m_fEndWidth Float
m_fFadeLength Float
m_fAmplitude Float
m_fStartFrame Float
m_fSpeed Float
m_nRenderFX Integer
m_nRenderMode Integer
m_flFrameRate Float
m_flHDRColorScale Float
m_flFrame Float
m_clrRender Integer
m_vecEndPos Vector
m_nModelIndex Integer
m_vecOrigin Vector
moveparent Integer
m_nMinDXLevel Integer
beampredictable_id
m_PredictableID Integer
m_bIsPlayerSimulated Boolean

Entity DataMaps[edit | edit source]

CBeam
Name Type Description
InputColorBlueValue
InputColorGreenValue
InputColorRedValue
InputNoise
InputWidth
m_fAmplitude
m_fEndWidth
m_fFadeLength
m_fHaloScale
m_fSpeed
m_fStartFrame
m_fWidth
m_flDamage
m_flFireTime
m_flFrame
m_flFrameRate
m_flHDRColorScale
m_hAttachEntity
m_hEndEntity
m_nAttachIndex
m_nBeamFlags
m_nBeamType
m_nDissolveType
m_nHaloIndex
m_nMinDXLevel
m_nNumBeamEnts
m_vecEndPos