WeaponMechanics / WeaponMechanicsCosmeticsWiki

Wiki for the WeaponMechanicsCosmetics plugin
6 stars 0 forks source link

Off hand "Hand Model" + Skin #2

Closed CJCrafter closed 1 year ago

CJCrafter commented 2 years ago

Description

When a player is holding a weapon, a packet based (fake) item should be put in the player's offhand. This would be a model that could appear to be physically holding the weapon. The hand model should be able to use the WeaponMechanics Skin System which supports sprinting, reloading, etc.

We should also allow different color hands.

Paid for by: ASTRICK#1775

Configuration

We would have a folder called server > plugins >WeaponMechanicsCosmetics > Hands which has:

Hand_AK-47:
  Base_Item: <ItemSerializer> # this can be used to give the item a name/lore/whatever
  Skin: <SkinSerializer> # used WeaponMechanics skin to change based on sprint/reload/whatever

Then in the server > plugins > WeaponMechanics > weapons > assault_rifles > ak-47.yml file, we would have

AK-47:
  Cosmetics:
    Off_Hand_Hand: "Hand_AK-47"
CJCrafter commented 2 years ago

Before this can be implemented, we have to wait for the skins feature to be updated in WeaponMechanics and for the SQL stuff to be merged.

CJCrafter commented 2 years ago

Added basic skin support, working on fake items: 0a51a88

CJCrafter commented 1 year ago

For VR players, the off hand should be completely disabled. We can set a toggle for this in the config.yml

Disable_Hand_In_VR: <true/false>
CJCrafter commented 1 year ago

Implemented in 1.2.0.

Bugs:

CJCrafter commented 1 year ago

Need to disable feature in creative mode

CJCrafter commented 1 year ago

Completely implemented in v1.2.2