Welcome, Guest. Please login or register.
Did you miss your activation email?
September 20, 2024, 09:01:17 AM
Home Help Login Register
News: Zombie Master 2 discussion

  Show Posts
Pages: [1]
1  Other / Trouble in Terrorist Town / Custom Sounds not working on: October 24, 2010, 10:28:39 PM
Hey, i am trying to put two custom sound files into the ttt script to play then the round ends

i edited the part in cl_init.lua to

--- optional sound cues on round start and end
CreateConVar("ttt_cl_soundcues", "0")

local cues = {
  Sound("ttt/your_team_win.mp3"),
  Sound("ttt/your_team_lost.mp3")
};
local function PlaySoundCue()
  if GetConVar("ttt_cl_soundcues"):GetBool() then
      surface.PlaySound(table.Random(cues))
  end
end

GM.TTTBeginRound = PlaySoundCue
GM.TTTEndRound = PlaySoundCue


but it doesn't work or they can't download the files 2 sounds files when connecting to the server

can anyone tell me if its correct or is there anything wrong?
2  Other / Trouble in Terrorist Town / Re: Win / Lost Sounds on: October 24, 2010, 08:32:15 PM
do you know if i can use .wav files instead of .mp3?
3  Other / Trouble in Terrorist Town / Re: Win / Lost Sounds on: October 24, 2010, 05:36:46 PM
Okay, thanks i will test it in a bit
4  Other / Trouble in Terrorist Town / Win / Lost Sounds on: October 24, 2010, 01:25:00 PM
Hey, i am currently looking to code two sounds into my ttt script but i want to do it so if the terrorist win it plays "your_team_won" to terrorist only and "your_team_lost" to the Traitors and so on

i just want to know what files i need to edit and the codes to put in
Pages: [1]


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.01 seconds with 19 queries.