MCPcopy Create free account
hub / github.com/JACoders/OpenJK / G_DebugLine

Function G_DebugLine

code/game/g_utils.cpp:1949–1961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1947
1948extern void CG_TestLine( vec3_t start, vec3_t end, int time, unsigned int color, int radius);
1949void G_DebugLine(vec3_t A, vec3_t B, int duration, int color, qboolean deleteornot)
1950{
1951 /*
1952 gentity_t *tent = G_TempEntity( A, EV_DEBUG_LINE );
1953 VectorCopy(B, tent->s.origin2 );
1954 tent->s.time = duration; // Pause
1955 tent->s.time2 = color; // Color
1956 tent->s.weapon = 1; // Dimater
1957 tent->freeAfterEvent = deleteornot;
1958 */
1959
1960 CG_TestLine( A, B, duration, color, 1 );
1961}
1962
1963qboolean G_ExpandPointToBBox( vec3_t point, const vec3_t mins, const vec3_t maxs, int ignore, int clipmask )
1964{

Callers 11

AI_RefreshGroupFunction · 0.70
Rancor_SwingFunction · 0.70
Rancor_SmashFunction · 0.70
Tavion_ScepterDamageFunction · 0.70
Jedi_SaberBlockFunction · 0.70
Howler_TryDamageFunction · 0.70
WP_SabersDistanceFunction · 0.70
WP_SaberDamageForTraceFunction · 0.70
Tusken_StaffTraceFunction · 0.70
PM_StepSlideMoveFunction · 0.70
Noghri_StickTraceFunction · 0.70

Calls 1

CG_TestLineFunction · 0.50

Tested by

no test coverage detected