Skip to content

Instantly share code, notes, and snippets.

View disasteroftheuniverse's full-sized avatar

m e t a c o r p disasteroftheuniverse

View GitHub Profile
@disasteroftheuniverse
disasteroftheuniverse / ZPathChase.zs
Created November 6, 2022 02:23
an example of how to use the zdoom pathfinding library
void A_PathChase(statelabel MeleeState = null, statelabel MissileState = null)
{
if (bInChase) return;
if (bInConversation) return;
bInChase = true;
if (!target || (target && target.health <= 0) || (target && !target.bShootable) )
{ // look for a new target
bInChase = false;