Difference between revisions of "Utils.pxl"

From Project X Wiki
Jump to: navigation, search
 
(Scripts)
Line 7: Line 7:
 
  float [[srandom_p]]()
 
  float [[srandom_p]]()
 
  float [[srandom_b]]()
 
  float [[srandom_b]]()
 +
 +
== Bugs ==
 +
KeySync 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;
 +
};
 +
}
 +
 +
 
{{Libraries}}
 
{{Libraries}}

Revision as of 22:55, 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

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