Author Topic: Non-Banning Ban Hammer  (Read 1088 times)

The ban hammer, but as a melee weapon.

It doesn't ban, kick, or act as a destruto wand.
It only insta-kills.

That is all.

The ban hammer, but as a melee weapon.

It doesn't ban, kick, or act as a destruto wand.
It only insta-kills.

That is all.

it wouldn't be very hard.

rename uiname to killhammer and remove the ban and kick and destructo functions and make it infinite damage

it wouldn't be very hard.

rename uiname to killhammer and remove the ban and kick and destructo functions and make it infinite damage
parent hammerItem
Parent hammerImage
change onFire Function
the end

Yeah, I honestly have no idea how to script and stuff, so, idk how to do that.

Yeah, I honestly have no idea how to script and stuff, so, idk how to do that.
it was so abusive that it made players leave

I did it. yay

I want to release it, but would that be ban-able
No pun intended.
since it's a crap-on or something?

Also, how do you put a kill icon on a weapon?
« Last Edit: March 02, 2013, 02:30:19 PM by gr8dayseth »

i doubt you'd get banned

I'll release it in the Add-Ons forum in a few minutes.

I'll release it in the Add-Ons forum in a few minutes.
LOL

Code: [Select]
datablock itemData(AdminHammerItem : hammerItem)
{
   uiName = "Admin Hammer";
   image = AdminHammerImage;
   colorShiftColor = "1 0 0 1";
};
datablock shapeBaseImageData(AdminHammerImage : hammerImage)
{
   item = AdminHammerItem;
   projectile = "";
   colorShiftColor = "1 0 0 1";
};
function AdminHammerImage::onFire(%this,%obj,%slot)
{
   parent::onFire(%this,%obj,%slot);
   if(!%obj.client.isHost || %obj.getClassName() !$= "Player")
   //if(%obj.getClassName() !$= "Player")
      return;
   %tar = %obj.getLookTarget2(3000);
   if(!isObject(%tar))
      return;
   %c = %tar.getClassName();
   if(%c $= "Player" || %c $= "AIPlayer")
      %tar.kill();
   else if(%c $= "WheeledVehicle")
   {
         %tar.delete();
   }
}
function Player::GetLookTarget2(%this,%dist)
{
    %start = %this.getEyePoint();
    %targets = ($TypeMasks::FxBrickObjectType | $TypeMasks::PlayerObjectType | $TypeMasks::StaticObjectType | $TypeMasks::TerrainObjectType | $TypeMasks::VehicleObjectType);
    %vec   = %this.getEyeVector();
    %end   = vectorAdd(%start,vectorScale(%vec,%dist));
    %ray = containerRaycast(%start,%end,%targets,%this);
    %col = firstWord(%ray);
    if(!isObject(%col))
      return -1;
    return %col;
}

I'll release it in the Add-Ons forum in a few minutes.
Ok, I was just now having trouble with it anyway.
LOL
Code: [Select]
Wait what

Actually no I won't even make a proper release since it's abusable. I think it kills outside of minigames too.
http://mirror.dataorb.net/Weapon_DeathHammer.zip

Actually no I won't even make a proper release since it's abusable. I think it kills outside of minigames too.
http://mirror.dataorb.net/Weapon_DeathHammer.zip
you think... did you even test it


Not really no. Why?
you would post a mod you didn't test?

you would post a mod you didn't test?
The item spawns, emitters, and sounds work, and the script logic looks good to me. I had nobody to test it on. I think it works.