Utils.pxl
From Project X Wiki
Contents
Scripts
MissileIndex
Adds field "weap" of type CWeapon to CMissile
RandomsGens
Functions
float srandom_p() float srandom_b()
WormsRelated
Functions
void SetTeamWon(int team) bool IsTeamAlive(int team) CWorm* GetCurrentWorm() int GetWormColor(CWorm* worm) bool CGObject::IsInBox(fixed left,fixed top,fixed right,fixed bottom) bool CGObject::IsValid() int GetFreeWormIndex(int Team) void ExpandNWorms(int Team,int ExpTo) CWorm* RessurectWorm(int Index, int Team, fixed x, fixed y) CWorm* RessurectWormEx(int Index, int Team, fixed x, fixed y, string wName, int Health)
Bugs
Note, that if ure using KeySync, it causes desync if the player holds his button after turnend.
Fix:
override void CTurnGame::SetCurrentTeam(int Team) { super; for (local i = 0; i < 256; i+=1) { keySync->kRStates[i] = false; }; }
|