Difference between revisions of "Utils.pxl"

From Project X Wiki
Jump to: navigation, search
(Scripts)
(Bugs)
Line 9: Line 9:
  
 
== Bugs ==
 
== Bugs ==
KeySync causes desync if the player holds his button after turnend.
+
Note, that if ure using KeySync, it causes desync if the player holds his button after turnend. <br \>
 
Fix:
 
Fix:
 
  override void CTurnGame::SetCurrentTeam(int Team)
 
  override void CTurnGame::SetCurrentTeam(int Team)

Revision as of 22:56, 12 January 2012

PX Library
Library name: utils.pxl
Description: Has some useful functions.
Developed by: Entuser


Scripts

MissileIndex

Adds field "weap" of type CWeapon to CMissile

RandomsGens

Functions

float srandom_p()
float srandom_b()

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;
};
}