NRD Posted February 14, 2012 Share Posted February 14, 2012 I saw this in another topic in a different forum here, so I thought I would make a request for it. My players sometimes get upset when a teammate "steals" their poison kill. In silent mod this has been happening a lot as we cannot tell if our teammate has poisoned someone or not. Would it be possible to add this? Thanks Quote Link to comment Share on other sites More sharing options...
Sol Posted February 14, 2012 Share Posted February 14, 2012 Of course, you can easily add this by yourself. SOUND_PATH = "wav/......" function et_Obituary(num_vic, num_killer, meansOfDeath) local victimteam = tonumber(et.gentity_get(num_vic, "sess.sessionTeam")) local killerteam = tonumber(et.gentity_get(num_killer, "sess.sessionTeam")) if victimteam ~= killerteam and killernum ~= 1022 then if meansOfDeath == POISON WEAPON ( I DUNNO ID ) then et.trap_SendConsoleCommand(et.EXEC_APPEND,string.format("playsound_env %d %s\n",num_vic,SOUND_PATH)) end end end Quote Link to comment Share on other sites More sharing options...
Subscriber BECK Posted February 15, 2012 Subscriber Share Posted February 15, 2012 okay, gonna ask a n00by question Sol, but where would one "add" that code? Is that a LUA script? Quote Link to comment Share on other sites More sharing options...
NRD Posted February 15, 2012 Author Share Posted February 15, 2012 okay, gonna ask a n00by question Sol, but where would one "add" that code? Is that a LUA script? Lol I was wondering the same thing, this was stated in another thread the exact same way. A little more info as to where to put that code would be very helpfull for everyone else who ever stumbles upon this thread looking for answers. Thank you for sharing the code, but it doesn't help most people unless you let us know where to put it! Quote Link to comment Share on other sites More sharing options...
Dragonji Posted February 15, 2012 Share Posted February 15, 2012 Is that a LUA script?Yes, it is Lua. Quote Link to comment Share on other sites More sharing options...
Sol Posted February 16, 2012 Share Posted February 16, 2012 Yes, its LUA Script. But you have to first change your sound_path and poison ID weapon also.Just simply up your script do server's silent folder and add filename to cvar lua_modules "luascript.lua" after map_restart. Quote Link to comment Share on other sites More sharing options...
Management TheSilencerPL Posted April 9, 2012 Management Share Posted April 9, 2012 What about the poison icon over the poisoned player head? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.