Skip to content

Commit

Permalink
EB Velocity Bugfix (#3762)
Browse files Browse the repository at this point in the history
# About the pull request

Extended barrels are currently bugged, each time you recalculate
attachment stats, it gets +1 velocity.

This fixes that, no more infinitely building up bullet velocity.

# Explain why it's good for the game

Bug Bad

# Changelog

:cl: ghostsheet
fix: Fixed Extended Barrel bug of building up free bullet velocity.
/:cl:
  • Loading branch information
ghostsheet committed Jul 2, 2023
1 parent 8f49525 commit 51bbd78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/__DEFINES/weapon_stats.dm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define HUMAN_UNIVERSAL_DAMAGEMULT 1

#define RECOIL_BUILDUP_VIEWPUNCH_MULTIPLIER 0.1

#define BASE_VELOCITY_BONUS 0

#define PROJ_BASE_ACCURACY_MULT 0.01
#define PROJ_BASE_DAMAGE_MULT 0.01
Expand Down
1 change: 1 addition & 0 deletions code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@
damage_mult = BASE_BULLET_DAMAGE_MULT
damage_falloff_mult = DAMAGE_FALLOFF_TIER_10
damage_buildup_mult = DAMAGE_BUILDUP_TIER_1
velocity_add = BASE_VELOCITY_BONUS
recoil = RECOIL_OFF
recoil_unwielded = RECOIL_OFF
movement_onehanded_acc_penalty_mult = MOVEMENT_ACCURACY_PENALTY_MULT_TIER_1
Expand Down

0 comments on commit 51bbd78

Please sign in to comment.