Weapons Config
Explore the Master Config, the hub for essential settings that allow the resource to work.
Last updated
Was this helpful?
Explore the Master Config, the hub for essential settings that allow the resource to work.
Last updated
Was this helpful?
Each weapon in BetterFight Evolved can be individually configured with various parameters to control its behavior. Let's use the WEAPON_PISTOL as an example.
damageMultiplier
: Multiplies the base damage of the weapon. 1.00 means standard damage.
recoil
: Controls the vertical recoil of the weapon. Higher values mean more upward kick when firing.
rightLeftRecoil
: Controls the horizontal recoil. Higher values result in more side-to-side movement when firing.
vehicleRecoil
and vehicleRightLeftRecoil
: Similar to recoil
and rightLeftRecoil
, but specifically for when firing from vehicles.
inaccuracy
: Affects the spread of bullets. Higher values make the weapon less accurate.
overheatThreshold
: The point at which the weapon starts to overheat. Higher values allow more shots before overheating occurs.
degreesPerBullet
: How much the weapon's temperature increases per shot fired.
cooldownRate
: How quickly the weapon cools down when not firing.
jamPercentage
: The chance of the weapon jamming. Higher values make jamming more likely.
The components
section allows you to define how attachments affect the weapon's performance:
suppressor
: Configures the suppressor attachment.
hash
: The game's internal hash for the suppressor component.
temperatureMultiplier
: How the suppressor affects weapon heating. Values below 1.0 reduce heating.
recoilMultiplier
: How the suppressor affects recoil. Values below 1.0 reduce recoil.
grip
: Configures the grip attachment (if applicable).
hash
: The game's internal hash for the grip component. nil
if not applicable.
temperatureMultiplier
: How the grip affects weapon heating.
recoilMultiplier
: How the grip affects recoil.