One of the players on my Sandbox server discovered that spawning the models/player.mdl ragdoll will crash the server. Unless I am mistaken, this is the same model that is used when a player fails to load in the server properly:
I believe you can find this model in one of the VPKs linked by garrysmod/sourceengine/hl2_misc_dir.vpk (SRCDS installation).
I realize this can be blocked with something as simple as
hook.Add( "PlayerSpawnRagdoll", "PreventPlayerRagdollCrash", function( ply, model ) if ( model == "models/player.mdl" ) then return false else return true end end
I played at the thought of trying to remove it from the VPK archive, but remembered the model is actually used for real purposes.
My question then is why does this ragdoll cause the server to crash?
Is there something that can be done to prevent this without requiring server owners to patch it?