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