Spread
Spread lets you control the randomness in the direction after shooting. In general, you don't want bullets to fly perfectly straight, you want some random angle. Video Games all handle this differently, but in general, you should make your first shot fairly accurate, and increase spread over time.
Spread:
Spread_Image:
Name: <path>
Field_Of_View_Width: <degrees>
Field_Of_View_Height: <degrees>
Base_Spread: <base spread>
Modify_Spread_When:
Zooming: <amount> or <amount>%
Sneaking: <amount> or <amount>%
Standing: <amount> or <amount>%
Walking: <amount> or <amount>%
Riding: <amount> or <amount>%
Sprinting: <amount> or <amount>%
Dual_Wielding: <amount> or <amount>%
Swimming: <amount> or <amount>%
In_Midair: <amount> or <amount>%
Gliding: <amount> or <amount>%
Changing_Spread:
Starting_Amount: <amount>
Reset_Time: <ticks>
Increase_Change_When:
Always: <amount> or <amount>%
Zooming: <amount> or <amount>%
Sneaking: <amount> or <amount>%
Standing: <amount> or <amount>%
Walking: <amount> or <amount>%
Riding: <amount> or <amount>%
Sprinting: <amount> or <amount>%
Dual_Wielding: <amount> or <amount>%
Swimming: <amount> or <amount>%
In_Midair: <amount> or <amount>%
Gliding: <amount> or <amount>%
Bounds:
Reset_After_Reaching_Bound: <true/false>
Minimum: <minimum spread>
Maximum: <maximum spread>Spread_Image
Spread images are .png files in the your server -> plugins -> WeaponMechanics -> spread_patterns folder. You can use this feature along with other spread features to accurately replicate spread from video games.
NameThe name of the image file (For example,
"circle.png").
Field_Of_View_WidthThe "maximum angle" of the image.
If you set this to
45.0, then the pixels on the edge of the image will be at a 45 degree angle.Defaults to
45.0.
Field_Of_View_HeightSame as
Field_Of_View_Width, but for the vertical angle instead.
Base_Spread
The randomness applied to all shots. Applied both vertically, and horizontally.
Modify_Spread_When
Modifies the amount of spread based on what the player is doing. For example, when the player is scoping, you probably want to reduce spread.
Zooming-> when scoping with the weaponSneaking-> When the player is holding shiftStanding-> When the shooter is not movingWalking-> When the shooter is movingRiding-> When the shooter is riding an entitySprinting-> When the player is sprintingDual_Wielding-> When the shooter has weapons in both handsSwimming-> When the shooter is in waterIn_Midair-> When the shooter is in the airGliding-> When the shooter is gliding using an elytra
For example:
Modify_Spread_When:
Zooming: -5 # Increase accuracy when scoped
Sneaking: -2
Walking: 1.5
Riding: 3.0
Sprinting: 2.5
Swimming: 1.5
In_Midair: 4
Gliding: 5Changing_Spread
Changes the spread after every consecutive shot. This can be used to make guns inaccurate if you spam.
Starting_AmountThe base change amount.
If you want the first shot to be accurate, use
0.
Reset_TimeThe time, in ticks, it takes to reset spread back to
Starting_Amount.The timer resets after every shot.
Increase_Change_WhenThis works just like Modify_Spread_When
Always-> Every shot+ all options from Modify_Spread_When
BoundsDefines the minimum and maximum spreads.
Reset_After_Reach_BoundsUse
trueto reset back toStarting_AmountUse
falseso the spread stays high for people spamming the gun.
MinimumThe lowest spread value allowed.
MaximumThe highest spread value allowed.
Last updated