Weapon lag
Turning gives the first-person weapon root a brief offset from mouse input. Spring and damping return it to the authored holding position without moving the camera.
THE MAN I INVENTED / Lead Programmer
First-person sci-fi action survival · USC MFA thesis
Explore implementation and demos by engineering responsibility. Footage and captures show their recorded versions.
Shared animation instances provide speed, direction and airborne state. Templates arrange pose flow; role and weapon children bind their own skeletons and clips.
Example · Maintenance Worker body and first-person AnimBPs inherit shared templates. Switching guns does not require copying the role’s whole locomotion graph.
The arms have their own AnimInstance. The host routes the weapon layer and common view offsets; the weapon layer supplies holding, movement and jump poses.
Example · The Repair Gun first-person AnimBP inherits the firearm template and fills in its clips; equipping links its weapon layer.
The full body keeps its own leg locomotion. Before output, its AnimBP copies the arms’ local bone pose and blends it above spine_01.
Example · After turning or switching guns, the shadow keeps body locomotion below the waist while its weapon upper body matches the player view.
Body, first-person host and firearm layer each have templates. Templates hold state machines or layer routing without binding one role’s skeleton; child AnimBPs override animation assets.
Example · TABP_FirstPersonFirearmBase defines Idle / Move / Jump flow; ABP_RepairGun_FirstPerson fills its Repair Gun clips through Parent Asset Overrides.
ALI_WeaponAnim defines aim and upper-body layer entry points. Equipment supplies a layer class implementing the interface; equip and unequip link or unlink it without hardcoding every gun in the role graph.
Example · Repair Gun and Explosion Gun have separate first-person layers. Switching equipment replaces the current layer while the host calls the same interface.
Turning gives the first-person weapon root a brief offset from mouse input. Spring and damping return it to the authored holding position without moving the camera.
Movement direction drives lean and pitch bone adjustments in the AnimBP. Sprinting interpolates them faster and lowers the arms and weapon into a running pose.
Watch for: Watch the weapon shift and settle while turning, then the arm and weapon pose while sprinting.