precache the default player model, fixes #1050
authorRudolf Polzer <divverent@alientrap.org>
Mon, 20 Feb 2012 12:21:16 +0000 (13:21 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 20 Feb 2012 12:21:16 +0000 (13:21 +0100)
qcsrc/client/csqcmodel_hooks.qc

index a0a6e15..6010cf0 100644 (file)
@@ -117,6 +117,7 @@ void CSQCPlayer_ForceModel_Apply(float islocalplayer)
        {
                entity e;
                e = spawn();
+               precache_model(cvar_defstring("_cl_playermodel"));
                setmodel(e, cvar_defstring("_cl_playermodel"));
                forceplayermodels_goodmodel = e.model;
                forceplayermodels_goodmodelindex = e.modelindex;