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

MBF21 Skillsaw Codepointers #41

Merged
merged 10 commits into from
May 9, 2021

Conversation

XaserAcheron
Copy link
Contributor

Adds Skillsaw's suggested codepointers (plus a few variants):

  • A_NoiseAlert
  • A_WeaponAlert (the above, for weapons)
  • A_HealChase (generic A_VileChase)
  • A_JumpIfHealthBelow
  • A_JumpIfTargetInSight
  • A_JumpIfTargetCloser
  • A_JumpIfFlagsSet
  • A_AddFlags
  • A_RemoveFlags

re: Flags pointers, I decided the best way to handle the MF2 flags is to just not (for MBF21 anyway) :P -- seems like a port-support minefield since half the flags are Heretic things rather than "MBF21-spec" stuff, and the most useful flags are in the standard actor flags range anyway, IMO. Better to do it well later than do it poorly now.

Doc update coming soonish -- just wanted to get the code out there for reviewin'.

prboom2/src/p_enemy.c Outdated Show resolved Hide resolved
@XaserAcheron
Copy link
Contributor Author

Updated with a new MBF21 flags arg n' some fixins.

Copy link
Owner

@kraflab kraflab left a comment

Choose a reason for hiding this comment

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

Besides the small comments, I think it's ready for docs

spec/support/utility.rb Outdated Show resolved Hide resolved
prboom2/.editorconfig Outdated Show resolved Hide resolved
prboom2/src/p_enemy.c Outdated Show resolved Hide resolved
@XaserAcheron XaserAcheron force-pushed the mbf21-skillsaw-pointers branch from f59804d to 7bcdcd2 Compare May 9, 2021 02:56
@XaserAcheron
Copy link
Contributor Author

WTF, I don't know how those two other files wound up in this commit. o_O

Re-pushed, with a better fix this time 'round.

@kraflab
Copy link
Owner

kraflab commented May 9, 2021

All good 👍

@XaserAcheron
Copy link
Contributor Author

Just updated the docs, so hopefully this is all kosher-ish now. (Provided my half-asleep brain didn't make any obvious errors, heh :P )

@kraflab kraflab merged commit 16f5ab4 into kraflab:master May 9, 2021
@XaserAcheron XaserAcheron deleted the mbf21-skillsaw-pointers branch May 9, 2021 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants