Skip to content

Weapon Config

Jakl edited this page Jun 23, 2021 · 11 revisions

Basics

When war does not find a weapons.yml, it will create one from scratch with 3 example weapons.

Configuration values:

Config Value Datatype Description Notes
rate Decimal How many ticks need to pass between each shot -
power Decimal Changes the velocity and also bulletdrop -
spread Decimal Defines inaccuracy lower = more accurate
sneakSpread Decimal Defines the spread when the player is sneaking -
sprintSpread Decimal Defines the spread when the player is sprinting -
additionalJumpSpread Decimal Defines the amount of spread which is added when the player is jumping -
scopeSpread Decimal Factor for weapon accuracy when the player is scoped in 10 -> 10 times more accurate
damage Decimal Defines the damage dealt to the enemies -
headshotDamage Decimal Defines the damage a headshot deals to the enemies -
knockback Integer Defines the knockback the target will experience -
pierceLevel 0-127 Defines how many bodies the bullet can go through 1 -> Will go through up to one enemy and might hit someone behind them
projectileCount Integer Defines how many bullets are fired per shot -
rapid Boolean Wether or not the weapon is automatic Only Bows/Crossbows can be NON-rapid and work correctly
scope Boolean Wether or not the weapon has a scope Left-Click
sound SoundEffect Defines the sound a weapon will produce -
bullet String Defines the Material-Type a weapon will look for as ammo Only checks if said string is included in a Material -> "ARROW" also includes "TIPPED_ARROW"

Clone this wiki locally