Turok EX Modding Guide

Scripts kPlayLoop

stored in global var PlayLoop

Methods

int Ticks()

number of ticks since the current map started

void TagActorForBossBar( kActor@ boss )

show boss health bar on the HUD, tracking boss's health

void RemoveBossActor()

remove boss health bar from the HUD

void CheckKeys()

print the number of keys left to find on the current level on the HUD

void StartWarp( kActor@ a, int warpTID, int mapID )

void StartFreeWarp( kActor@ a, kVec3& dest, float yaw, int sector, int mapID )

teleport the player to a map by its map ID, at a given warp point or an arbitrary point on the map, respectively

a must be non-null, but otherwise doesn't seem to matter

void HandlePlayerDeath( bool bLoseLife = true )

resume normal respawn/game over procedure after being blocked with PF_PREVENTDEATHCAM

if bLoseLife is false, the player won't lose any lives