Author Topic: Weapon - Tactical Knife (As seen on TV)  (Read 44825 times)

Yes, but mine also allows you to throw it.

Yes, so I recommend you use a better weaponset such as T+T.
Beta T+T <3

Yes, but mine also allows you to throw it.
So in other words its a fancy knife that you can throw as a last resort.
Mine is the kind of knife that you always have, and therefore probably shouldn't be thrown.

Beta T+T <3
Speaking of which when is that coming out?

Speaking of which when is that coming out?
When he's finished  :cookieMonster:

Seriously i have no clue :\

as much as i hate you
very good job

Fret not, you can easily modify any playertype to support the knife, it was made like this so you can have the add-on enabled but not have to use it.
Yeahk. You should add this RTB pref that. when turned on, allows all playertypes on the server to use this, and when turned off, only playertypes with the support will be able to. It would make it easier for those who do not know how to script and want various playtypes to have this function.

Edit: Wait a sec, here we go:
Code: [Select]
datablock PlayerData(PlayerMW2Armor : PlayerStandardArmor)
{
uiName = "MW2-Style Player";
showEnergyBar = false;

maxDamage = 100;

canJet = 0;
repairRate = (200/32);

cameramaxdist = 3;
cameraVerticalOffset = 1;
cameraHorizontalOffset = 0.8;
cameraTilt = 0.2;
maxfreelookangle = 2;

usesTacKnife = $Tacknife::SupportedPlayersOnly;
};

Code: [Select]
RTB_registerPref("Supported Players Only", "Tactical Knife", "$Tacknife::SupportedPlayersOnly", "bool", "Player_MW2", false, true, false, "");

package TacKnifeUse
{
   function Armor::onTrigger(%this, %player, %slot, %val)
   {
      if(%player.getMountedImage(0) !$= TacKnifeImage.getID() && %player.getDatablock().usesTacKnife == $Tacknife::SupportedPlayersOnly && %slot $= 4 && %val)
      {
         if(%player.lastKnife !$= "" && getSimTime() - %player.lastKnife < 1000)
         {
            return;
         }

if(%obj.isMounted())
return;

%player.oldItem = %player.getMountedImage(0);

%player.mountImage(TacKnifeImage, 0);
%player.lastKnife = getSimTime();
      }
      Parent::onTrigger(%this, %player, %slot, %val);
   }
};   
ActivatePackage(TacKnifeUse);
Just tested it, works. Sorry for page stretch :3 Also, the animation could be faster for how much damage it deals..
« Last Edit: February 05, 2011, 07:54:36 PM by Zloff »

the animation could be faster for how much damage it deals..
This
« Last Edit: February 05, 2011, 08:20:11 PM by Nethog »


as seen on tv? when
On that one show where that mean person stabs that other guy

as seen on tv? when

Call of duty is played on TVs, with the exception of computer monitors.


Muahaha I had exclusive access to this.
Then Rykuta released it :c

dont like it sorry rykuta :(


This + Silenced Pistol = Something you would see out of James Bond. DL'd