I want to change standart player sounds, like fall sound, hurt sound and etc for all players, without addons, what change ingame sounds. But I didn't know how to do this. (Footsteps already changed)
Easiest is [url]http://wiki.garrysmod.com/page/GM/PlayerFootstep[/url]
-super late-
Erm, how to change fall sound or player hurt sound? Or mute it? Also I take problem
[code]
SV_StartSound: player/walk1.wav not precached (0)
[/code]
but I prechached it.
[code]
local MoveSound = {
"player/walk1.wav",
"player/walk2.wav",
"player/walk3.wav"
}
for _, sound in pairs(MoveSound) do
util.PrecacheSound(Sound(sound))
util.PrecacheSound(sound)
end
[/code]
Called from GM:PlayerFootstep(ply,pos)
[code]
EmitSound( Sound(table.Random(MoveSound)), pos, ply:EntIndex(), CHAN_AUTO, volume, 75, 0, math.random(95,105) )
[/code]
Also try prechache from console, but not works;(
[B]SOLVED[/B]
I fix this problem by usage ent:EmitSound
GRAC!
Sorry, you need to Log In to post a reply to this thread.