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

New formula for XDeaths? #233

Closed
VGkav opened this issue Feb 11, 2016 · 6 comments
Closed

New formula for XDeaths? #233

VGkav opened this issue Feb 11, 2016 · 6 comments
Assignees

Comments

@VGkav
Copy link

VGkav commented Feb 11, 2016

I created an Explode state for the Demon and noticed that it was almost impossible to get the Xdeath. Then I checked out the requirements, the thing's Health must reach a (negative) value lower than his GibHealth (as zdoom calls it), which is his negative Health (in Doom, in the other games it's half that)

That is OK for Trooper, Sergeant, Imp, Chaingunner and SSNazi, it is hard to get with the Demon and practically impossible with all other monsters because they have high health. That's why they didn't even bother to create XDeath resources for the Demon and higher monsters lol.

According to this:
ftp://ftp.fu-berlin.de/pc/games/idgames/lmps/tyson/weapons.html

the rocket's max damage is 288. That means that if a Revenant has 1 health point and eats a max-damage rocket in the face, he won't be gibbed/XDeath'ed, because his health will be -287 and his GibHealth is -300.

This only matters for dehacked mods, since the game doesn't have XDeath states for Demon and higher, but do you plan to change the formula in the engine or to provide some way to change the GibHealth (dehacked or MAPINFO)?

(Or maybe the rocket and the berserk would have a small hardcoded chance to gib, regardless?)

bradharding added a commit that referenced this issue Feb 12, 2016
@bradharding bradharding self-assigned this Feb 12, 2016
@bradharding
Copy link
Owner

Thanks for the suggestion. "Gib health" can now be changed in DeHackEd lumps. See 64cba7d.

@VGkav
Copy link
Author

VGkav commented Feb 12, 2016

Thanks, I changed the Demon's gib health to -10 and I gib him fine with the rocket launcher but not with the SSG!

When you made the SSG able to gib did you make it a special case for some monsters?

@bradharding
Copy link
Owner

When you made the SSG able to gib did you make it a special case for some monsters?

Ah yes, I did! I forgot about this case.

@VGkav
Copy link
Author

VGkav commented Feb 13, 2016

Even with gibhealth at -50 I still can't gib a Demon with the SSG, only with -1 or something like that. But then everything gibs. I guess it's because the pellet damage isn't being added.

That code is confusing. Why is it doing a CheckMeleeRange? So that stray SSG pellets don't gib probably?

Actually, I think with this commmit I can't gib Imps at short range with the SSG anymore(?)

@bradharding
Copy link
Owner

Whoops! Health needs to be less than gibhealth to cause xdeathstate, so subtract 1. Fixed in commit bd9ff4c.

Why is it doing a CheckMeleeRange? So that stray SSG pellets don't gib probably?

Yes. I guess it's not really necessary though.

@VGkav
Copy link
Author

VGkav commented Feb 13, 2016

Hmmm, so basically the way it is now, point blank range, there is a 66% chance that the SSG will gib the monster (if it has an XDeath state) regardless of Gib health or current monster Health.

And if I set Gib health to around 100-120, there is a good chance of a rocket/berserkfist gibbing the monster if it is at low health already.

That's how I understand it, in case someone googles around what is happening with gibbing, Gib health etc in Doom Retro, heh.

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

No branches or pull requests

2 participants