13,600 Commits over 2,710 Days - 0.21cph!
Make all FirstPersonSpectatorMode variables private
Added LocalPlayer.SpectatePlayer that will return the player being spectated and null otherwise, this should be used when there is specific behaviour that is required when in spectate mode (not in regular gameplay)
Remove some redundant spectator checks
Simplify access to first person spectator state, remove IsFirstPersonSpectating and IsLocalPlayerSpectateAware
Check against the actual values instead (FirstPersonSpectatorMode.FirstPersonSpectatePlayer and LocalPlayer.EntitySpectateAware
Rework relative midi knob bindings
▌▆▉▄▋▅▍ ▆▍▆ ▅▋▍▊▅▉▇▉▇ ▆▋ ▌▍▊ ▇▊▄▍▇▌█ ▅▊▆▌ ▍▇▍ ▋ ▊█▊▅▆ ▋█▊▅ ▍▍▋▊█▄▅▄▆ ▌▋▅▄▍
▍▅▌▄▅▊▋▅ ▆▇▋▋▋▅▊▊ ▌▍▍▌▍▇▄▋▊ ▊▅▌▊ █▆▊▉█▊▄█▋▆ ▍ █▌▋█▍▋▆
▇▇██▇ █▉▋▉▅▍█ ▌▄▄ ▊▄▊▆▄▇▅█
Remove some debug stuff I left in
Fixed vm getting orphaned when entering debug cam
Fixed event NRE when spectating in a demo
Relative midi knob bindings are now applied via midiconvar.BindKnobRelative (eg. midiconvar.BindKnobRelative 1 1 dof_focus_dist 0.5)
Added a skin redirect editor (Tools/Skins/New redirect skin) that creates relevant prefab variants and makes standard changes required to get the redirect working (item names, pickup, repair, shortnames, etc)
Fixed crossbow vm loaded state
Remove all client side mounted references for instruments
Better spectate entity name
Potential NRE fix in LateClientCycle
▆▅▌▄▋ ▋ █▍▊▌▇▋▅ ▇▇ ▅▇▌ ▍▋▍▊ ▆▇▆▅▄▇▄▋▍ ▍▊▅▊ ▌ ▉▆▋█ ▉▄ ▇▊▇▍▌▊▍ ▆▋▋▆ ▉▆▊ ▌▉▌▉▋ ▅▍▍▌ ▇▄▄▊ █▊▅▅█▅▌▆▉▄▆▇ ▇▇ ▋▍▅ ▊▄ ▌▄▍
Add stat for a player shredding a car
Add stat for hands won in poker
Fixed team UI not updating when spectated player leaves a team
Fixed guns not showing the correct ammo count when spectating
Hit marker should now play when the player being spectated gets a headshot
Merge from FirstPersonSpectate
Fixed metabolism, team UI, hot, cold, water and directional damage overlays not working in spectator mode
Added ClientRPCPlayerSpectatorAware which is the same as ClientRPCPlayer but also sends the rpc to the spectator client
▌█▆▋ ▋ ▅▆▅▋▋█▇ ▍█ █▊▅ ▆▄▊▅▇▉▉ ▍▉█▌ ▄▍▌▋█▊ ▌█▋▇ ▉▆▍▋▆▅▍ ▌▍'▆ ▋▉▉▍ ▉▇ ▌ █▌▊▋▅ ▋▇▄▌▍▊▌▇ ▉▍▌
▋▊▄ █▄▍▉▅ ▄▉▄▊▌▆▆▌▊ ▉▌ ▇▇▌▉█ █▊▆▅█
Add support for relative midi knob bindings
When enabled takes the delta of the knob movement and increases/decreases the assigned convar instead of mapping it in a 0-1 range
The minimum value of the binding is used as the speed multiplier
Can be enabled when adding a binding by adding true to the end of the binding (eg."midiconvar.bindknob 1 1 graphics.dof_focus_dist 0.1 0 true")
Will only work on float convars
Expose bear, boar and chicken population values in admin UI
Increased scroll speed of server info and convar lists
Update DryWetMidi plugin to fix .net version
Merge from FirstPersonSpectate
▍▍ ▅ ▇▆▅▍▉▍ ▉▄ ▅▊▊▇▆ ▊▆▇▆▋▍▍▉▌, ▄▆▌▊ ▆▉▅▄▅▌▋▉█▋ ▉▊▆ ▅▍▋█ ▉▆▊▆▅▉▋ ▉▆ ▄▄▊ ▉▆▌▅▌▋▍▌▄▉ ▋▊▋▆█▌ ▊█ ▋▍▌▇ (█▄ ▆█ ▄▍▇ ▉▌▌▊ ▍▌█▊█▇▇▍▌▇ ▍█▍ ▉▍▅▍ ▌▋)
Merge from FirstPersonSpectating
Fixed incorrect animation event handling while first person spectating
Merge from FirstPersonSpectate
Fixed scopes not opening their UI overlay when first person spectating
Player icon on map view now faces correct direction when first person spectating
Fixed nametag of player being spectated appearing when the spectated player looks down
Possible OnViewModeChanged NRE fix
Fixed player model appearing distorted when switching to debug cam while first person spectating
Fixed camera position lerping when first person spectating a player in a vehicle (still some rotation lerping happening, but not as bad)