WeaponMechanics / WeaponMechanicsCosmeticsWiki

Wiki for the WeaponMechanicsCosmetics plugin
6 stars 0 forks source link

Crossbow model #8

Closed MelonHell closed 1 year ago

MelonHell commented 2 years ago

Description

The crossbow has a special model in the hands, ideal for weapons. If you specify Type: "CROSSBOW" then this will not work correctly.

it would be nice to:

CJCrafter commented 2 years ago

apparently QualityArmory uses crossbows. We should test to see if they fixed bobbing

DeeCaaD commented 2 years ago

I need model where charged: 1 is positioned to same position as charged: 0 to test this and then I can maybe make it work. Model can be anything as long as its positioned at same spot

RollexGrief commented 1 year ago

I need model where charged: 1 is positioned to same position as charged: 0 to test this and then I can maybe make it work. Model can be anything as long as its positioned at same spot

Just use packet play_server_entity_equipment for fake crossbow with charged tag: Screenshot_9

RollexGrief commented 1 year ago

My visualization on Skript-Lang: Screenshot_3

RollexGrief commented 1 year ago

Preview: https://vimeo.com/753720642

DeeCaaD commented 1 year ago

Preview: https://vimeo.com/753720642

Ahh you mean like that, only visually send the crossbow for other players while player is actually holding something different. That would fix this for sure if it doesn't matter that the shooter can't see the animation

RollexGrief commented 1 year ago

Preview: https://vimeo.com/753720642

Ahh you mean like that, only visually send the crossbow for other players while player is actually holding something different. That would fix this for sure if it doesn't matter that the shooter can't see the animation

this can be corrected by simply sending both the observer and the shooter a packet

DeeCaaD commented 1 year ago

Preview: https://vimeo.com/753720642

Ahh you mean like that, only visually send the crossbow for other players while player is actually holding something different. That would fix this for sure if it doesn't matter that the shooter can't see the animation

this can be corrected by simply sending both the observer and the shooter a packet

If the shooter also uses crossbow, then this is required, because otherwise it swaps between those two states constantly

I need model where charged: 1 is positioned to same position as charged: 0 to test this and then I can maybe make it work. Model can be anything as long as its positioned at same spot
RollexGrief commented 1 year ago

Preview: https://vimeo.com/753720642

Ahh you mean like that, only visually send the crossbow for other players while player is actually holding something different. That would fix this for sure if it doesn't matter that the shooter can't see the animation

this can be corrected by simply sending both the observer and the shooter a packet

If the shooter also uses crossbow, then this is required, because otherwise it swaps between those two states constantly

I need model where charged: 1 is positioned to same position as charged: 0 to test this and then I can maybe make it work. Model can be anything as long as its positioned at same spot

Yes I know, but does anyone shoot from the third person

RollexGrief commented 1 year ago

So far, this is the only way to work and I want to help further develop the plugin with my knowledge and experience

DeeCaaD commented 1 year ago

Preview: https://vimeo.com/753720642

Ahh you mean like that, only visually send the crossbow for other players while player is actually holding something different. That would fix this for sure if it doesn't matter that the shooter can't see the animation

this can be corrected by simply sending both the observer and the shooter a packet

If the shooter also uses crossbow, then this is required, because otherwise it swaps between those two states constantly

I need model where charged: 1 is positioned to same position as charged: 0 to test this and then I can maybe make it work. Model can be anything as long as its positioned at same spot

Yes I know, but does anyone shoot from the third person

Yeah let's go with implementation which fakes the item in hand.

CJCrafter commented 1 year ago

Working on this soon since we are now using ProtocolLib in the base plugin

CJCrafter commented 1 year ago

Added