Debug DrawingΒΆ
Note
Only DebugDrawLine
, DebugDrawBox
and DebugDrawScreenText
are native functions.
The rest are defined in scripts using these.
In Titanfall it is possible to draw shapes in 3D, from the SERVER and CLIENT VM, using the debug draw functions, however in order for them to actually render you will need to set sv_cheats 1
and enable_debug_overlays 1
in your launch config or console.
These debug drawing functions are available:
void DebugDrawLine( vector start, vector end, int r, int b, int g, bool drawThroughObject, float time)
void DebugDrawCylinder( vector origin, vector angles, float radius, float height, int r, int g, int b, bool throughGeo, float time )
array
void DebugDrawMark( vector origin, float radius, array
void DebugDrawSphere( vector origin, float radius, int r, int g, int b, bool throughGeo, float time, int segments = 16 )
void DrawArrow( vector origin, vector angles = <0,0,0>, float time = 5.0, float scale = 50, vector rgb = <0,0,0> )
void DrawStar( vector origin, int size, float time = 1.0, bool throughWorld = false )
void DebugDrawBoxSimple( vector origin, vector min = < -4.0, -4.0, -4.0>, vector max = <4.0, 4.0, 4.0>, int r = 255, int g = 255, int b = 100, int alpha = 255, float time = 0.2 )
void DrawBox( vector org, vector mins, vector maxs, int r, int g, int b, bool throughSolid, float time )
void DebugDrawCube( vector cubeCenter, float cubeSize, int r, int g, int b, bool throughSolid, float time )
void DebugDrawBox( vector org, vector min, vector max, int r, int g, int b, int a, float time)
void DrawAngledBox( vector org, vector ang, vector mins, vector maxs, int r, int g, int b, bool throughSolid, float time )
void DrawBoxFromEye( vector org, vector mins, vector maxs, int r, int g, int b, bool throughSolid, float time )
vector[8] GetBoxCorners( vector org, vector ang, vector mins, vector maxs )
void DebugDrawRotatedBox( vector origin, vector mins, vector maxs, vector angles, int r, int g, int b, bool throughGeo, float duration )
void DebugDrawCircleTillSignal( entity ent, string signalName, vector origin, float radius, int r, int g, int b )
void DebugDrawOriginMovement( entity ent, int r, int g, int b, float time = 9999.0, float trailTime = 5.0 )
void DebugDrawSpawnpoint( entity spawnpoint, int r, int g, int b, bool throughSolid, float time )
void DrawArrowOnTag( entity ent, string ornull tag = null, float time = 5.0, float scale = 50, vector rgb = <0,0,0> )
void DrawArrowOnTagThread( entity ent, string ornull tag, float time, float scale, vector rgb = <0,0,0> )
void DrawTag( entity ent, string tag )
void DrawOrg( entity ent )
void DrawAttachment( entity pod, string attachment, float time = 0.1, vector ornull color = null )
void DrawAttachmentForever( entity pod, string attachment )
void DrawEntityOrigin( entity ent, float time = 0.1, vector ornull color = null )
void DrawOrigin( vector origin, float time = 0.1, vector ornull color = null )
vector[16] DebugDrawTrigger( vector origin, float radius, int r, int g, int b )
void DebugDrawCircleOnEnt( entity ent, float radius, int r, int g, int b, float time )
void DebugDrawSphereOnEnt( entity ent, float radius, int r, int g, int b, float time )
void _DebugThreadDrawCircleOnEnt( entity ent, float radius, int r, int g, int b, float time, vector anglesDelta = Vector( 0, 0, 0 ) )
void DebugDrawCircleOnTag( entity ent, string tag, float radius, int r, int g, int b, float time )
void DebugDrawSphereOnTag( entity ent, string tag, float radius, int r, int g, int b, float time )
void _DebugThreadDrawCircleOnTag( entity ent, string tag, float radius, int r, int g, int b, float time, vector anglesDelta = Vector( 0, 0, 0 ) )
void DrawTracerOverTime( vector origin, vector dir, float time )
void DebugDrawWeapon( entity weapon )
void DebugDrawAngles( vector position, vector angles, float duration = 9999.0 )
void DrawAnglesForMovingEnt( entity ent, float duration, string optionalTag = "" )
void DrawLineFromEntToEntForTime( entity ent1, entity ent2, float duration, int r = 255, int g = 255, int b = 0 )
void DrawLineFromVecToEntForTime( vector vec, entity ent, float duration, int r = 255, int g = 255, int b = 0 )
void DrawLineForPoints( array
void DebugScreenText( float posX, float posY, string text )
Error
This function is stripped. It does nothing.