Page MenuHomeFeedback Tracker

Enabling "Show Triggers" in diag debug menu draws cylinder and sphere trigger too low
New, NormalPublic

Description

The reason for this is two-fold:

For cylinder triggers under DIAG builds, and sphere triggers under DIAG and DEVELOPER builds:
The pos argument passed to Trigger::DrawDebugShape is the bottom of the cylinder/sphere, not the center as expected by Debug::DrawCylinder and Debug::DrawSphere (bottom Y + half height).
The fix is to set pos[1] = pos[1] + (max[1] - min[1]) * 0.5 before passing to the draw functions.

In addition, it looks like the override CylinderTrigger::DrawDebugShape for DEVELOPER builds could be removed entirely, since Trigger::DrawDebugShape should take care of it anyway.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  • Go to any contaminated areas on the map, preferably above sea level, e.g. the Pavlovo military base contaminated areas on Chernarus.
  • Enable "Show Triggers" in the diag debug menu. The trigger debug shapes will be drawn too low, not representing the actual position of the contaminated zones.

Event Timeline

lava76 created this task.Tue, Dec 3, 1:00 AM