Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

weights Namespace Reference

Weight related stuff. More...


Functions

int CheckWeight (P_CHAR pc)
 Check when player is walking if overloaded.

float RecursePacks (P_ITEM bp)
 recurses through the container given to calculate the total weight

int CheckWeight2 (P_CHAR pc)
 Check when player is teleporting if overloaded.

void NewCalc (P_CHAR pc)
 Search player's paperdoll and then backpacks for items with weight then set the weight of the current player.

float LockeddownWeight (P_ITEM pItem, int *total)
 Get the player weight.


Detailed Description

Weight related stuff.

Function Documentation

int weights::CheckWeight P_CHAR    pc
 

Check when player is walking if overloaded.

Author:
Unknow
Returns:
1 if k, 0 if overloaded
Parameters:
pc  the character

int weights::CheckWeight2 P_CHAR    pc
 

Check when player is teleporting if overloaded.

Author:
Morrolan
Returns:
??
Parameters:
pc  the character

float weights::LockeddownWeight P_ITEM    pItem,
int *    total
 

Get the player weight.

Author:
Unknow, update by Duke (04/11/00)
Returns:
actual weight
Parameters:
pItem  the container
total  the total number of item in container and subcontainer
Note:
total < 0 indicate that not a pack ! on osi servers in that case weigt/items count isnt show thus i set it negative, if you want to show it anyway, add something like if (weight<0) weight*=-1;

void weights::NewCalc P_CHAR    pc
 

Search player's paperdoll and then backpacks for items with weight then set the weight of the current player.

Author:
Ison (02/20/99), rewrote by Tauriel (03/20/99)
Parameters:
pc  the character
Note:
The called character's weight is first set to zero then re-calculated during the function.

float weights::RecursePacks P_ITEM    bp
 

recurses through the container given to calculate the total weight

Author:
Ison (02/20/99), rewritten by Tauriel (03/20/99), rewritten by Duke (04/11/00)
Returns:
the weight
Parameters:
bp  the item
SourceForge.net Logo