You are viewing a potentially older version of this package. View all versions.
Hypick-BetterShotgun-1.4.7 icon

BetterShotgun

[v49] Improves the vanilla shotgun and its ammo, adding features such as infinite ammo, viewing the number of loaded ammo, selling in the store, spawning on moons and in gifts (Fully configurable)

Date uploaded 2 months ago
Version 1.4.7
Download link Hypick-BetterShotgun-1.4.7.zip
Downloads 58128
Dependency string Hypick-BetterShotgun-1.4.7

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
Sigurd-CSync-3.1.1 icon
Sigurd-CSync

Configuration file syncing library for BepInEx.

Preferred version: 3.1.1
Rune580-LethalCompany_InputUtils-0.7.1 icon
Rune580-LethalCompany_InputUtils

API/Library for creating Unity InputActions with in-game re-binding support. Provides an alternative UI that allows for supporting mods to have in-game re-bindable keybinds.

Preferred version: 0.7.1
Evaisa-LethalLib-0.14.3 icon
Evaisa-LethalLib

Personal modding tools for Lethal Company

Preferred version: 0.14.3

README

BetterShotgun

English

The mod should support custom moons (I haven't tested it)

Config

All available mod settings can be found in the config Hypick.BetterShotgun.cfg

Parameters marked as [Sync] are synchronized with the host

! If the Rarity parameter is enabled, the item will appear in gifts

MinValueScrap, MaxValueScrap: In the game, the value is scaled down, so it is calculated using the formula value * 100 / 40

Available settings in the config:

  • Shotgun
    • [Sync] Price (default = 700, disable = -1)
      • The cost of a shotgun in the store
    • [Sync] MinValueScrap (default = 40)
      • Minimum scrap cost
    • [Sync] MaxValueScrap (default = 70)
      • Maximum scrap cost
    • [Sync] Rarity (default = -1, disable = -1)
      • The rarity of the appearance of a shotgun on the moons (higher = more often)
    • [Sync] [BETA] Weight (default = 16)
      • Scrap weight
    • [Sync] MaxDiscount (default = 80, vanilla = 80)
      • Maximum discount in the store
  • Shotgun Tweaks
    • [Sync] MisfireOff (default = true, vanilla = false)
      • Disables the misfire
    • [Sync] InfiniteAmmo (default = false)
      • Endless ammo
    • ShowAmmoCount (default = true)
      • The number of loaded ammo will be displayed in the tooltip
    • [BETA] AmmoCheckAnimation (default = false)
      • Adds ammo check animation to the reload button
    • ReloadKeybind (default = false, vanilla = E)
      • Changes the reload keybind to the one you set
    • [Sync] ReloadNoLimit (default = false)
      • Allows you to infinitely reload the shotgun
    • [Sync] SkipReloadAnimation (default = false)
      • Skips the reload animation
    • [Sync] DisableFriendlyFire (default = false)
      • Turns off friendly fire
  • Shell
    • [Sync] Price (default: 50, disable = -1)
      • The cost of the cartridge in the store
    • [Sync] MinValueScrap (default = 15)
      • Minimum scrap cost
    • [Sync] MaxValueScrap (default = 25)
      • Maximum scrap cost
    • [Sync] Rarity (default = 2, disable = -1)
      • The rarity of the appearance of cartridges on the moons (higher = more often)
    • [Sync] MaxDiscount (default = 80, vanilla = 80)
      • Maximum discount in the store
Русский

Мод должен поддерживать кастомные луны (я не тестировал)

Конфиг

Все доступные настройки мода можно найти в конфиге Hypick.BetterShotgun.cfg

Параметры, помеченные как [Sync], синхронизируются с хостом

! Если параметр Rarity включен, то предмет будет появляться еще в подарах

MinValueScrap, MaxValueScrap: В игре значение лома масштабируется в меньшую сторону, поэтому высчитывается по формуле value * 100 / 40

Доступные настройки в конфиге:

  • Shotgun
    • [Sync] Price (по умолчанию = 700, отключить = -1)
      • Стоимость дробовика в магазине
    • [Sync] MinValueScrap (по умолчанию = 40)
      • Минимальная стоимость лома
    • [Sync] MaxValueScrap (по умолчанию = 70)
      • Максимальная стоимость лома
    • [Sync] Rarity (по умолчанию = -1, отключить = -1)
      • Редкость появления дробовика на лунах (выше = чаще)
    • [Sync] [BETA] Weight (по умолчанию = 16)
      • Вес лома
    • MaxDiscount (по умолчанию = 80, ванилла = 80)
      • Максимальная скидка в магазине
  • Shotgun Tweaks
    • [Sync] MisfireOff (по умолчанию = true, ванилла = false)
      • Отключает осечку
    • [Sync] InfiniteAmmo (по умолчанию = false)
      • Бесконечные патроны
    • ShowAmmoCount (по умолчанию = true)
      • Во всплывающей подсказке будет отображаться количество заряженных патронов
    • [BETA] AmmoCheckAnimation (по умолчанию = false)
      • Добавляет анимацию проверки патронов на кнопку перезарядки
    • ReloadKeybind (по умолчанию = false, ванилла = E)
      • Меняет клавишу перезарядки на установленную вами
    • [Sync] ReloadNoLimit (по умолчанию = false)
      • Позволяет бесконечно перезаряжать дробовик
    • [Sync] SkipReloadAnimation (по умолчанию = false)
      • Пропускает анимацию перезарядки
    • [Sync] DisableFriendlyFire (по умолчанию = false)
      • Отключает огонь по своим
  • Shell
    • [Sync] Price (по умолчанию: 50, отключить = -1)
      • Стоимость патрона в магазине
    • [Sync] MinValueScrap (по умолчанию = 15)
      • Минимальная стоимость найденного на луне патрона
    • [Sync] MaxValueScrap (по умолчанию = 25)
      • Максимальная стоимость найденного на луне патрона
    • [Sync] Rarity (по умолчанию = 2, отключить = -1)
      • Редкость появления патронов на лунах (выше = чаще)
    • [Sync] MaxDiscount (default = 80, vanilla = 80)
      • Максимальная скидка в магазине

Known issues

  • The price, weight, etc. of the item are not synchronized between the host and the clients

Recommended Mods

  • NutcrackerFixes

Contributing

If you have an idea for a mod or find a problem, you can open an issue or pull request on Github.

License

This project is licensed under the MIT License.

Latest version

1.4.7 (2024-03-20)

  • Improved animation checking shells (actually LCAmmoCheck_OLD).
  • InfiniteAmmo (#35):
    • Changed the number of shells from 2147483647 to 3 so that the shotgun has two rounds if InfiniteAmmo mode is disabled.
    • Now, when checking the shells in the shotgun from the very beginning, it will be filled with two shells, not one.
  • The ReservedWeaponSlot check has been removed and the name of the shells has been replaced with "Shells".

CHANGELOG

Changelog

1.4.7 (2024-03-20)

Bug Fixes

  • change compatibility with ReservedWeaponSlot (#38) (98efc50)

Miscellaneous Chores

1.4.6 (2024-03-16)

Bug Fixes

  • Fixed a problem with extracting values from the config (45bd1da)

Miscellaneous Chores

  • Changed the setup of the ReloadKeybind key and added an error exception (#30) (8bedb4f)
  • Bump LethalLib from 1.4.2 to 1.4.3
  • Bump LethalCompany_InputUtils from 0.6.3 to 0.7.1

1.4.5 (2024-03-13)

Bug Fixes

  • Fixed crash due to ReloadKeybind (#30) (f18f53f)

Miscellaneous Chores

  • Synchronization has been replaced with CSync, since the last synchronization did not work (142cf52)

1.4.4 (2024-03-04)

Miscellaneous Chores

  • Added configuration synchronization between clients and host (#28) (12a50d4)
  • Removed the check for ReservedItemSlotCore in ReloadKeybind (b292bae)
  • Fixed compatibility with ReservedWeaponSlot: the name of the cartridges automatically changes to " Ammo" (#22) (6a6d347)

1.4.3 (2024-02-28)

Miscellaneous Chores

  • Added check for the presence of ReservedItemSlotCore (17f556a)

1.4.2 (2024-02-25)

Miscellaneous Chores

  • AmmoCheckAnimation changed from "true" to "false" by default
  • Changed the name of shotgun ammo in the store from "Ammo" to "Shell"
  • Added more logging

1.4.1 (2024-02-18)

Bug Fixes

  • Fixed an issue with key bindings not changing (#17)

1.4.0 (2024-02-17)

Miscellaneous Chores

  • The structure of the configuration file has been changed once again
  • Added LethalCompany_InputUtils to dependencies to improve the key binding change function

Features

  • DisableFriendlyFire (default = false)
    • Turns off friendly fire

Bug Fixes

  • Fixed issue #15 (it seems)
  • Fixed an issue where when one of the players reloads a shotgun, ShowAmmoCount would incorrectly display the number of ammo for all shotguns

1.3.0 (2024-02-15)

Miscellaneous Chores

  • Changed the priority of ShootGunPrefix (by @JuanCalle1606 in #13), thereby making it more compatible with mods like HexiBetterShotgun
  • Changed the calculation of MinValueScrap and MaxValueScrap (now using the formula value * 100 / 40)
  • The structure of the configuration file has been slightly changed

Features

  • [BETA] Weight (default = 16) (shotgun only)
    • Scrap weight
  • MaxDiscount (default = 80, vanilla = 80)
    • Maximum discount in the store

1.2.0 (2024-02-13)

Miscellaneous Chores

  • Finally fixed AmmoCheckAnimation (most likely :))
  • Removed the shotgun loading sound when viewing ammo

Features

  • ReloadNoLimit (default = false)
    • Allows you to endlessly reload your shotgun
  • SkipReloadAnimation (default = false)
    • Skips reload animation

1.1.1 (2024-02-13)

Bug Fixes (d78ef12)

  • Fixed an issue where AmmoCheckAnimation still worked even if it was disabled in the config (#7)
  • Fixed an issue where the shotgun would misfire when falling to the ground with MisfireOff enabled in the config (#8)

1.1.0 (2024-02-12)

Features

  • MisfireOff (default = true, vanilla = false)
    • Disables misfire
  • InfiniteAmmo (default = false)
    • Endless ammo
  • ShowAmmoCount (default = true)
    • The number of cartridges in the shotgun will be displayed at the top right
  • [BETA] AmmoCheckAnimation
    • Enables animation of checking cartridges on the reload button
  • ReloadKeybind
    • Changes the reload key to the one you set

1.0.3 (2024-01-29)

Miscellaneous Chores

  • LethalLib 0.14.1 -> 0.14.2
  • Descriptions in the config have been corrected

1.0.2 (2024-01-29)

Miscellaneous Chores

  • LethalLib 0.13.2 -> 0.14.1
  • Minor changes to the code (f96f05b)

1.0.1 (2024-01-25)

Miscellaneous Chores

  • The default parameters in the config have been slightly changed
  • Added parameters for the cost of scrap metal on the moons in the config

1.0.0 (2024-01-22)

Miscellaneous Chores