I have been noticing the sound of the fire more often lately, even though I didn't see any fire.
Thanks in Advance
Syntax: Select all
import es
info = es.AddonInfo()
info.name = 'Mani Fire Fix'
info.version = '1.0.0'
info.url = 'http://forums.mattie.info/cs/forums/viewtopic.php?t=27273'
info.basename = 'mani_fire_fix'
info.author = 'Sc0pE'
es.ServerVar('mani_fire_fix_ver',info.version,' By: Sc0pE').makepublic()
def player_death(event_var):
handle = es.getplayerhandle(event_var['userid'])
for flame_entity in es.createentitylist('entityflame'):
string = es.getindexprop(flame_entity, 'CEntityFlame.m_hEntAttached')
if string == handle:
es.server.cmd('es_xremove %s' % flame_entity)
break