I like this one map, but the playermodels that are set on TTTBeginRound are male strippers. Is there anyway I can stop the models from changing? The models are coded inside of the .bsp. They are not models I added myself.
If the map runs the SetModel through lua, you can override SetModel and check like this:
[code]local _R = debug.getregistry()
local _SetModel = _R.Player.SetModel
function _R.Player:SetModel( str )
if ( str == "male stripper model path" ) then
return
end
_SetModel( self )
end[/code]
Otherwise, you can just set your own model in a timer after that hook is ran as a hacky fix.
[QUOTE=code_gs;50037516]If the map runs the SetModel through lua, you can override SetModel and check like this:
[code]local _R = debug.getregistry()
local _SetModel = _R.Player.SetModel
function _R.Player:SetModel( str )
if ( str == "male stripper model path" ) then
return
end
_SetModel( self )
end[/code]
Otherwise, you can just set your own model in a timer after that hook is ran as a hacky fix.[/QUOTE]
Thank you.
You could also check the current map and then do
[code]
GAMEMODE.force_plymodel = ""
[/code]
Sorry, you need to Log In to post a reply to this thread.