notgoodusename / OsirisAndExtra

Other
128 stars 64 forks source link

Resolver Call #434

Open Ghost-dot98 opened 1 year ago

Ghost-dot98 commented 1 year ago

Where do i call main resolver functions? preupdate or postupdate? and also how should i setup playbackrates for resolver?

Ghost-dot98 commented 1 year ago

This is not really and issue its just question

notgoodusename commented 1 year ago

preupdate is called before the entity animstate is updated postupdate is called after the entity animstate is updated

I have no idea how you need to setup playbackrates for resolver, you can get the movement layer playbackrate like this player.layers[ANIMATION_LAYER_MOVEMENT].playbackRate or player.oldLayers[ANIMATION_LAYER_MOVEMENT].playbackRate oldLayers is 1 tick behind layers

JannesBonk commented 1 year ago

preupdate is called before the entity animstate is updated postupdate is called after the entity animstate is updated

I have no idea how you need to setup playbackrates for resolver, you can get the movement layer playbackrate like this player.layers[ANIMATION_LAYER_MOVEMENT].playbackRate or player.oldLayers[ANIMATION_LAYER_MOVEMENT].playbackRate oldLayers is 1 tick behind layers

u should fix hitbox shiftbacks when using exploits

Ghost-dot98 commented 1 year ago

preupdate is called before the entity animstate is updated postupdate is called after the entity animstate is updated

I have no idea how you need to setup playbackrates for resolver, you can get the movement layer playbackrate like this player.layers[ANIMATION_LAYER_MOVEMENT].playbackRate or player.oldLayers[ANIMATION_LAYER_MOVEMENT].playbackRate oldLayers is 1 tick behind layers

I get what are you saying but i need delta for resolver example: abs(player.layers[ANIMATION_LAYER_MOVEMENT].playbackRate - player.ResolverPlayBackRate.at(index)); you get what im saying?

voidzero666 commented 1 year ago

Playbackrate resolver is pretty useless on its own in the current live build of the game. I suggest you into other methods of resolving.