it's nicer with also precaching
authorRudolf Polzer <divverent@alientrap.org>
Wed, 26 May 2010 10:44:10 +0000 (12:44 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 26 May 2010 10:44:10 +0000 (12:44 +0200)
qcsrc/server/gamecommand.qc

index 8a4d5ec..a6881b2 100644 (file)
@@ -960,7 +960,10 @@ void GameCommand(string command)
                if(argv(1) == "w")
                        setmodel(e, (nextent(world)).weaponentity.model);
                else
+               {
+                       precache_model(argv(1));
                        setmodel(e, argv(1));
+               }
                e.frame = stof(argv(2));
                if(substring(argv(3), 0, 1) == "#")
                        i = stof(substring(argv(3), 1, -1));