TAMods  0.4
Customization mod for Tribes:Ascend
Classes | Functions | Variables
HUD.h File Reference

Go to the source code of this file.

Classes

struct  HUD
 

Functions

Vector project (HUD hud, Vector vec)
 
void drawDamageNumber (HUD hud, string text, Color color, Vector loc, float scalex, float scaley)
 
bool isOnScreen (HUD hud, Vector loc)
 
Vector getPlayerPos (HUD hud)
 

Variables

boolean showWeapon
 
boolean showFirstPersonAmmo
 
Color friendlyChatColor
 
Color enemyChatColor
 
Color friendlyHUDChatColor
 
Color enemyHUDChatColor
 
Color friendlyColor
 
Color enemyColor
 
Color enemyMarkerColor
 
Color enemyIsFMarkerColor
 
Color friendlyMarkerColor
 
Color friendlyIsFMarkerColor
 
number skiBarMin
 
number skiBarMax
 
boolean showObjectiveIcon
 
boolean showFlagBaseIcon
 
boolean showCTFBaseIcon
 
boolean showNuggetIcon
 
boolean showPlayerIcon
 
boolean showVehicleIcon
 
boolean showMineIcon
 
boolean showSensorIcon
 

Function Documentation

void drawDamageNumber ( HUD  hud,
string  text,
Color  color,
Vector  loc,
float  scalex,
float  scaley 
)

Draws a string on the screen

Parameters
hudThe HUD object
textThe string to display
colorThe color to use
locWhere to draw the text
scalexThe horizontal scaling of the text
scaleyThe vertical scaling of the text
Vector getPlayerPos ( HUD  hud)

Returns the position of the player

Parameters
hudThe HUD object
Returns
The position of the player
bool isOnScreen ( HUD  hud,
Vector  loc 
)

Checks if a given location is in front or behind the player

Parameters
hudThe HUD object
locThe location to check
Returns
true if the location is visible, false otherwise
Vector project ( HUD  hud,
Vector  vec 
)

Projects a world location on the screen

Parameters
hudThe HUD object
vecThe world location to project
Returns
The resulting screen position

Variable Documentation

Color enemyChatColor

The color of messages sent by enemies in the console (~)

Color enemyColor

The color of the name of enemies

You can set this variable's alpha value to 0 to hide enemies' names

Color enemyHUDChatColor

The color of messages sent by enemies in the in-game chat

Color enemyIsFMarkerColor

The color of enemies markers when you are mutual friends

You can set this variable's alpha value to 0 to hide the markers

Color enemyMarkerColor

The color of enemies markers

You can set this variable's alpha value to 0 to hide the markers

Color friendlyChatColor

The color of messages sent by allies in the console (~)

Color friendlyColor

The color of the name of allies

You can set this variable's alpha value to 0 to hide allies' names

Color friendlyHUDChatColor

The color of messages sent by allies in the in-game chat

Color friendlyIsFMarkerColor

The color of allies markers when you added them as friend

You can set this variable's alpha value to 0 to hide the markers

Color friendlyMarkerColor

The color of allies markers

You can set this variable's alpha value to 0 to hide the markers

boolean showCTFBaseIcon

If the flag icon should be displayed

boolean showFirstPersonAmmo

Controls if the ammo counter should be displayed at all times

This is mainly intended for users who play without weapon models, as they have no way to tell how many ammo they have left

This feature also enhances the counter, now displaying the in-clip ammo as well as the total ammo remaining

boolean showFlagBaseIcon

If the flag base icons (when the flag is not on stand) should be displayed

boolean showMineIcon

If the mines icons should be displayed

boolean showNuggetIcon

If the ammo drop icons should be displayed

boolean showObjectiveIcon

If the base objectives icons (generator, vehicle pad, base turrets, etc) should be displayed

boolean showPlayerIcon

If the player icons (name, health, marker, etc) should be displayed

boolean showSensorIcon

If the sensors icons should be displayed

boolean showVehicleIcon

If the vehicle icons should be displayed

boolean showWeapon

Controls if the 1st person weapon model should be visible or not

number skiBarMax

The speed you need to have to activate the last mark of the ski bars to the sides of the screen

number skiBarMin

The speed you need to have to activate the first mark of the ski bars to the sides of the screen