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

Go to the source code of this file.

Classes

struct  Crosshairs
 

Functions

Crosshairs crosshairs (string standard, string zoomed)
 
Crosshairs crosshair (string crosshair)
 
void setCrosshairs (string class_name, string weapon_name, Crosshairs crosshairs)
 

Variables

boolean showCrosshair
 
number crosshairScale
 
Color crosshairColor
 

Function Documentation

Crosshairs crosshair ( string  crosshair)

Creates a Crosshairs objects using the same crosshair for both the normal and zoomed states

Parameters
crosshairThe crosshair to use for both states
Returns
The Crosshairs object containing the specified crosshair for all states
Crosshairs crosshairs ( string  standard,
string  zoomed 
)

Creates a Crosshairs objects defining a standard and a zoomed crosshair

Parameters
standardThe standard crosshair to use
zoomedThe zoomed crosshair to use
Returns
The Crosshairs object containing the specified crosshairs
void setCrosshairs ( string  class_name,
string  weapon_name,
Crosshairs  crosshairs 
)

Sets the default and zoomed stock crosshairs to be used for a particular weapon

Parameters
class_nameThe name of the class that you want to edit
weapon_nameThe name of the weapon that you want to edit
crosshairsA Crosshairs object defining the default and zoomed crosshairs that you want

Variable Documentation

Color crosshairColor

The color of the stock crosshairs

number crosshairScale

Allows to scale the stock crosshairs

The default value is 1.0, 0.5 is half the size, etc

boolean showCrosshair

Allows to hide the stock crosshairs while keeping the hitmarkers