Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 03:07:22 PM
Home Help Login Register
News: Zombie Master 2 discussion

  Show Posts
Pages: [1]
1  Other / Trouble in Terrorist Town / Re: Music problem on: July 09, 2011, 02:06:08 AM
Nothing pops up in console. lonsun.mp3 will play regardless but lontake.mp3 will not.
2  Other / Trouble in Terrorist Town / Re: Music problem on: July 09, 2011, 01:27:34 AM
Both the hooks have the same name.

Try this

hook.Add("TTTBeginRound", "PlaySounds1", function()
    BroadcastLua('surface.PlaySound("ttt/lonsun.mp3")');
end);     

hook.Add("TTTEndRound", "PlaySounds2", function()
    BroadcastLua('surface.PlaySound("ttt/lontake.mp3")');
end);     


That is something else wrong with it, thank you for that, but regardless it won't play no matter what I do. I've checked the file and it seems fine, so I have no idea what's wrong with it.
3  Other / Trouble in Terrorist Town / Music problem on: July 08, 2011, 08:10:50 PM
I have a problem with how the music plays on my server, the music I set for the beginning will play, but not the end one.

hook.Add("TTTBeginRound", "play sounds!", function()
   surface.PlaySound("ttt/lonsun.mp3");
end);


This is what I put for the beginning of the round.

hook.Add("TTTEndRound", "play sounds!", function()
   surface.PlaySound("ttt/lontake.mp3");
end);


The file downloads fine but it's not playing. Also, if I switch the two mp3's around lontake.mp3 runs fine.
EDIT: I take that back, lontake.mp3 won't play at either the beginning or the end of the round, so it's probably just the file itself.
EDIT2: lontake.mp3 Plays fine, but when I try it on the server it doesn't play. (ULX's playsound command). I'm sure it downloaded aswell as I can find it in my gmod's sound folder.
4  Other / Trouble in Terrorist Town / Re: 2 Problems on: July 08, 2011, 05:31:37 PM
For the first problem I believe the issue is the final end, its not needed.
Thanks bro it's working now.
5  Other / Trouble in Terrorist Town / Re: 2 Problems on: July 08, 2011, 05:01:12 PM
For the second problem : does it download the texture before you join the game?

Yes it does. It does every time actually, so probably something wrong with fast download.
6  Other / Trouble in Terrorist Town / 2 Problems on: July 08, 2011, 03:33:24 PM
Atm I have two problems with my server I'm having a bit of trouble with figuring out what's wrong, so I was hoping someone here could help.


Jihad Bomb
Resolved.

AK47 Icon Problem

In the traitor menu, the icon on the AK47 isn't popping up. It just shows as the default "texture is missing" purple and black.
I have the icon saved as a .vtf in the vgui/ttt folder, and the .vmt as well.

"UnlitGeneric"
{
"$basetexture" "VGUI/ttt/icon_lonserver_ak47"
"$vertexcolor" 1
"$vertexalpha" 1
"$translucent" 1
}


And in the shared.lua of the AK47

SERVER: resource.AddFile("materials/VGUI/ttt/icon_lonserver_ak47.vmt")
CLIENT: SWEP.Icon = "VGUI/ttt/icon_lonserver_ak47"
(It doesn't actually show it as that, I was just showing the paths.)


If you could help me out I'd appreciate it.


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.