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-07-2015, 01:00 AM #20
itsSorrow
In my man cave
Originally posted by OfficialCoolJay View Post
how do i make a check for my knife_held_mp?


    
x thread [[level.callbackPlayerDamage]]( player, player, 800, 0, "MOD_PISTOL_BULLET", "knife_held_mp", (0,0,0), (0,0,0), "head", 0, 0 );
Last edited by itsSorrow ; 09-07-2015 at 02:50 AM.
09-07-2015, 02:28 AM #21
jwm614
NextGenUpdate Elite
Originally posted by OfficialCoolJay View Post
how do i make a check for my knife_held_mp?


    
if(self getCurrentWeapon() == "knife_held_mp")
{
self thread [[level.callbackPlayerDamage]](player, player, 800, 0, "MOD_MELEE", "knife_held_mp", (0, 0, 0), (0, 0, 0), "head", 0, 0);
}
09-07-2015, 02:30 AM #22
itsSorrow
In my man cave
Originally posted by jwm614 View Post
    
if(self getCurrentWeapon() == "knife_held_mp")
{
self thread [[level.callbackPlayerDamage]](player, player, 800, 0, "MOD_MELEE", "knife_held_mp", (0, 0, 0), (0, 0, 0), "head", 0, 0);
}


it was still fine before but yeah I guess
09-07-2015, 02:34 AM #23
jwm614
NextGenUpdate Elite
Originally posted by GentleSlugger View Post
it was still fine before but yeah I guess


that would of did nothing if u kno about gsc u would kno this he ask how to make a check for the knife that function does the damage an i posted that on his other thread

i would show use how to get the person doing the damage an the person reciving the damage but use can figure it out
Last edited by jwm614 ; 09-07-2015 at 02:37 AM.
09-07-2015, 02:43 AM #24
itsSorrow
In my man cave
Originally posted by jwm614 View Post
that would of did nothing if u kno about gsc u would kno this he ask how to make a check for the knife that function does the damage an i posted that on his other thread

i would show use how to get the person doing the damage an the person reciving the damage but use can figure it out


what?
09-07-2015, 05:05 AM #25
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by GentleSlugger View Post
what?


The code you posted wasn't a check but just applying the damage with a knife. The guy asked for how to do the check not how to call the function.
09-07-2015, 05:07 AM #26
itsSorrow
In my man cave
Originally posted by SyGnUs View Post
The code you posted wasn't a check but just applying the damage with a knife. The guy asked for how to do the check not how to call the function.


Ah thank you for clearing that up.
09-07-2015, 01:23 PM #27
ItzMatriix
Are you high?
this is 100% possible. ill write something up
09-07-2015, 01:34 PM #28
ItzMatriix
Are you high?
Originally posted by OfficialCoolJay View Post
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


    
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

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo