Jump to content

Weapon Quality!


TheRock254

Recommended Posts

Posted

Hmm. Thank you but what is the "poor, std and pro" ?

setWeaponProperty(22, "poor", "weapon_range", 70) 
setWeaponProperty(22, "std", "weapon_range", 70) 
setWeaponProperty(22, "pro", "weapon_range", 70) 

and

what is the "accuracy" and how to use "accuracy, damage, move_speed, target_range"?

Can you give me example?

Posted (edited)

Poor, std (standard) and pro (professional) are weapon skill levels.

The property names are in pure English and there's not much someone can explain better.

Accuracy stands for how well the weapon can hit the target without large spread from the muzzle position.

Damage stands for how much the target receives health loss, which lowers the target's health, obviously.

Move speed stands for how fast you can move with the weapon equipped on you.

Target range stands for how how far you are able to aim an entity at.

You can use these and many other properties by simply changing the third argument of the setWeaponProperty function to whatever property you want to change.

The first argument is for the weapon ID, the second one is for which weapon skill you want to place the stat on, the fourth one is for the property value.

Edited by Guest
Posted
Poor, std (standard) and pro (professional) are weapon skill levels.

The property names are in pure English and there's not much someone can explain better.

Accuracy stands for how well the weapon can hit the target without large spread from the muzzle position.

Damage stands for how much the target receives health loss, which lowers the target's health, obviously.

Move speed stands for how fast you can move with the weapon equipped on you.

Target range stands for how how far you are able to shoot with the weapon.

You can use these and many other properties by simply changing the third argument of the setWeaponProperty function to whatever property you want to change.

The first argument is for the weapon ID, the second one is for which weapon skill you want to place the stat on, the fourth one is for the property value.

Whats the use for the "pro" "std" and "poor" weapon skil llevels?

Posted

I doubt you can set the fire speed.

Weapon range stands for how far the weapon is able to shoot bullets. Target range stands for how far you are able to aim an entity at.

Posted

You can change the Fire rate by changing the animation times (anim_loop_start, anim_loop_bullet_fire and anim_loop_stop). This is a hacky way, but the real "fire_rate" setting is get only in MTA 1.3.

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...