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

canTreat not working for disabled items #2765

Closed
felixlinker opened this issue Oct 18, 2015 · 2 comments
Closed

canTreat not working for disabled items #2765

felixlinker opened this issue Oct 18, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@felixlinker
Copy link

ACE3 Version: 3.3.2

Mods:

  • @CBA_A3
  • @ace

Placed ACE3 Modules:
In missionConfigFile >> "ACE_Settings":
class ace_medical_useLocation_PAK {
typeName = "SCALAR";
value = 4;
values[] = {"Anywhere", "Medical vehicles", "Medical facility", "vehicle & facility", "Disabled"};
force = 1;
};

Description:
Let's assume that canTreat doesn't evaluate to false until line 78 in fnc_canTreat.sqf.
Then, the use location is checked. As _return is initialized to true, it won't be changed, if ace_medical_useLocation_PAK ist 4.
So: the item will be able to be used allthough it should be disabled.

@felixlinker
Copy link
Author

Nice to see, that this got fixed that fast. But I have to say: the commit messa #2767 seems to be a bit specific. Is the error fixed for any item or just for the pak?

@PabstMirror
Copy link
Contributor

PAK and Surgical Kit are the only Treatments that were effected because they are the only ones that have treatmentLocations[] set to something besides {"All"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants