|
|
|
@ -82,7 +82,9 @@ TYPEDESCRIPTION CTripmineGrenade::m_SaveData[] =
@@ -82,7 +82,9 @@ TYPEDESCRIPTION CTripmineGrenade::m_SaveData[] =
|
|
|
|
|
DEFINE_FIELD( CTripmineGrenade, m_vecEnd, FIELD_POSITION_VECTOR ), |
|
|
|
|
DEFINE_FIELD( CTripmineGrenade, m_flBeamLength, FIELD_FLOAT ), |
|
|
|
|
DEFINE_FIELD( CTripmineGrenade, m_hOwner, FIELD_EHANDLE ), |
|
|
|
|
#if !TRIPMINE_BEAM_DUPLICATION_FIX |
|
|
|
|
DEFINE_FIELD( CTripmineGrenade, m_pBeam, FIELD_CLASSPTR ), |
|
|
|
|
#endif |
|
|
|
|
DEFINE_FIELD( CTripmineGrenade, m_posOwner, FIELD_POSITION_VECTOR ), |
|
|
|
|
DEFINE_FIELD( CTripmineGrenade, m_angleOwner, FIELD_VECTOR ), |
|
|
|
|
DEFINE_FIELD( CTripmineGrenade, m_pRealOwner, FIELD_EDICT ), |
|
|
|
@ -256,6 +258,9 @@ void CTripmineGrenade::MakeBeam( void )
@@ -256,6 +258,9 @@ void CTripmineGrenade::MakeBeam( void )
|
|
|
|
|
Vector vecTmpEnd = pev->origin + m_vecDir * 2048.0f * m_flBeamLength; |
|
|
|
|
|
|
|
|
|
m_pBeam = CBeam::BeamCreate( g_pModelNameLaser, 10 ); |
|
|
|
|
#if TRIPMINE_BEAM_DUPLICATION_FIX |
|
|
|
|
m_pBeam->pev->spawnflags |= SF_BEAM_TEMPORARY; |
|
|
|
|
#endif |
|
|
|
|
m_pBeam->PointEntInit( vecTmpEnd, entindex() ); |
|
|
|
|
m_pBeam->SetColor( 0, 214, 198 ); |
|
|
|
|
m_pBeam->SetScrollRate( 255 ); |
|
|
|
|