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

Concept for configurable range settings #272

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ jobs:
with:
fetch-depth: 1
- name: Build addon with HEMTT
uses: arma-actions/hemtt@master
uses: jokoho48/hemtt-action@master
with:
command: 'build --release'
command: 'pack --release'
- uses: actions/upload-artifact@master
with:
name: '@LambsDanger'
Expand Down
Empty file added addons/range/$NOBIN$
Empty file.
14 changes: 13 additions & 1 deletion addons/range/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@

class Lambs_Danger_DummyClass {

#if __has_include("\userconfig\lambs_danger\range.hpp")
#include "\userconfig\lambs_danger\range.hpp";
#endif

#ifndef LAMBS_RANGE_SENSITIVITY_MAN
#define LAMBS_RANGE_SENSITIVITY_MAN 6
#endif
};

class CfgVehicles {
class Land;
class Man : Land {
sensitivity = 6;
sensitivity = LAMBS_RANGE_SENSITIVITY_MAN;
};
};
1 change: 0 additions & 1 deletion addons/wp/modules.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,6 @@ class GVAR(TaskRush) : GVAR(BaseModule) {
displayName = CSTRING(Module_TaskRush_CycleTime_DisplayName);
tooltip = CSTRING(Module_TaskRush_CycleTime_ToolTip);
property = QGVAR(CycleTime);
defaultValue = QUOTE(TASK_RUSH_CYCLETIME);
unique = 0;
validate = "number";
condition = "0";
Expand Down
1 change: 1 addition & 0 deletions userconfig/lambs_danger/range.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#define LAMBS_RANGE_SENSITIVITY_MAN 6