Removing custom player models on a map

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:


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

Otherwise, you can just set your own model in a timer after that hook is ran as a hacky fix.

Thank you.

You could also check the current map and then do



GAMEMODE.force_plymodel = ""