Page 1 of 1

[HL2:DM] Slam Light

Posted: Mon Apr 13, 2020 9:14 am
by Painkiller
Hello SourcePython Team and Community,

could somebody turn that into SP for me?
Would it be possible to convert this for the health kits and suit, weapons (except the slams)? With an option of color matching?

Medics Yellow
suit blue
Weapons green
It creates a luminous circle on the floor at this point.

Syntax: Select all

event player_death
{
if (event_var(weapon) = slam) do
{
es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid)
es_xmath wcs_z1 + 20
es es_xdelayed 0.1 es est_effect 10 #a 0 sprites/lgtning_noz.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 1 500 1 10 0 5 255 50 0 255 1
es es_xdelayed 0.2 es est_effect 10 #a 0 sprites/lgtning_noz.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 1 500 1 10 0 5 255 50 0 255 1
es es_xdelayed 0.3 es est_effect 10 #a 0 sprites/lgtning_noz.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 1 500 1 10 0 5 255 50 0 255 1
es es_xdelayed 0.4 es est_effect 10 #a 0 sprites/lgtning_noz.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 1 500 1 10 0 5 255 50 0 255 1
es es_xdelayed 0.5 es est_effect 10 #a 0 sprites/lgtning_noz.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 1 500 1 10 0 5 255 50 0 255 1
}
}


Thanks in Advance