[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.

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

Postby Nash » Sun Apr 21, 2013 9:33 am

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
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

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

Postby Mikk- » Sun Apr 21, 2013 1:22 pm

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
Mikk-
yooooooooooo
 
Joined: 30 Jun 2009
Location: Somewhere off Kanagawa
Discord: Mikk0451#3922

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

Postby Nash » Sun Apr 21, 2013 1:29 pm

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
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

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

Postby Rowsol » Sun Apr 21, 2013 5:04 pm

Cactaur approves.
User avatar
Rowsol
 
Joined: 06 Mar 2013

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

Postby Nash » Sat Jul 20, 2013 10:53 am

Temporary mirror until DRDTeam comes back. Thanks wolfman! http://www.mediafire.com/?5e6rzy12hvr11xf
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

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

Postby Isaacjedi5 » Mon Jul 29, 2013 4:12 pm

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
Isaacjedi5
Crudux Cruo.
 
Joined: 27 Dec 2012
Location: Philadelphia, PA

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

Postby jdredalert » Sat Aug 03, 2013 1:37 am

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
jdredalert
State of badass art.
 
Joined: 14 Jul 2013

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

Postby WARCHILD_89 » Sun Nov 02, 2014 3:27 pm

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
WARCHILD_89
DOOM NEMESIS / 3D MODELS / RESOURCE BACKUPS
 
Joined: 17 Nov 2013
Location: MIA between doomed dimensions

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

Postby jdredalert » Sun Nov 02, 2014 5:36 pm

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
jdredalert
State of badass art.
 
Joined: 14 Jul 2013

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

Postby X-DOOM » Sun Nov 02, 2014 11:33 pm

download link doesnt work
User avatar
X-DOOM
Imp monger
 
Joined: 15 Jul 2003
Location: Charlesbourg, Québec, Canada

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

Postby torridgristle » Mon Nov 03, 2014 1:25 am

X-DOOM wrote:download link doesnt work


Nash wrote:Temporary mirror until DRDTeam comes back. Thanks wolfman! http://www.mediafire.com/?5e6rzy12hvr11xf
User avatar
torridgristle
Sprites will be 120% tall in the game.
 
Joined: 23 Aug 2013

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

Postby WARCHILD_89 » Mon Nov 03, 2014 12:35 pm

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
WARCHILD_89
DOOM NEMESIS / 3D MODELS / RESOURCE BACKUPS
 
Joined: 17 Nov 2013
Location: MIA between doomed dimensions

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

Postby X-DOOM » Mon Nov 03, 2014 2:40 pm

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
X-DOOM
Imp monger
 
Joined: 15 Jul 2003
Location: Charlesbourg, Québec, Canada

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

Postby Carbine Dioxide » Tue Nov 04, 2014 1:00 pm

I have been waiting for something like this, thank you, Nash. :D
User avatar
Carbine Dioxide
Me and Pain go way back.
 
Joined: 12 Jun 2014
Location: Anywhere.

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

Postby Nash » Tue Nov 04, 2014 11:00 pm

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!
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Next

Return to Abandoned/Dead Projects

Who is online

Users browsing this forum: No registered users and 1 guest