Page 1 of 2

[Dead] ACS-based headshots (no hitboxes!)

Posted: Sun Apr 21, 2013 9:33 am
by Nash
Feel free to use this in your mods! No need to ask for my permission.
ACS-based location damage (headshots/legshots)

by Nash Muhandes

This global ACS script allows you to do headshots and legshots without spawning
a billion hitbox markers on all of your monsters.

It's done by comparing height values between the blood splats and the actors.

Requires the latest SVN builds of (G)ZDoom as it uses a bunch of new features
like named scripts, APROP_Height and stuff.

THIS IS A MODDER'S RESOURCE! You *can* play regular Doom maps with this
mod loaded but you will find yourself very, VERY overpowered because you
will instantly kill ANY monster by just shooting them in the head.

What I am demonstrating here is way to do locational damage without hitboxes.
I am NOT making a general-use headshot mod for Doom maps.


Let's see those headshot-enabled mods!

TO DO: left arm/right arm damage
>> Download <<

EDIT:

Found a bug. Doesn't work with shotguns or any hitscan weapon that sends more than 1 bullet per shot. Also doesn't work for bullets that do so much damage that it would kill the monster in 1 hit. What's happening is that the DeathHeight is being set BEFORE the ACS can run the height checking routine and will therefore fail to register the locational damage. I'll see what can be done about this some other day.

Re: [Modder's Resource] ACS-based headshots (no hitboxes!)

Posted: Sun Apr 21, 2013 1:22 pm
by Mikk-
This is pretty damn awesome. I've always wanted locational damage without the hacky hitbox trickery. Is there a way to manipulate this into backstabs?

Re: [Modder's Resource] ACS-based headshots (no hitboxes!)

Posted: Sun Apr 21, 2013 1:29 pm
by Nash
I imagine doing backstabs would be similar to the way left/right arm damage would have to be done... I just can't wrap my head around the math needed to do it right now.

EDIT: Although now that I think about it again, I don't think you need to do anything complex for backstabs. When the melee hit connects, just fire a script to compare the enemy's angle and your angle...

EDIT 2: Found a bug. Doesn't work with shotguns or any hitscan weapon that sends more than 1 bullet per shot. Also doesn't work for bullets that do so much damage that it would kill the monster in 1 hit. What's happening is that the DeathHeight is being set BEFORE the ACS can run the height checking routine and will therefore fail to register the locational damage. I'll see what can be done about this some other day.

Re: [Modder's Resource] ACS-based headshots (no hitboxes!)

Posted: Sun Apr 21, 2013 5:04 pm
by Rowsol
Cactaur approves.

Re: [Modder's Resource] ACS-based headshots (no hitboxes!)

Posted: Sat Jul 20, 2013 10:53 am
by Nash
Temporary mirror until DRDTeam comes back. Thanks wolfman! http://www.mediafire.com/?5e6rzy12hvr11xf

Re: [Modder's Resource] ACS-based headshots (no hitboxes!)

Posted: Mon Jul 29, 2013 4:12 pm
by Isaacjedi5
Shotgun headshots seem to work fine for me. However, with autoaim on, I cannot get a headshot.
Still, good job with the script!

Re: [Modder's Resource] ACS-based headshots (no hitboxes!)

Posted: Sat Aug 03, 2013 1:37 am
by jdredalert
How can i make it not too overpowered? I tried to change the damage values at the Thing_Damage2 line but it won't worked. Hell, i've even put the damage value to 0 and the monsters are still getting an asswhoop. How's that possible? o.O

Re: [Modder's Resource] ACS-based headshots (no hitboxes!)

Posted: Sun Nov 02, 2014 3:27 pm
by WARCHILD_89
jdredalert wrote:How can i make it not too overpowered? I tried to change the damage values at the Thing_Damage2 line but it won't worked. Hell, i've even put the damage value to 0 and the monsters are still getting an asswhoop. How's that possible? o.O

I have the same problem. To kill any monster with only one shot is something that should be fixed. I can write and change whatever I want into the code but nothing changes.....

Re: [Modder's Resource] ACS-based headshots (no hitboxes!)

Posted: Sun Nov 02, 2014 5:36 pm
by jdredalert
That was something that cursed me one year ago, when i was much more green and inexperienced. I was forgetting the most important part: to compile the changes in the source file. This will make the changes work, but you will need some ACS compiler added to SLADE in order to do that. I recommend the ACC.

Re: [Modder's Resource] ACS-based headshots (no hitboxes!)

Posted: Sun Nov 02, 2014 11:33 pm
by X-DOOM
download link doesnt work

Re: [Modder's Resource] ACS-based headshots (no hitboxes!)

Posted: Mon Nov 03, 2014 1:25 am
by torridgristle
X-DOOM wrote:download link doesnt work
Nash wrote:Temporary mirror until DRDTeam comes back. Thanks wolfman! http://www.mediafire.com/?5e6rzy12hvr11xf

Re: [Modder's Resource] ACS-based headshots (no hitboxes!)

Posted: Mon Nov 03, 2014 12:35 pm
by WARCHILD_89
jdredalert wrote:That was something that cursed me one year ago, when i was much more green and inexperienced. I was forgetting the most important part: to compile the changes in the source file. This will make the changes work, but you will need some ACS compiler added to SLADE in order to do that. I recommend the ACC.


you are right. Now I have compiled it and I an see the results now

Re: [Modder's Resource] ACS-based headshots (no hitboxes!)

Posted: Mon Nov 03, 2014 2:40 pm
by X-DOOM
torridGristle wrote:
X-DOOM wrote:download link doesnt work
Nash wrote:Temporary mirror until DRDTeam comes back. Thanks wolfman! http://www.mediafire.com/?5e6rzy12hvr11xf

Thanks torridGristle

Re: [Modder's Resource] ACS-based headshots (no hitboxes!)

Posted: Tue Nov 04, 2014 1:00 pm
by Carbine Dioxide
I have been waiting for something like this, thank you, Nash. :D

Re: [Modder's Resource] ACS-based headshots (no hitboxes!)

Posted: Tue Nov 04, 2014 11:00 pm
by Nash
I still haven't fixed the withstanding issues (mostly just lacking time, real-life is too hectic) but I know it's not difficult to fix... if anyone wants to go ahead and fix the stuff and upload the fixes, feel free to do so!