WeaponMechanics / MechanicsMain

A New Age of Weapons in Minecraft.
https://www.spigotmc.org/resources/WeaponMechanics.99913/
MIT License
79 stars 27 forks source link

OnFire ModelChange Event #47

Closed SuperTNT20 closed 2 years ago

SuperTNT20 commented 2 years ago

Description

This could be enabled or a disabled feature just want to point that out. When firing the weapon if enabled by adding the "OnFire" prefix to the skins, the model of the gun will change, for example in this case a we use a muzzleflash texture. Same model but with a texture of fire to simulate a muzzle fire in front of it.

Pros: You can get creative by making guns glow when firing or have barrels glow red or like in my case muzzle flashes.

Cons: It may remove the possibility to make skins for a gun given that you would have to make separate textures for each skin when the gun shoots instead it would assign a default skin when shooting but you have lets say a blue skinned gun. By itself its a blue gun, when I fire I get a black skinned gun with muzzle texture but resorts back to being blue when not shooting.

Sounds good on paper but may be poorly executed? let me know your thoughts! SuperCSS20#1776

Configuration

Skin:
    Default:
      Custom_Model_Data: 1
    Scope:
      Custom_Model_Data: 2
    OnFire:
      Custom_Model_data: 3
    OnFireScope:
      Custom_Model_data: 4
CJCrafter commented 2 years ago

As cool as this could look, it would only possibly work with fully automatic guns. This is because the weapon will "bob" up and down a little bit whenever you change the skins (This happens due to Minecraft 1.9's pvp cooldown system).

DeeCaaD commented 2 years ago

Sorry, this will only be supported via particles/light in WeaponMechanicsCosmetics due to this would cause too much weapon bobbing