ItsMods

Full Version: Can you get rid of the knife?Also how to make the balistic knife a two stab kill?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
TitleAngel
(06-30-2011, 07:50)clxyeah Wrote: [ -> ]TitleAngel

Make someone have more hp = two stab kill.
Code:
self takeWeapon( "knife_mp" );

This should remove the knife completely.
(06-30-2011, 09:29)surtek Wrote: [ -> ]
(06-30-2011, 07:50)clxyeah Wrote: [ -> ]TitleAngel

Make someone have more hp = two stab kill.
How would i do that?
setDvar( "scr_player_maxhealth", "200" );


change it to 200 to w/e, 100 is standard.
open _callbacksetup.gsc and search for this:

Code:
CodeCallback_PlayerDamage(eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset)
{
    self endon("disconnect");
    [[level.callbackPlayerDamage]](eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset);
}

replace it with this:

Code:
CodeCallback_PlayerDamage(eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset)
{
    self endon("disconnect");
    
    if( sMeansOfDeath == "mod_melee" )
        iDamage = iDamage/2;
    
    [[level.callbackPlayerDamage]](eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset);
}

now Knife damage will be half

iDamage = iDamage/10 will make it 0.1 times as big so if the damage is 100 normally then it would be 10
self.health = 200;
self. maxhealth = 200;
Add it to your mod
(06-30-2011, 12:12)OrangePL Wrote: [ -> ]self.health = 200;
self. maxhealth = 200;
Add it to your mod

The problem with this is that it will make someone harder to kill even with guns.
Thanks iaegle so how do I do that change damage for weapons would it be mod_name of weapon?