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

Projects that have specifically been abandoned or considered "dead" get moved here, so people will quit bumping them. If your project has wound up here and it should not be, contact a moderator to have it moved back to the land of the living.
User avatar
Nash
 
 
Posts: 17479
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

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

Post 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.
Last edited by Nash on Thu Apr 23, 2020 4:00 am, edited 5 times in total.
User avatar
Mikk-
Posts: 2274
Joined: Tue Jun 30, 2009 1:31 pm

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

Post 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?
User avatar
Nash
 
 
Posts: 17479
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

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

Post 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.
User avatar
Rowsol
Posts: 991
Joined: Wed Mar 06, 2013 5:31 am

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

Post by Rowsol »

Cactaur approves.
User avatar
Nash
 
 
Posts: 17479
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

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

Post by Nash »

Temporary mirror until DRDTeam comes back. Thanks wolfman! http://www.mediafire.com/?5e6rzy12hvr11xf
User avatar
Isaacjedi5
Posts: 30
Joined: Wed Dec 26, 2012 8:58 pm
Location: Philadelphia, PA

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

Post 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!
User avatar
jdredalert
Posts: 1668
Joined: Sat Jul 13, 2013 10:13 pm

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

Post 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
User avatar
WARCHILD_89
Posts: 452
Joined: Sun Nov 17, 2013 12:27 pm
Graphics Processor: nVidia with Vulkan support
Location: MIA between doomed dimensions

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

Post 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.....
User avatar
jdredalert
Posts: 1668
Joined: Sat Jul 13, 2013 10:13 pm

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

Post 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.
User avatar
X-DOOM
Posts: 541
Joined: Tue Jul 15, 2003 5:16 pm
Location: Charlesbourg, Québec, Canada

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

Post by X-DOOM »

download link doesnt work
User avatar
torridgristle
Posts: 684
Joined: Fri Aug 23, 2013 9:34 am

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

Post by torridgristle »

X-DOOM wrote:download link doesnt work
Nash wrote:Temporary mirror until DRDTeam comes back. Thanks wolfman! http://www.mediafire.com/?5e6rzy12hvr11xf
User avatar
WARCHILD_89
Posts: 452
Joined: Sun Nov 17, 2013 12:27 pm
Graphics Processor: nVidia with Vulkan support
Location: MIA between doomed dimensions

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

Post 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
User avatar
X-DOOM
Posts: 541
Joined: Tue Jul 15, 2003 5:16 pm
Location: Charlesbourg, Québec, Canada

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

Post 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
User avatar
Carbine Dioxide
Posts: 1927
Joined: Thu Jun 12, 2014 3:16 pm
Location: Anywhere.

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

Post by Carbine Dioxide »

I have been waiting for something like this, thank you, Nash. :D
User avatar
Nash
 
 
Posts: 17479
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

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

Post 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!

Return to “Abandoned/Dead Projects”