Weapon damage
#1

I'm struggling with math and script.. how could the code look like to detect how much armour was taken from player on gun hit?

so like.. it will store that hit to variable and there will be like msg "x amount of armour was taken with gun shot"
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage

witch bodypart has been hit -> if has armour -> if they have, take amount of armour instead of health

also, you can make variable to set weapon damages and if you want even more specific you can make another one - also, if you are not lazy you could add distance of the shot and make even more accurate damage amount. lol easy.

if you are new at scripting (even you shouldn't be by looking at your profile) https://sampforum.blast.hk/showthread.php?tid=330005
it's not the best tut, but you could get idea of how to make your own one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)