Implemented human classes and fixed class related bugs.
Moved class initial event forward into OnConfigsExecuted. Changed class attributes in default configuration file, and made new example human classes: speedy and light. Implemented feature for applying human and admin classes. Admin mode is still not implemented. Extended model path class attribute to support "default" for using default CS models. Fixed event forward order in OnPlayerSpawn event. The class module depends on infection module. Fixed class menu crash when there are no admin classes. Admin class and mode options are removed from the menu if there are no classes. Fixed class menu not closing when selecting 0 (exit) if auto-close CVAR is disabled. New global variable to separate current admin class and the admin class to be used on next spawn: ClassPlayerNextAdminClass. Moved hard coded valitation values into defines. Removed log warning if there are no admin classes. They are optional. Fixed jump boost adding to height and not multiplying (which were 0 on the player velocity).
This commit is contained in:
@@ -17,23 +17,41 @@ new Handle:tOverlay[MAXPLAYERS + 1];
|
||||
/**
|
||||
* Specifies if a client have a overlay.
|
||||
*/
|
||||
new bClientHasOverlay[MAXPLAYERS + 1];
|
||||
new bool:bClientHasOverlay[MAXPLAYERS + 1];
|
||||
|
||||
/**
|
||||
* Tells wether the overlay is on or not.
|
||||
*/
|
||||
new bClientOverlayOn[MAXPLAYERS + 1];
|
||||
new bool:bClientOverlayOn[MAXPLAYERS + 1];
|
||||
|
||||
/**
|
||||
* Path to the currently active overlay.
|
||||
*/
|
||||
new String:ActiveOverlay[MAXPLAYERS + 1][PLATFORM_MAX_PATH];
|
||||
|
||||
bool:ClientHasOverlay(client)
|
||||
|
||||
/**
|
||||
* Returns if the have a overlay path specified.
|
||||
*
|
||||
* @param client The client index.
|
||||
* @return True if a overlay path is specified, false otherwise.
|
||||
*/
|
||||
bool:ClassClientHasOverlay(client)
|
||||
{
|
||||
return bClientHasOverlay[client];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns if the overlay is currently on or not.
|
||||
*
|
||||
* @param client The client index.
|
||||
* @return True if on, false otherwise.
|
||||
*/
|
||||
bool:ClassOverlayIsOn(client)
|
||||
{
|
||||
return bClientOverlayOn[client];
|
||||
}
|
||||
|
||||
ClassOverlayInitialize(client, const String:overlay[])
|
||||
{
|
||||
if (IsFakeClient(client))
|
||||
|
||||
Reference in New Issue
Block a user