241
Suggestions & Requests / Re: Melee on Right-Click Playertype
« on: August 08, 2014, 02:19:21 PM »Make it so that when they melee they act like if there using the fist add onI was thinking more of making it just a knock-back.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Make it so that when they melee they act like if there using the fist add onI was thinking more of making it just a knock-back.
I agree with jes - please clean up your format. What text editor are you using to code it? I recommend TorqueDev, as it will tell you what a lot of functions are and how to use them when you are coding, and tells you exactly what the syntax error is and where it is.
I can't actually view the .cs file, but it looks like you made a function, and then closed the package. Try closing the function then the package.
//########## Military Gears
exec("./MKI Suit.cs");
package DZ_MilGearPackage
{
function servercmdDropTool(%this,%slot)
{
if(isobject(%this.player.tool[%slot]) && %this.player.tool[%slot].getname() $= "SOG_MKISuitItem")
if(isobject(%this.player.getmountedimage(1)) && %this.player.getmountedimage(1).getname() $= "SOG_MKISuitMountedImage") { %this.player.schedule(5,unmountimage,1); }
parent::servercmdDropTool(%this,%slot);
}
function Armor::damage(%this, %obj, %sourceObject, %position, %damage, %damageType)
{
if(%obj.getMountedImage(1).getName() $= "SOG_MKISuitMountedImage")
{
if(getWord(%pos,2) < getWord(%obj.getWorldBoxCenter(),2) - 3.3*getWord(%obj.getScale(),2))
%damage *= 0.5;
}
};
Parent::damage(%this, %obj, %sourceObject, %position, %damage, %damageType);
activatepackage(DZ_MilGearPackage);//########## Military Gears
exec("./MKI Suit.cs");
package DZ_MilGearPackage
{
function servercmdDropTool(%this, %slot)
{
%player = %this.getControllingObject();
if(isobject(%player.tool[%slot]) && %player.tool[%slot].getname() $= "SOG_MKISuitItem")
{
if(isobject(%player.getmountedimage(1)) && %player.getmountedimage(1).getname() $= "SOG_MKISuitMountedImage")
{
%player.schedule(5, unmountimage, 1);
}
}
parent::servercmdDropTool(%this, %slot);
}
function Armor::damage(%this, %obj, %sourceObject, %position, %damage, %damageType)
{
if(%obj.getMountedImage(1).getName() $= "SOG_MKISuitMountedImage")
{
if(getWord(%pos,2) < getWord(%obj.getWorldBoxCenter(),2) - 3.3 * getWord(%obj.getScale(), 2))
{
%damage *= 0.5;
}
}
parent::damage(%this, %obj, %sourceObject, %position, %damage, %damageType);
}
};
activatepackage(DZ_MilGearPackage);
Oh, yeah he is a blockhead idk why it does that.What you do is: [5] OnbotSpawn<Bot<Set Weapon, and start the bot without any weapons.
I agreeIf he doesn't, I might try to make stuff in it, but it will take a while. :c
Sylvanor, you should take this build and add on to it. Its too epic to go unfinished, and the inside could use some detail
Wow! i wanted something like this! very good!!Please, please do something with this. I'm tired of it sitting in my saves folder un-used. lol




Slayer, transitional RTB, prefs and stuff work fine but the game just doesn't start (Even when using the gamemode itself)Same, though the maps won't load for me: and the game doesn't start.