Author Topic: How would I modify this  (Read 1469 times)

Hi, I'm trying to make it so the Mario Mushroom addon does not make you big, it makes you fast. I looked at the code, but couldn't figure it out. Here is the part of the code I see relevant.

Code: [Select]
//What the tool actually does when you click.
function MMushroomImage::onFire(%this,%obj,%slot)
{
%currSlot = %obj.currTool;
%obj.setplayerscale("4 4 4");
%obj.tool[%currSlot] = 0;
%obj.weaponCount--;
messageClient(%obj.client,'MsgItemPickup','',%currSlot,0);
serverCmdUnUseTool(%obj.client);
%obj.schedule(5000,setScale,"1 1 1");

Don't spoonfeed me, just tell me what to modify.

You'd have to make a new datablock with a slower top speed. I think top speed is datablock.maxForwardSpeed * Z scaling. (Obviously for other directions you'd need to use other variables.)

Go look at the default speeds: PlayerStandardArmor.dump();

PlayerStandardArmor.dump(); doesn't work, implying you want me to put it in the console.

PlayerStandardArmor.dump(); doesn't work, implying you want me to put it in the console.

what

unless you aren't calling it on the server, that should work

first off you would remove the lines of code that set your scale
if the dump(); command isn't working do in console on your own server
findclientbyname(name).player.dump();
this will give you all the functions that a player can perform