Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Crosshair - Fix config #6905

Merged
merged 1 commit into from Apr 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explain this please. It sounds there is an interesting story behind this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just added all CfgWeaponCursors classes and it suddenly broke my fix. So I decided to keep these classes commented if someone would want to add "missing" classes.

};
2 changes: 1 addition & 1 deletion optionals/nocrosshair/config.cpp
Expand Up @@ -15,4 +15,4 @@ class CfgPatches {
};
};

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