Go to the source code of this file.
Creates a Crosshairs objects using the same crosshair for both the normal and zoomed states
- Parameters
-
crosshair | The 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
-
standard | The standard crosshair to use |
zoomed | The 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_name | The name of the class that you want to edit |
weapon_name | The name of the weapon that you want to edit |
crosshairs | A Crosshairs object defining the default and zoomed crosshairs that you want |
The color of the stock crosshairs
Allows to scale the stock crosshairs
The default value is 1.0, 0.5 is half the size, etc
Allows to hide the stock crosshairs while keeping the hitmarkers