Jump to content

Play poison sound for players near poison victim


NRD

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...