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

Allow damage handler (also block only collision damage) #2758

Closed
wants to merge 6 commits into from

Conversation

PabstMirror
Copy link
Contributor

#2757

Should fix issue from PR #2230

I'm not 100% sure if this is the right way to do things (like testing collision damage _projectile == "")

@thojkooi
Copy link
Contributor

There is an allowDamage variable in medical.

@commy2
Copy link
Contributor

commy2 commented Oct 17, 2015

Do we need that handleDamage eventhandler? Those things don't stack well together, so we should use them only where it's absolutely necessary (once for medical).


if ((_object isKindOf "CAManBase") && {["ace_medical"] call FUNC(isModLoaded)}) exitWith {
//ACE_medical already has a handleDamage installed on the Unit and we can just setVariables for it
TRACE_1("handled by ace medical", _object);
Copy link
Contributor

Choose a reason for hiding this comment

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

_object setvariable [QEGVAR(medical,allowdamage), false];

@PabstMirror PabstMirror deleted the allowDamageHandler branch January 22, 2016 20:55
@LinkIsGrim LinkIsGrim removed this from the Ongoing milestone Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants