Skip to content

Debugging

Jared Taylor edited this page Mar 17, 2025 · 6 revisions

CVars

Important

Debugging the outcome of a HitReact generally involves using CVars to see what is going on under the hood

Debug Strings

p.HitReact.Debug.Result

Draw debug strings when hit reactions are applied or rejected. Does not inform when rejecting due to blacklist or cooldown or a few other scenarios where it is unlikely to be helpful.

0: Disable, 1: Enable, 2: Enable except for dedicated servers, 3: Enable local player only

p.HitReact.Debug.BlendWeights

Draw debug string showing the value of each currently simulated physics blend

0: Disable, 1: Enable, 2: Enable except for dedicated servers, 3: Enable local player only

p.HitReact.Debug.BoneWeights

Draw debug string showing the value of each currently simulated bone

0: Disable, 1: Enable, 2: Enable except for dedicated servers, 3: Enable local player only

p.HitReact.Debug.Count

Draw debug string showing the number of hit reacts currently in effect

0: Disable, 1: Enable, 2: Enable except for dedicated servers, 3: Enable local player only

Debug Shapes

p.HitReact.Draw

Optionally draw debug shapes when hit reactions are applied. Green for Linear. Yellow for Angular. Blue for Radial

0: Disable, 1: Enable

p.HitReact.Draw.RadialScale

Scale the radial radius when drawing the shape

Takes a float value. Default 0.05f

System

p.HitReact.Disabled

If true, disable hit react globally.

0: Do nothing, 1: Disable hit react

Clone this wiki locally