//--------------------------- // HUD help file v0.1 // Most of this is included in the hud_help command //--------------------------- - cmd: setCursor expected arguments: 2 - desc: Moves the cursor to x and y coordinates. - cmd: setAlign expected arguments: 2 - desc: Changes align setting. - cmd: setSize expected arguments: 2 - desc: Sets width and height. Used for pictures and models. - cmd: setFontstyle expected arguments: 1 - desc: Sets font style. Used for text. - cmd: setColor expected arguments: 4 - desc: Sets color setting in RGBA mode. Used for text and pictures - cmd: setFlashColor expected arguments: 4 - desc: Sets flash color setting in RGBA mode. Used for text and pictures when they flash - cmd: setColorToTeamColor expected arguments: 1 - desc: Sets cursor color to the color of the team provided in the argument - cmd: setFlashColorToTeamColor expected arguments: 1 - desc: Sets cursor flash-color to the color of the team provided in the argument - cmd: setColorAlpha expected arguments: 1 - desc: Changes the alpha value of the current color - cmd: setFlashColorAlpha expected arguments: 1 - desc: Changes the alpha value of the current flash-color - cmd: setRotationSpeed expected arguments: 3 - desc: Sets rotation speeds as vector. Used for models - cmd: drawFPS expected arguments: 0 - desc: Draws renderer frames per second - cmd: drawSpeed expected arguments: 0 - desc: Draws current player speed - cmd: drawClock expected arguments: 0 - desc: Draws clock - cmd: drawHelpString expected arguments: 0 - desc: Draws the help message - cmd: drawPlayername expected arguments: 1 - desc: Draws the name of the player with id provided by the argument - cmd: drawPointing expected arguments: 0 - desc: Draws the name of the player in the crosshair - cmd: drawStatString expected arguments: 1 - desc: Draws configstring of argument id - cmd: drawItemName expected arguments: 1 - desc: Draws the name of the item with given item index - cmd: drawString expected arguments: 1 - desc: Draws the string in the argument - cmd: drawStringNum expected arguments: 1 - desc: Draws numbers as text - cmd: drawNum expected arguments: 1 - desc: Draws numbers of given character size - cmd: drawStretchNum expected arguments: 1 - desc: Draws numbers stretch inside a given size - cmd: drawBar expected arguments: 2 - desc: Draws a bar of size setting, the bar is filled in proportion to the arguments - cmd: drawPicByIndex expected arguments: 1 - desc: Draws a pic with argument as imageIndex - cmd: drawPicByItemindex expected arguments: 1 - desc: Draws a item icon pic with argument as itemIndex - cmd: drawPicByItemname expected arguments: 1 - desc: Draws a item icon pic with argument being the item name - cmd: drawPicByName expected arguments: 1 - desc: Draws a pic with argument being the file path - cmd: drawModelByIndex expected arguments: 1 - desc: Draws a model with argument being the modelIndex - cmd: drawModelByName expected arguments: 2 - desc: Draws a model with argument being the path to the model file - cmd: drawModelByItemindex expected arguments: 1 - desc: Draws a item model with argument being the item index - cmd: drawModelByItemname expected arguments: 1 - desc: Draws a model with argument being the item name - cmd: drawWeaponList expected arguments: 6 - desc: Draws the weapon list - cmd: drawTeamInfo expected arguments: 0 - desc: Draws the Team Info (locations) box - cmd: if expected arguments: 1 - desc: Conditional expression. Argument accepts operations >, <, ==, >=, <=, etc - cmd: endif expected arguments: 0 - desc: End of conditional expression block - HUD scripts operators --------------------------------- +, -, *, /, &, |, ^, ==, !=, >, >=, <, <= - HUD scripts STATS names --------------------------------- - %STAT_GAMETYPE - %STAT_HEALTH - %STAT_AMMO - %STAT_AMMO_ITEM - %STAT_WEAK_AMMO - %STAT_ARMOR - %STAT_ARMOR_ITEM - %STAT_SELECTED_ITEM - %STAT_PICKUP_ITEM - %STAT_WEAPON_ITEM - %STAT_POWERUP_ITEM - %STAT_LAYOUTS - %STAT_FRAGS - %STAT_TEAM - %STAT_CHASING - %STAT_POINTED_PLAYER - %STAT_POINTED_TEAMPLAYER - %STAT_RACE_STARTED - %STAT_RACE_TIME - %STAT_RACE_PLAYERBESTTIME - %STAT_RACE_MATCHBESTTIME - %STAT_TEAM_RED_SCORE - %STAT_TEAM_BLUE_SCORE - %STAT_TEAM_GREEN_SCORE - %STAT_TEAM_YELLOW_SCORE - HUD scripts CONSTANT names --------------------------------- - #NOTSET - #TEAM_SPECTATOR - #TEAM_PLAYERS - #TEAM_RED - #TEAM_BLUE - #TEAM_GREEN - #TEAM_YELLOW - #LEFT - #CENTER - #RIGHT - #TOP - #MIDDLE - #BOTTOM - #WIDTH - #HEIGHT - #GAMETYPE_CTF - #GAMETYPE_DM - #GAMETYPE_DUEL - #GAMETYPE_INSTAGIB - #GAMETYPE_MIDAIR - #GAMETYPE_RACE