UE5 Lyra | Weapon modules system demonstration
This is what goes into my weapon module system: 1) Each module can add some Gameplay abilities. 2) The module is an Actor and can perform some logic of its own. 3) The module can be added or removed during the game (even if the weapon is in the player's hand). 4) The module has gameplay tags, which can be set values or change them during the game through blueprints (like inventory items). 5) It is possible to add a store module so that the weapon uses it, instead of the standard system with "GameplayTag_MagazineAmmo". For this also added a new class Gameplay ability cost, which allows you to shoot using the ammo module of the magazine. 6) In combination with InventoryAddon you can take a module from the inventory and install it to the weapon (the item will be removed). You can also do the opposite, removing the module and adding the item to the inventory. Perhaps will be added in the next version: 1) Module skins(not likely, but who knows). 2) Underbarrel grenade launcher (I think it is feasible now). 3) Influence of modules on the characteristics of the weapon (so far not even thought about how to do it, but the thing is quite necessary). Вот что входит в мою систему модулей оружия: 1) Каждый модуль может добавлять какие-то свои Gameplay abilities. 2) Модуль является Актором и может выполнять какую-то свою логику. 3) Модуль может быть добавлен или удалён во время игры(даже если оружие у игрока в руках). 4) Модуль имеет геймплейные тэги, которым можно установить значения или менять их во время игры через блупринты(как у предметов инвентаря). 5) Есть возможность добавления модуля магазина, чтобы оружие использовало его, вместо стандартной системы с "GameplayTag_MagazineAmmo". Для этого так же был добавлен новый класс Gameplay ability cost, который позволяет стрелять, используя боезапас модуля магазина. 6) В комбинации с InventoryAddon можно взять модуль из инвентаря и установить его на оружие(предмет при этом удалится). Так же можно сделать наоборот, удалив модуль и добавив предмет в инвентарь. Возможно будет добавлено в следующей версии: 1) Скины модулей(мало вероятно, но кто знает). 2) Подствольный гранатомёт(думаю, что это реализуемо уже сейчас). 3) Влияние модулей на характеристики оружия(пока что даже не думал о том, как это сделать, но вещь достаточно нужная).
Download
0 formatsNo download links available.