Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Boink
Boink [message #491428] Sat, 16 January 2016 06:31 Go to next message
[-HOH-]szymek777 is currently offline  [-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 #491429 is a reply to message #491428] Sat, 16 January 2016 11:25 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3805
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
You could attach a script to the bots that plays the sound to the player that killed them.

Re: Boink [message #491435 is a reply to message #491428] Sat, 16 January 2016 14:54 Go to previous messageGo to next message
[-HOH-]szymek777 is currently offline  [-HOH-]szymek777
Messages: 45
Registered: June 2013
Location: Poland
Karma: 0
Recruit
Server-side plugin would be great. Is it possible by LUA?
Re: Boink [message #491438 is a reply to message #491435] Sun, 17 January 2016 06:16 Go to previous messageGo to next message
sla.ro(master) is currently offline  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
Re: Boink [message #491439 is a reply to message #491428] Sun, 17 January 2016 06:25 Go to previous message
[-HOH-]szymek777 is currently offline  [-HOH-]szymek777
Messages: 45
Registered: June 2013
Location: Poland
Karma: 0
Recruit
Thanks sla.ro The function OnKilled is just what i needed. Rest is simple
Previous Topic: Buildings
Next Topic: Old renegade files, maps etc
Goto Forum:
  


Current Time: Sat Apr 20 06:30:32 MST 2024

Total time taken to generate the page: 0.00620 seconds