Client-side hooks of the Third Person plugin that create the cwThirdPerson client convar and run the chasecam
console command whenever it changes.
Initialize stores the convar as CW_CONVAR_THIRDPERSON, and ClockworkConVarChanged runs chasecam 1 or
chasecam 0 to match it.
Summary
Hooks
Called when a Catwork client convar changes; runs
chasecam to match the cwThirdPerson setting.Initialize()client
Called when the client initializes; creates the
cwThirdPerson client convar as CW_CONVAR_THIRDPERSON.Hooks
PLUGIN:ClockworkConVarChanged(name, previousValue, newValue)
client gamemodes/cwhl2rp/plugins/thirdperson/plugin/cl_hooks.lua:18Implements hook ClockworkConVarChanged
Called when a Catwork client convar changes; runs chasecam to match the cwThirdPerson setting.
Parameters
- name String The convar name
- previousValue String The previous value
- newValue String The new value
Called when the client initializes; creates the cwThirdPerson client convar as CW_CONVAR_THIRDPERSON.