Skip to content

Commit

Permalink
Fix config (#6905)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dystopian authored and PabstMirror committed Apr 1, 2019
1 parent 4f24b06 commit 581fb40
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
6 changes: 0 additions & 6 deletions optionals/nocrosshair/CfgInGameUI.hpp

This file was deleted.

27 changes: 27 additions & 0 deletions optionals/nocrosshair/CfgWeaponCursors.hpp
@@ -0,0 +1,27 @@
#define EMPTY_TEXTURE(weapon) \
class weapon: default { \
texture = ""; \
}

class CfgWeaponCursors {
class default;
EMPTY_TEXTURE(arifle);
EMPTY_TEXTURE(mg);
EMPTY_TEXTURE(srifle);
EMPTY_TEXTURE(smg);
EMPTY_TEXTURE(hgun);
EMPTY_TEXTURE(sgun);
EMPTY_TEXTURE(gl);
EMPTY_TEXTURE(throw);
EMPTY_TEXTURE(put);
EMPTY_TEXTURE(missile);
EMPTY_TEXTURE(rocket);
EMPTY_TEXTURE(bomb);
EMPTY_TEXTURE(cannon);
EMPTY_TEXTURE(mortar);
EMPTY_TEXTURE(coil);
EMPTY_TEXTURE(laserdesignator);
// if these classes have empty texture the crosshair appears
// EMPTY_TEXTURE(cursorAim);
// EMPTY_TEXTURE(cursorAimOn);
};
2 changes: 1 addition & 1 deletion optionals/nocrosshair/config.cpp
Expand Up @@ -15,4 +15,4 @@ class CfgPatches {
};
};

#include "CfgInGameUI.hpp"
#include "CfgWeaponCursors.hpp"

0 comments on commit 581fb40

Please sign in to comment.