Post: Damage Modifier Help
09-06-2015, 03:00 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); i had a look around but i couldnt find anything on this

is it possible to modifiy the damage on a particular weapon

for example
i have it so all player have a set health of 800
and i want the knife to be instant kill when u stab them
can i change the damage to 800?

i don't know if it works that way or not
thanks Smile
09-11-2015, 11:45 AM #29
Originally posted by ItzMatriix View Post
    
KnifeDamage()
{
self endon("death");
self endon("disconnect");
for(;Winky Winky
{
self waittill("damage", damage, attacker, direction, point, type, tagname, modelname, partname, weaponname);
if(isSubStr(attacker getCurrentWeapon(), "knife"))
{
self thread [[level.callbackPlayerDamage]]( self, self, 800, 8, "MOD_RIFLE_BULLET", attacker getCurrentWeapon(), (0,0,0), (0,0,0), "pelvis", 0, 0 );
}
wait 0.05;
}
}

call this from spawn


Legend thankyou heaps man!
09-11-2015, 11:41 PM #30
ItzMatriix
Are you high?
Originally posted by OfficialCoolJay View Post
Legend thankyou heaps man!

no problem
09-12-2015, 01:55 AM #31
Trefad
I defeated!
Isnt it this

thissuksass()
{
getweaponmaxdamage(weapon);
}

if its this
getweaponmindamage(weapon);
getweaponmaxdamage(weapon);
09-12-2015, 03:39 AM #32
itsSorrow
In my man cave
Originally posted by Trefad View Post
Isnt it this

thissuksass()
{
getweaponmaxdamage(weapon);
}

if its this
getweaponmindamage(weapon);
getweaponmaxdamage(weapon);


no...
09-12-2015, 03:49 AM #33
Trefad
I defeated!
ok...
09-12-2015, 03:50 AM #34
itsSorrow
In my man cave
Originally posted by Trefad View Post
ok...


good...
09-12-2015, 04:24 AM #35
Trefad
I defeated!
bad...
09-12-2015, 04:26 AM #36
itsSorrow
In my man cave
Originally posted by Trefad View Post
bad...


night...
09-12-2015, 04:38 AM #37
Trefad
I defeated!
day...

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo