Visible Legs lets players see the body of their character when they look down in first person. It draws a clientside copy of the local player's model that follows their animation, with the head and the arms moved out of view. Nothing is drawn in observer mode, while the player is not drawn (as when they are vanished), in third person or while the player is dead.

Summary

Hooks

Removes the local player's legs model when the local player's model changes.
Draws the local player's legs model in first person, following their animation.

Methods

Creates the clientside legs model of the player, replacing the previous one, and stores it in client.legs.

Hooks

VisibleLegs:PlayerModelChanged(target, _new_model, _old_model)

client plugins/cl_visiblelegs.lua:68

Implements hook PlayerModelChanged

Removes the local player's legs model when the local player's model changes. It is recreated with the current model the next time the legs are rendered.

Parameters

  • target Player the player whose model has changed
  • _new_model String new model path
  • _old_model String previous model path

VisibleLegs:RenderScreenspaceEffects()

client plugins/cl_visiblelegs.lua:80

Draws the local player's legs model in first person, following their animation. Skipped while in observer mode, not drawn, in third person, dead or looking above the horizon.

Methods

VisibleLegs:spawn_legs(client)

client plugins/cl_visiblelegs.lua:130

Creates the clientside legs model of the player, replacing the previous one, and stores it in client.legs. The upper body bones are moved out of view.

Parameters

  • client Player normally the local player

Defined in