CBeam: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Overview ==
== 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]'''
'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/shared/beam_shared.h /game/shared/beam_shared.h]'''
Line 321: Line 321:
|-
|-
| style="width: 50%;" |'''m_vecEndPos'''
| style="width: 50%;" |'''m_vecEndPos'''
| style="width: 15%;" |
| style="width: 35%;" |
|}
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+[https://developer.valvesoftware.com/wiki/beam beam]
! 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
|}
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+[https://developer.valvesoftware.com/wiki/env_beam env_beam]
! 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%;" |'''CEnvBeamStrikeThink'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''CEnvBeamUpdateThink'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputStrikeOnce'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputToggle'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputTurnOff'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputTurnOn'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_OnTouchedByEntity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_TouchType'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_active'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_boltWidth'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_frameStart'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hFilter'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iFilterName'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iszDecal'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iszEndEntity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iszSpriteName'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iszStartEntity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_life'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_noiseAmplitude'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_radius'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_restrike'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_speed'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_spriteTexture'''
| style="width: 15%;" |
| style="width: 35%;" |
|}
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+[https://developer.valvesoftware.com/wiki/env_laser env_laser]
! 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%;" |'''CEnvLaserStrikeThink'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputToggle'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputTurnOff'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputTurnOn'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_firePosition'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flStartFrame'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iszLaserTarget'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iszSpriteName'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_pSprite'''
| style="width: 15%;" |
| style="width: 15%;" |
| style="width: 35%;" |
| 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