I've discovered an error in the Half-Life SDK in the
common\const.h file, line 324. This is the list of parameters
for the TE_DLIGHT effect. Someone at VALVe added an extra
brightness parameter to the list. The TE_DLIGHT effect
takes only
NINE parameters:
Code:
#define TE_DLIGHT 27
coord (origin x)
coord (origin y)
coord (origin z)
byte (radius in 10's)
byte (color r)
byte (color g)
byte (color b)
byte (life in 10's)
byte (decay rate in 10's)
The effect is used properly in the HL game code, (in
islave.cpp)
its only the parameter list that they listed incorrectly in
const.h
This incorrect parameter list was copied over into the AMX file:
include\message_const.INC, line 416.
If you USE the TE_DLIGHT effect in your code with the incorrect
(10) parameters with certain values, it will cause the clients
to CRASH with one of those
SVC_BAD errors when the
effect is triggered. Please update your files.
__________________