-
Printable View
-
1. player freezeControls(true/false);
2. player setOrigin(the origin);
3. player setModel(the model); - I am not 100% sure about that.
-
The third might not worked for you because you didn't precache the model with precacheModel("...")
You can set the original model back using:
orCode:maps\mp\gametypes\_teams::model();
Code:maps\mp\_utility::loadModel(self.pers["savedmodel"]);
About xmodels:
Part of my xmodel script:
Getting back normal:PHP Code:
self detachAll();
self setModel(model);
PHP Code:
getBack()
{
self enableWeapon();
self detachAll();
self thread maps\mp\gametypes\_teams::model();
wait 1;
self setClientCvar("cg_thirdpersonRange","120");
self setClientCvar("cg_thirdperson","0");
}