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-06-2015, 03:07 AM #2
itsSorrow
In my man cave
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


a knife is an instant kill...
09-06-2015, 03:09 AM #3
HiddenHour
I defeated!
Originally posted by GentleSlugger View Post
a knife is an instant kill...


If the player's health is 800 it would take multiple hits. He wants it so that if the player gets knifed, it would deal more than 800 points of damage.
09-06-2015, 03:11 AM #4
itsSorrow
In my man cave
Originally posted by TheHiddenHour View Post
If the player's health is 800 it would take multiple hits. He wants it so that if the player gets knifed, it would deal more than 800 points of damage.


ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh okay
09-06-2015, 03:14 AM #5
HiddenHour
I defeated!
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


Anyways, I'm not sure on how I would do this myself. I would think that you would have to get the attacker when they do damage to someone, get their weapon, add a check to see if it was a knife, and then add 800+ to the inflicted damage if the check returns as true.
09-06-2015, 03:22 AM #6
yep thats how id do it but i dont know the function to use and layout to use it in
i found these 2 functions in managed code

getweaponmindamage(weapon);
getweaponmaxdamage(weapon);

don't know how to use tho
09-06-2015, 03:24 AM #7
HiddenHour
I defeated!
Originally posted by OfficialCoolJay View Post
yep thats how id do it but i dont know the function to use and layout to use it in
i found these 2 functions in managed code

getweaponmindamage(weapon);
getweaponmaxdamage(weapon);

don't know how to use tho


Where exactly did you find those?
09-06-2015, 03:27 AM #8
itsSorrow
In my man cave
Originally posted by TheHiddenHour View Post
Where exactly did you find those?


managed code list part juan

The following user thanked itsSorrow for this useful post:

HiddenHour
09-06-2015, 03:31 AM #9
HiddenHour
I defeated!
Originally posted by GentleSlugger View Post
managed code list part juan


Interesting. I did a search in the decompiled dump can couldn't find anything. I assume that these only get the values and I haven't seen a function to set it, they would be useless in this situation anyways.
09-06-2015, 03:34 AM #10
itsSorrow
In my man cave
Originally posted by TheHiddenHour View Post
Interesting. I did a search in the decompiled dump can couldn't find anything. I assume that these only get the values and I haven't seen a function to set it, they would be useless in this situation anyways.


Yeah. Pretty much

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo