Difference between revisions of "Utils.pxl"
From Project X Wiki
Ginger88895 (talk | contribs) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 7: | Line 7: | ||
float [[srandom_p]]() | float [[srandom_p]]() | ||
float [[srandom_b]]() | 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. <br \> | ||
+ | Fix: | ||
+ | override void CTurnGame::SetCurrentTeam(int Team) | ||
+ | { | ||
+ | super; | ||
+ | |||
+ | for (local i = 0; i < 256; i+=1) | ||
+ | { | ||
+ | keySync->kRStates[i] = false; | ||
+ | }; | ||
+ | } | ||
+ | |||
+ | |||
{{Libraries}} | {{Libraries}} |
Latest revision as of 23:15, 26 April 2013
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; }; }
|