-
Notifications
You must be signed in to change notification settings - Fork 90
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
Making spikes have perks for the placer #1135
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: LoneWolfHT <[email protected]>
Co-authored-by: LoneWolfHT <[email protected]>
Co-authored-by: LoneWolfHT <[email protected]>
Co-authored-by: LoneWolfHT <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It stopped working on the test server for some reason. I'll fix this and merge...
Which test server? |
LV had ran a test server a few days ago testing the spike perk (and another PR + Polls). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spikes should hit through medic immunity. Let me know if you can't reproduce that though
I can't reproduce. Correction: I was testing on old code. |
Should the spikes do "full damage" when medics have got immunity? And should the damage be on the behalf of the placer? |
Yeah, if the placer is online, otherwise just deal damage |
Spikes work through medic immunity, too. This PR is ready for another review and possible test. I'm using my server to launch a test server. Will post details on Discord. |
return -7, false | ||
elseif placer then | ||
player:punch(placer, 1, { fleshy = 7, spike = 1}) | ||
return -7, false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't the return value heal any damage dealt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, I don't think this code is reachable unless they aren't damaged by a spike
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, I don't think this code is reachable unless they aren't damaged by a spike
how so? Are you talking about L121 or L123-124?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
110: if team and reason.node == string.format("ctf_map:spike_%s", team) then
LV/LW said it works on his machine so I didn't test further.