Boink [message #491428] |
Sat, 16 January 2016 06:31 |
|
[-HOH-]szymek777
Messages: 45 Registered: June 2013 Location: Poland
Karma: 0
|
Recruit |
|
|
Is it possible to play boink sound on bot kill?
|
|
|
|
|
Re: Boink [message #491438 is a reply to message #491435] |
Sun, 17 January 2016 06:16 |
|
sla.ro(master)
Messages: 610 Registered: September 2010 Location: Romania
Karma: 0
|
Colonel |
|
|
[-HOH- | szymek777 wrote on Sat, 16 January 2016 23:54]Server-side plugin would be great. Is it possible by LUA?
|
We use a Lua plugin in mutant co-op to do that.
here is the code, have fun.
function OnKilled(obj, killer)
if Is_Soldier(obj) == true and Get_Player_ID(obj) < 1 and Get_Player_ID(killer) > 0 then
Console_Input("sndp "..Get_Player_ID(killer).." correction_3.wav")
end
end
Creator of Mutant Co-Op
Developer of LuaTT
|
|
|
|