DSprtn / GTFO_VR_Plugin

A plugin to add full roomscale Virtual Reality support to your favorite game!
MIT License
143 stars 13 forks source link

Fix R5 gun sights ( Accrat ND6 Heavy SMG ) #49

Closed Nordskog closed 1 year ago

Nordskog commented 1 year ago

What

Fixes the sight of Accrat ND6 Heavy SMG

In addition to the sight being messed up as usual, the gun has animations that incorrectly rotate weapon_animation_ref containing the muzzle align, resulting in the sight not aligning with the laser and fired bullets.

nd6_broken_sight

How

ALTERNATIVE_PROJECTION_MODE keyword enabled on material as usual, material parameters tweaked to make it look right.

Muzzle align was moved to a container with the inverse rotation of weapon_animation_ref to realign the muzzle, and then moved out of weapon_animation_ref so it won't be affected by the animation moving it around. This task is performed once in a new hook hooking BulletWeapon.SetupArchetype, chosen because everything seems to be set up at that point.

Gtfo Nd6.webm

DSprtn commented 1 year ago

Noice!