This script will allow you to modify the damage of the weapons, both the damage it causes to the head, body and arms/legs.
Default damage of weapons:
- rifle: head: 100 body: 49 arms/legs: 33
- smg: head: 75 body: 29 arms/legs: 18
- shotgun: head: 37 body: 27 arms/legs: 16
Commands:
/riflevalue <value head> <value body> <value arms/legs>
/smgvalue <value head> <value body> <value arms/legs>
/shotgunvalue <value head> <value body> <value arms/legs>
/debug
The commands /riflevalue, /smgvalue and /shotgunvalue will have 3 parameters, in <value head> you must put the damage you want the weapon to do in the head, in <value body> you must put the damage you want the weapon to do in the body and in <value arms/legs> you must put the damage you want the weapon to do on arms/legs.
When you put the command without passing any parameters you will receive 2 messages saying that you must pass the values in the 3 parameters and the current damage that the weapon has, for example in the rifle:
/riflevalue
You need to type /riflevalue <value head> <value body> <value arms/legs>
Current RIFLE damage: HEAD: 100 BODY: 49 ARMS/LEGS: 33
If you only want to change the damage of the head, you must only pass the damage in <value head>, the other parameters will automatically take the value that the weapon currently has.
/riflevalue 50
You changed the RIFLE damage by: HEAD: 50 BODY: 49 ARMS/LEGS: 33
in case you want to change only the damage of the body, in <value head> you should pass the value 0 and then put in <value body> the value you want, it will no longer be necessary to pass the value of <value arms/legs> since it will automatically take the value it currently has in arms/legs.
/riflevalue 0 20
You changed the RIFLE damage by: HEAD: 50 BODY: 20 ARMS/LEGS: 33
In case you want to just change the damage of <value arms/legs> you must pass both in <value head> and <value body> the value 0, and in <value arms/legs> you must pass the value you want to put.
/riflevalue 0 0 5
You changed the RIFLE damage by: HEAD: 50 BODY: 20 ARMS/LEGS: 5
(The 0 is used to tell the script "I'm not going to pass any value on you, so you'll take the damage that the weapon currently has.")
To change all the values just put the damage in <value head> <value body> <value arms/legs>
/riflevalue 90 50 10
You changed the RIFLE damage by: HEAD: 90 BODY: 50 ARMS/LEGS: 10
The same is for /smgvalue and /shotgunvalue
If you want to reset the damage of the weapons to the default value, you should only put /debug command.
In this video you can see a small demonstration:
In the case of the shotgun, each shot have 8 bullets, therefore each of those 8 bullets will take the value you put, in the video in /shotgunvalue I put 1 in <head value> therefore 8 bullets in the head is equal to -8HP.
thanks.
changevalue.py (4.99 KB)