Skip to content

Commit 0a29ec4

Browse files
committed
Gauss color depends on its charge
1 parent 9fc712d commit 0a29ec4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cl_dll/ev_hldm.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -948,13 +948,13 @@ void EV_FireGauss( event_args_t *args )
948948
0.1f,
949949
m_fPrimaryFire ? 1.0f : 2.5f,
950950
0.0f,
951-
m_fPrimaryFire ? 128.0f : flDamage,
951+
(m_fPrimaryFire ? 128.0f : flDamage) / 255.0f,
952952
0,
953953
0,
954954
0,
955-
m_fPrimaryFire ? 255 : 255,
956-
m_fPrimaryFire ? 128 : 255,
957-
m_fPrimaryFire ? 0 : 255
955+
(m_fPrimaryFire ? 255 : 255) / 255.0f,
956+
(m_fPrimaryFire ? 128 : 255) / 255.0f,
957+
(m_fPrimaryFire ? 0 : 255) / 255.0f
958958
);
959959
}
960960
else
@@ -965,13 +965,13 @@ void EV_FireGauss( event_args_t *args )
965965
0.1f,
966966
m_fPrimaryFire ? 1.0f : 2.5f,
967967
0.0f,
968-
m_fPrimaryFire ? 128.0f : flDamage,
968+
(m_fPrimaryFire ? 128.0f : flDamage) / 255.0f,
969969
0,
970970
0,
971971
0,
972-
m_fPrimaryFire ? 255 : 255,
973-
m_fPrimaryFire ? 128 : 255,
974-
m_fPrimaryFire ? 0 : 255
972+
(m_fPrimaryFire ? 255 : 255) / 255.0f,
973+
(m_fPrimaryFire ? 128 : 255) / 255.0f,
974+
(m_fPrimaryFire ? 0 : 255) / 255.0f
975975
);
976976
}
977977

0 commit comments

Comments
 (0)