Change weapon damage
#1

I'm trying to change the default weapon damage, but it's not working:

http://pastebin.com/tz2pPJP5

I'd appreciate if anyone could help me out, but please bear with me since I began using PAWN yesterday.
Reply
#2

It doesn't work like that. All you're doing is setting a value to a variable which is then discarded. You would need to use OnPlayerTakeDamage, and set the player's health manually.
Reply
#3

Can you post an example changing the damage of the desert eagle? Cause all the examples that I've seen using health do not apply to the armour value.
Reply
#4

I have a tutorial you can check out in my signature about changing weapon damages with armour considered, although it's a bit old.
You can also use this include that has some more features aswell.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)