06-30-2011, 07:50
06-30-2011, 09:29
(06-30-2011, 07:50)clxyeah Wrote: [ -> ]Title
Make someone have more hp = two stab kill.
06-30-2011, 09:37
Code:
self takeWeapon( "knife_mp" );
This should remove the knife completely.
06-30-2011, 11:10
06-30-2011, 12:04
setDvar( "scr_player_maxhealth", "200" );
change it to 200 to w/e, 100 is standard.
change it to 200 to w/e, 100 is standard.
06-30-2011, 12:11
open _callbacksetup.gsc and search for this:
replace it with this:
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
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
06-30-2011, 12:12
self.health = 200;
self. maxhealth = 200;
Add it to your mod
self. maxhealth = 200;
Add it to your mod
06-30-2011, 12:14
(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.
06-30-2011, 12:39
Thanks iaegle so how do I do that change damage for weapons would it be mod_name of weapon?