Guns4d | The ultimate 3d gun mod.
Previous
Next

## Class `player_model_handler` ¶

player_model_handler

## defining the player model when holding a gun

each player model should have a "gun holding equivelant". There are numerous reasons for this first and foremost is that because Minetest is a [redacted mindless insults]. because of this you cannot unset bone offsets and return to normal animations. Bone offsets are needed for the arms to aim at the gun there's no simple way around this fact. Since every model is different custom behavior has to be defined for most.

player_model.construct(def)¶ |

## player_model_handler fields ¶

### Synopsis

Fields

offsets | fields.offsets

fields.offsets ¶

  fields.offsets