PDA

View Full Version : Few questions



przemekh10
4th May 2013, 08:38
-

EvoloZz
4th May 2013, 08:52
1. player freezeControls(true/false);
2. player setOrigin(the origin);
3. player setModel(the model); - I am not 100% sure about that.

przemekh10
4th May 2013, 10:48
-

kung foo man
4th May 2013, 11:43
The third might not worked for you because you didn't precache the model with precacheModel("...")

Mitch
4th May 2013, 13:52
You can set the original model back using:



maps\mp\gametypes\_teams::model();

or


maps\mp\_utility::loadModel(self.pers["savedmodel"]);

Earliboy
4th May 2013, 14:14
About xmodels:
Part of my xmodel script:


self detachAll();
self setModel(model);


Getting back normal:


getBack()
{
self enableWeapon();

self detachAll();
self thread maps\mp\gametypes\_teams::model();

wait 1;

self setClientCvar("cg_thirdpersonRange","120");
self setClientCvar("cg_thirdperson","0");
}