The 'flux_player' player class, which Flux assigns to every player. It derives from the
'player_default' class of Garry's Mod and passes the callbacks of the player class on to
Flux hooks: setting up the data tables runs PlayerSetupDataTables, and the loadout runs
PostPlayerLoadout with the default loadout of the class, the fists. It also picks the
hands model that matches the model of the player.
Summary
Methods
GetHandsModel()shared
Determines which hands model to use for the player's current model.
Loadout()shared
Runs the 'PostPlayerLoadout' hook with the default loadout of the player class.
Draws the hands of the local player after the view model has been drawn.
SetupDataTables()shared
Sets up the 'Initialized' data table variable of the player and runs the 'PlayerSetupDataTables' hook.
Methods
Determines which hands model to use for the player's current model.
Returns
- Map hands info with the model, skin and body keys
Runs the 'PostPlayerLoadout' hook with the default loadout of the player class.
Draws the hands of the local player after the view model has been drawn.
Parameters
- _viewmodel Entity
- weapon Weapon
Sets up the 'Initialized' data table variable of the player and runs the 'PlayerSetupDataTables' hook.