

RadiusDebug is a simple utility I use to see a visual representation of an Actor's radius in the world. This works on any Actor - not just monsters. Basically, if a thing could hold inventory, it will work.
Usage is super easy, and can be used with both DECORATE and ZScript! Here are examples for both of them.
DECORATE:
- Code: Select all • Expand view
// Just give RadiusDebugMe to enable RadiusDebug on an Actor.
// Take RadiusDebugMe away from it to disable it.
// Simple!
Actor TestZombieman : Zombieman replaces Zombieman
{
States
{
Spawn:
TNT1 A 0 NoDelay A_GiveInventory("RadiusDebugMe")
Goto Super::Spawn
}
}
ZScript:
- Code: Select all • Expand view
class TestZombieman : Zombieman replaces Zombieman
{
override void BeginPlay(void)
{
// This enables the radius debugger...
RadiusDebug.Enable(self);
// ... and this would disable it.
// RadiusDebug.Disable(self);
Super.BeginPlay();
}
}
I've also attached a test event handler that'll make every monster in the level show their radius. Just load TestRadiusDebugHandler.pk3 after RadiusDebug.pk3 to check it out.
Works in both OpenGL and the software* renderer.
* model rendering in software only works starting from GZDoom 3.5.0 onwards
Feel free to use this any way you like. No need to ask for my permission. Credits would be cool. Have fun!