I'm having a problem with the player anims in my gamemode. It doesn't matter if I have a custom weapon or hl2 weapon, the anims are all screwwed.
The problem:
[video=youtube;gHiJekWrOAU]http://www.youtube.com/watch?v=gHiJekWrOAU[/video]
I think it may have something to do with this script, because it's all messed up for both the bots and me.
[CODE]--======================Player Models==========================
CombatantModels = {}
CombatantModels[1] = Model("models\\Humans/Group03/male_06.mdl")
CombatantModels[2] = Model("models\\Humans/Group03/male_03.mdl")
CombatantModels[3] = Model("models\\Humans/Group03/male_05.mdl")
CombatantModels[4] = Model("models\\Humans/Group03/Female_01.mdl")
function SetPlayerModels( ply )
if ply:Team() == 1 then
ply:SetModel(table.Random(CombatantModels))
end
end
hook.Add("PlayerSpawn", "Set their model.", SetPlayerModels)[/CODE]
The above code is in my init.lua file. Before this code I had the weird gray guy thing. Now at least my head any body rotates.
Oh, and NPC's have the correct anims, so It's probably a problem with the above code snippet. Thanks for the help!