Jump to content

setWeaponProperty(x, "damage", "poor", y)


Gordon_G

Recommended Posts

I have a problem with this thing.

Well, when I try to change this property for weapons it's always different. Let's take an example :

If I do

setWeaponProperty("Deagle", "damage", "poor", 90)

It will deal 30 damage to the player. But, if I do

setWeaponProperty("Shotgun", "damage", "poor", 10)

It will deal 50 damage to the player.

I think it has something to do with default weapon's damage but, should I use

"onClientPlayerDamage"

instead, cancel the event and then apply the damage ? That's pretty fastidious.

Link to comment
1 hour ago, Gordon_G said:

I have a problem with this thing.

Well, when I try to change this property for weapons it's always different. Let's take an example :

If I do


setWeaponProperty("Deagle", "damage", "poor", 90)

It will deal 30 damage to the player. But, if I do


setWeaponProperty("Shotgun", "damage", "poor", 10)

It will deal 50 damage to the player.

I think it has something to do with default weapon's damage but, should I use


"onClientPlayerDamage"

instead, cancel the event and then apply the damage ? That's pretty fastidious.

 You can use it instead, but don't forgot to apply the distance between attacker and player ( Lack the damage whenever the distance become more far. )

  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...