Quote:
Originally Posted by lazarev
|
It send this every time on thinking, that makes my player really lagy if there are a lot of lights in the map, I knew about TE_DLIGHT but I want something that should not be updated every time, and could be attached to player, like a light enitity.
PHP Code:
message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
write_byte(TE_DLIGHT);
engfunc(EngFunc_WriteCoord, vOrigin[0]);
engfunc(EngFunc_WriteCoord, vOrigin[1]);
engfunc(EngFunc_WriteCoord, vOrigin[2]);
write_byte(iRadius); // radius in 10's
write_byte(iR); // R
write_byte(iG); // G
write_byte(iB); // B
write_byte(3); // life
write_byte(0); // decay rate
message_end();