Skip to content

Commit

Permalink
Fix egon beam color. Same as ValveSoftware/halflife#3033.
Browse files Browse the repository at this point in the history
  • Loading branch information
nekonomicon committed Jun 5, 2021
1 parent 8c45ae9 commit 2c7e07e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cl_dll/ev_hldm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ void EV_FireRpg( event_args_t *args )
//======================

//======================
// EGON END
// EGON START
//======================
enum egon_e
{
Expand Down Expand Up @@ -1502,10 +1502,11 @@ void EV_EgonFire( event_args_t *args )
float g = 50.0f;
float b = 125.0f;

if( IEngineStudio.IsHardware() )
// if( IEngineStudio.IsHardware() )
{
r /= 100.0f;
g /= 100.0f;
r /= 255.0f;
g /= 255.0f;
b /= 255.0f;
}

pBeam = gEngfuncs.pEfxAPI->R_BeamEntPoint( idx | 0x1000, tr.endpos, iBeamModelIndex, 99999, 3.5, 0.2, 0.7, 55, 0, 0, r, g, b );
Expand Down

0 comments on commit 2c7e07e

Please sign in to comment.