[HL2:DM] mani_fire_fix

A place for requesting new Source.Python plugins to be made for your server.

Please request only one plugin per thread.
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

[HL2:DM] mani_fire_fix

Postby Painkiller » Tue Feb 15, 2022 12:56 pm

Can anybode port this to SP?

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
cssbestrpg
Senior Member
Posts: 287
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: [HL2:DM] mani_fire_fix

Postby cssbestrpg » Tue Feb 15, 2022 5:57 pm

Syntax: Select all

from events import Event
from entities.entity import Entity
from players.entity import Player
from entities.helpers import inthandle_from_index
from filters.entities import EntityIter

@Event('player_death')
def player_death(args):
player = Player.from_userid(args['userid'])
handle = inthandle_from_index(player.index)
for flame_entity in EntityIter('entityflame'):
string = flame_entity.get_property_int('m_hEntAttached')
if string == handle:
flame_entity.remove()
break
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

Re: [HL2:DM] mani_fire_fix

Postby Painkiller » Thu Feb 24, 2022 2:02 pm

I have now tested it for a while.
And the fire sound keeps coming even though there is no fire.

Greetings Painkiller

Return to “Plugin Requests”

Who is online

Users browsing this forum: No registered users and 7 guests