Is it possible to set TE_BEAMCYLINDER to follow the player?
PHP Code:
Spr_Ring = precache_model("sprites/shockwave.spr")
PHP Code:
public radiation_stuff(id)
{
if(!is_user_alive(id) || !is_user_zombie(id))
{
remove_task(id)
return
}
static Float:origin[3]
pev(id, pev_origin, origin)
ring(origin)
}
PHP Code:
public ring(const Float:origin[3])
{
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, origin, 0)
write_byte(TE_BEAMCYLINDER) // TE id
engfunc(EngFunc_WriteCoord, origin[0]) // x
engfunc(EngFunc_WriteCoord, origin[1]) // y
engfunc(EngFunc_WriteCoord, origin[2]) // z
engfunc(EngFunc_WriteCoord, origin[0]) // x axis
engfunc(EngFunc_WriteCoord, origin[1]) // y axis
engfunc(EngFunc_WriteCoord, origin[2] + 110)
write_short(Spr_Ring) // sprite
write_byte(50) // startframe
write_byte(50) // framerate
write_byte(10) // life
write_byte(3) // width
write_byte(0) // noise
write_byte(0) // red
write_byte(150) // green
write_byte(0) // blue
write_byte(250) // brightness
write_byte(0) // speed
message_end()
}