player_death not trigger when player suicide (fall or killed by own grenade)
How can i fix it? need for deathrun
How can i fix it? need for deathrun
|
Pages: [1] Go Down
player_death not trigger when player suicide (fall or killed by own grenade)
How can i fix it? need for deathrun if a player is killed by suicide or their own grenade then how is player_death not triggered if they are killed?
okay, video example http://www.twitch.tv/zloykif/b/317270578
explanation: 1-04 killed by bot - successful 1-30 killed by bot with wcs damage - failed 2-14 suicide with wcs damage - failed 2-31 suicide with HE - failed 2-59 fall down suicide - failed Quote [test player_kill] ahh ok, you mean your player_death skill does not activate when the player suicides?
i think you want the skill to trigger when a player gets killed on deathrun? well in event player_death WCS does a check to make sure that the userid did not suicide or killed by world (ie falling) before activating a skill configured for skill_cfg player_death so a userid can not activate their own player_death skill in event player_death if you want a suicide to activate your skill you will have to do it another way you can use the player_death_cmd and it will activate every time the userid is in event player_death if you dont want to use the player_death_cmd and want to have a skill you can level up you need to do a few things i would make a side script and create a new event player_death that checks for keyvalues set in event player_spawn Quote ahh ok, you mean your player_death skill does not activate when the player suicides?exactly Quote you can use the player_death_cmdno idea what is that, can you make example? Quote make a side script and create a new event player_death that checks for keyvalues set inlike this? Quote [[skill1]] tedious do this for every race =( maybe possible make 2 different player_death check inside wcs and make cfg switcher? but i dont know python and where located part with player_death sorry, im speaking es_WCSraces_db.txt
its now called deathcmd in the .ini format Quote [Name] and yes, exactly like that okay deathcmd, Orcish Horde what should we modified to work Reincarnation correctly, can u explain?
Quote [Orcish Horde] sorry, i dont understand again. doesnt Reincarnation work correctly?
do you mean you want to modify it so that Reincarnation will work if the player suicides? if so you can use wcs_xalias racealias_oh3 in deathcmd Quote doesnt Reincarnation work correctly?of course, any skill doesn't work, because player_death not read skill block (as I understand) if player suicide. Quote do you mean you want to modify it so that Reincarnation will work if the player suicides?yes Quote if so you can use wcs_xalias racealias_oh3 in deathcmdif player have 0 points in skill reincarnation he still will work? if yes, this is badi think the best way to go about it would be to remove the suicide check in event player_death
but like you said that requires some python skill and know around the WCS core sorry i dont know where this code is located either i think it is here on line 1879 of wcs.py if not victim == attacker: maybe if you make a new topic asking how to remove that check this would be helpful for all WCS deathrun servers Quote i think it is here on line 1879 of wcs.pymy wcs.py contains 1558 stings ^^ but i found it, 1029 Quote this would be helpful for all WCS deathrun serversguess this mod combination not so popular no prblem when we solve itSo, problem solved
![]() Big thanks to hollyday and also demonell My english terrible, so better if someone else make "how to" if there is a need 1) open wcs.py 2) ctrl+f "def player_death" 3) and replace this block Quote def player_death(ev): fixed wcs.py - http://www.mediafire.com/?gikjyyh7m8j9a5y Pages: [1] Go Up
|