So the physgun, pistol, any weapon I give my player in my custom gamemode won't add hands to it. I set the model to alyx and that works fine, the world model of other players holding the weapon looks fine. But when it comes to seeing hands on your screen holding the physgun or pistol it does not work. I've tried a bunch of things and nothing helps.
[lua]
I've tried all this, not at the same time though.
function GM:PlayerInitialSpawn(pl)
util.PrecacheModel( models/player/alyx.mdl )
pl:SetModel( models/player/alyx.mdl )
end
function GM:PlayerSpawn(pl)
util.PrecacheModel( models/player/alyx.mdl )
pl:SetModel( models/player/alyx.mdl )
end
function GM:PlayerSetModel(pl)
util.PrecacheModel( models/player/alyx.mdl )
pl:SetModel( models/player/alyx.mdl )
end
function GM:PlayerSetModel(pl)
local cl_playermodel = pl:GetInfo( "cl_playermodel" )
local modelname = player_manager.TranslatePlayerModel( cl_playermodel )
util.PrecacheModel( modelname )
pl:SetModel( modelname )
end
function GM:PlayerSetModel(pl)
local cl_playermodel = pl:GetInfo( "models/player/alyx.mdl" )
local modelname = player_manager.TranslatePlayerModel( cl_playermodel )
util.PrecacheModel( modelname )
pl:SetModel( modelname )
end
[/lua]
[editline]3rd July 2013[/editline]
I am deriving from the base gamemode as well, I don't know if that might shine some light on the solution.
Last 2 files: [url]https://github.com/garrynewman/garrysmod/commit/36dd6581c61e733e782549278ca16e5db3fd0e19[/url] LEARN
Ohhhhhhhhhhh they look so beautiful. Thank you(:
Sorry, you need to Log In to post a reply to this thread.