Code: server.cs (25 lines)
//Overwrite the current setPlayerScale event, max is now 5 instead of 2 registerOutputEvent("Bot", "setPlayerScale", "float 0.1 5 0.1 1"); registerOutputEvent("Player", "setPlayerScale", "float 0.1 5 0.1 1");
//Sets scale x y z instead of all function AIPlayer::setFullScale(%this, %x, %y, %z) { %x = mFloatLength(mClampF(%x, 0.01, 5), 2); %y = mFloatLength(mClampF(%y, 0.01, 5), 2); %z = mFloatLength(mClampF(%z, 0.01, 5), 2);
%this.setScale(%x SPC %y SPC %z); }
function Player::setFullScale(%this, %x, %y, %z) { %x = mFloatLength(mClampF(%x, 0.01, 5), 2); %y = mFloatLength(mClampF(%y, 0.01, 5), 2); %z = mFloatLength(mClampF(%z, 0.01, 5), 2);
%this.setScale(%x SPC %y SPC %z); }
registerOutputEvent("Bot", "setFullScale", "float 0.1 5 0.1 1" TAB "float 0.1 5 0.1 1" TAB "float 0.1 5 0.1 1"); registerOutputEvent("Player", "setFullScale", "float 0.1 5 0.1 1" TAB "float 0.1 5 0.1 1" TAB "float 0.1 5 0.1 1");
|