ghostBasedMovement.zh#

Functions#

int

ConstWalk4(npc n, int counter, bool flying = false)

int

ConstWalk4(npc n, int counter, int step, int rate, int homing, int hunger, bool flying = false)

int

ConstWalk8(npc n, int counter, bool flying = false)

int

ConstWalk8(npc n, int counter, int step, int rate, int homing, int hunger, bool flying = false)

int

HaltWalk4(npc n, int counter, bool flying = false)

int

HaltWalk4(npc n, int counter, int step, int rate, int homing, int hunger, int haltRate, int haltTime = 48, bool flying = false)

int

VarWalk8(npc n, int counter, bool flying = false)

int

VarWalk8(npc n, int counter, int step, int rate, int homing, int hunger, int turnCheckTime, bool flying = false)

int

FloatWalk(npc n, int counter, int step, int rate, int homing, int hunger, int turnCheckTime, int accelTime, int accelAmount, int accelSteps, int restTime)

void

FixCoords(npc n)

int

LinedUp(npc n, int range, bool eightWay)

void

PickDir4(npc n, int rate, int homing, int hunger)

void

PickDir8(npc n, int rate, int homing, int hunger)

bool

HitPlayerInvert(npc n)

Function descriptions#

int ConstWalk4(npc n, int counter, bool flying = false) πŸ”— Source

Pass a variable for the β€˜counter’ param which is initialized to -1, and assign the return from the function back to the counter variable. Ex:

int counter = -1;
counter = ConstWalk4(n, counter);

int ConstWalk4(npc n, int counter, int step, int rate, int homing, int hunger, bool flying = false) πŸ”— Source


int ConstWalk8(npc n, int counter, bool flying = false) πŸ”— Source


int ConstWalk8(npc n, int counter, int step, int rate, int homing, int hunger, bool flying = false) πŸ”— Source


int HaltWalk4(npc n, int counter, bool flying = false) πŸ”— Source


int HaltWalk4(npc n, int counter, int step, int rate, int homing, int hunger, int haltRate, int haltTime = 48, bool flying = false) πŸ”— Source


int VarWalk8(npc n, int counter, bool flying = false) πŸ”— Source


int VarWalk8(npc n, int counter, int step, int rate, int homing, int hunger, int turnCheckTime, bool flying = false) πŸ”— Source


int FloatWalk(npc n, int counter, int step, int rate, int homing, int hunger, int turnCheckTime, int accelTime, int accelAmount, int accelSteps, int restTime) πŸ”— Source


void FixCoords(npc n) πŸ”— Source


int LinedUp(npc n, int range, bool eightWay) πŸ”— Source


void PickDir4(npc n, int rate, int homing, int hunger) πŸ”— Source


void PickDir8(npc n, int rate, int homing, int hunger) πŸ”— Source


bool HitPlayerInvert(npc n) πŸ”— Source