[v1.5] Critical Shots - Headshots, Backstabs and Crits!

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

[v1.5] Critical Shots - Headshots, Backstabs and Crits!

Postby Mikk- » Fri Apr 03, 2020 2:53 pm

So this is just a fun little gameplay mod that adds Universal Headshots, Backstabs and Critical Hits. It's highly customisable, and rather good fun!

You can disable any and all of the features in this mod. Modify how often Crits land, alter the damage output, disable visual cues or even change the sound effect!

Note to modders: if you want your melee weapons to be recognised by the mod's Backstab feature just make sure your custom melee attack is using a puff with the 'Melee' damageType. Critical Shots should catch it after that, unless you're using some jank method of calling melee attacks.

There's not much else to say, really. So here's a download! mk-crits[20200420].pk3 (813kb)

Spoiler: changes
Last edited by Mikk- on Mon Apr 20, 2020 5:45 am, edited 8 times in total.
User avatar
Mikk-
yooooooooooo
 
Joined: 30 Jun 2009
Location: Somewhere off Kanagawa
Discord: Mikk0451#3922

Re: [v1.0] Critical Shots - Headshots, Backstabs and Crits!

Postby Lagi » Sat Apr 04, 2020 3:03 am

nice, I was wondering if someone would do stuff like this, so I could use it with my mod [pls :wink: ]. I cannot open your .pk with Slade.

headshot and backstab is great, because it elevate the gameplay, requiring (or rather rewarding) skillful play. While critical is just a random hit chance? :/ Would be great to land critical strike only in some monster opening times like: when he attack, when he is in pain, when he is unaware (in Spawn state).

headshot need to turn off AutoAim - its quite obvious, but worth to mention.

the backstab angle requirment is too harsh. Sometimes I work out, very nice flank position or the monster turn slightly (still showing back) and I was not rewarded with flash >: - [

Graphical effects (some magic flashes) dont fit to doom games. I expect gore ( head blownout, brains, blood fountains :) ).
Headshot sound effect is bad.

Apparently I can do backstab only with fist (in doom)? Make sens, that backstab with shotgun shells do the same damage as from front :D
User avatar
Lagi
 
Joined: 23 Jun 2018
Location: Thou shalt alter thy beliefs with new evidence

Re: [v1.0] Critical Shots - Headshots, Backstabs and Crits!

Postby Mikk- » Sat Apr 04, 2020 8:12 am

Lagi wrote:nice, I was wondering if someone would do stuff like this, so I could use it with my mod [pls :wink: ]. I cannot open your .pk with Slade.

There was a typo in my .pk3 building script which was messing with things. v1.1 should fix that. You're welcome to use this in your own projects.

headshot and backstab is great, because it elevate the gameplay, requiring (or rather rewarding) skillful play. While critical is just a random hit chance? :/ Would be great to land critical strike only in some monster opening times like: when he attack, when he is in pain, when he is unaware (in Spawn state).

Yeah crits were a kind of last-minute addition, I might change them up a bit for a later release.

headshot need to turn off AutoAim - its quite obvious, but worth to mention.

I wouldn't have noticed that, thanks to me never using autoaim.

the backstab angle requirment is too harsh. Sometimes I work out, very nice flank position or the monster turn slightly (still showing back) and I was not rewarded with flash >: - [

I guess that's just an unfortunate quirk of the system. The angle is 45 degrees either side of the back, so you have a 90 degree arc to work with.

Graphical effects (some magic flashes) dont fit to doom games. I expect gore ( head blownout, brains, blood fountains :) ).
Headshot sound effect is bad.

If you dislike the audiovisual cues, I suggest you either change them or disable them in the options menu.
I didn't have any other effects (visual and sound) to work with at the time, I figured just a little bit of audiovisual feedback was required. I'd like to experiment with better effects, but at a later time. I'm welcome to any submissions/requests in that regard

Apparently I can do backstab only with fist (in doom)? Make sens, that backstab with shotgun shells do the same damage as from front :D

Yes, backstabs are only for melee attacks, it would be rather overpowered to allow backstabbing with a BFG!

Also v1.1 is released, I've tried to make backstabbing more universal by adding a catch mechanism for the melee attack damagetype. Also fixing the .zip/.pk3 structure so it no longer breaks when opening with slade.
User avatar
Mikk-
yooooooooooo
 
Joined: 30 Jun 2009
Location: Somewhere off Kanagawa
Discord: Mikk0451#3922

Re: [v1.1] Critical Shots - Headshots, Backstabs and Crits!

Postby Enjay » Sat Apr 04, 2020 9:46 am

Cool mod. I look forward to trying it in anger later on but it seems nice so far. You're probably aware but:

Code: Select allExpand view
Script warning, "mk-crits[20200404].pk3:zscript.txt" line 214:
Truncation of floating point value
Script warning, "mk-crits[20200404].pk3:zscript.txt" line 222:
Truncation of floating point value
Script warning, "mk-crits[20200404].pk3:zscript.txt" line 223:
Truncation of floating point value
Script warning, "mk-crits[20200404].pk3:zscript.txt" line 228:
Truncation of floating point value
Script warning, "mk-crits[20200404].pk3:zscript.txt" line 255:
Truncation of floating point value


Console warnings with developer messages enabled.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: [v1.1] Critical Shots - Headshots, Backstabs and Crits!

Postby Mikk- » Sat Apr 04, 2020 9:51 am

Thanks for noticing that Enjay! I forgot to re-enable developer options after a recent ini-wipe. These will be fixed in the next update, whenever that may be (probably tomorrow, now)
User avatar
Mikk-
yooooooooooo
 
Joined: 30 Jun 2009
Location: Somewhere off Kanagawa
Discord: Mikk0451#3922

Re: [v1.1] Critical Shots - Headshots, Backstabs and Crits!

Postby Lagi » Sat Apr 04, 2020 9:56 am

Code: Select allExpand view
// Height is the factor of which the head is calculated from the actor's 'Height' variable.

const headshot_height = 0.2;


:/
was hoping this use a hitBOX (top/bottom/left/right - threshold).
As you mention in code heretic gargoyle has wings higher that head, also:
User avatar
Lagi
 
Joined: 23 Jun 2018
Location: Thou shalt alter thy beliefs with new evidence

Re: [v1.1] Critical Shots - Headshots, Backstabs and Crits!

Postby Mikk- » Sat Apr 04, 2020 10:22 am

Lagi wrote:
Code: Select allExpand view
// Height is the factor of which the head is calculated from the actor's 'Height' variable.

const headshot_height = 0.2;


:/
was hoping this use a hitBOX (top/bottom/left/right - threshold).
As you mention in code heretic gargoyle has wings higher that head, also:

Well I'm sorry my mod doesn't meet your expectations, here. I have another version of universal headshots here. That uses actors for headshots. also it's incredibly easy to add new monsters to the array, so just plugging in "Beast" into the "headshots_ignore" array would simply make the WereDragon unable to be headshot.
User avatar
Mikk-
yooooooooooo
 
Joined: 30 Jun 2009
Location: Somewhere off Kanagawa
Discord: Mikk0451#3922

Re: [v1.1] Critical Shots - Headshots, Backstabs and Crits!

Postby Lagi » Sat Apr 04, 2020 10:54 am

im sorry that you feel pity for me :D

woo, what a lovely head hitbox that seem to be it! thanks
User avatar
Lagi
 
Joined: 23 Jun 2018
Location: Thou shalt alter thy beliefs with new evidence

Re: [v1.1] Critical Shots - Headshots, Backstabs and Crits!

Postby Samarai1000 » Sat Apr 04, 2020 3:45 pm

This is very nicely done! While I understand the visuals probably aren't to everyone's tastes, there's only so much you can do while retaining universal compatibility, and they are optional. I'm probably going to use the headshots in what I'm working on, but how hard would it be for me to add specific monster death states for headshots? Preferably seperate Death and XDeath states for headshot kills, but beggars can't be choosers, and I have no clue how ZScript works.
Samarai1000
 
Joined: 26 Sep 2016

Re: [v1.1] Critical Shots - Headshots, Backstabs and Crits!

Postby Mikk- » Sat Apr 04, 2020 4:04 pm

For a custom monster's death state you can just have custom death/xdeath states labelled as: "Death.Headshot" or "XDeath.Headshot". Nothing else required, well aside from sprites. re: the visuals, I might end up finding/making several visual sprites and have them toggleable by CVar, so you could have a bloody mess, or some other visual graphic aside from the current ones. Though that's just a case of coding new effects and making/finding their respective sprites.
User avatar
Mikk-
yooooooooooo
 
Joined: 30 Jun 2009
Location: Somewhere off Kanagawa
Discord: Mikk0451#3922

Re: [v1.1] Critical Shots - Headshots, Backstabs and Crits!

Postby BradmanX » Wed Apr 08, 2020 11:47 am

Hey, I've tried out the mod, gotta say it's pretty neat, do you think you could maybe add an option to make the backstab and/or the headshot an instant kill for non-boss enemies, enemies up to a certain player-defined health value, and/or damage past a certain player defined value?
User avatar
BradmanX
 
Joined: 23 Nov 2012

Re: [v1.2] Critical Shots - Headshots, Backstabs and Crits!

Postby Mikk- » Thu Apr 09, 2020 11:10 am

Interesting ideas! I adapted one of your ideas and implemented it. You can now insta-kill monsters with low base-hp. This can be disabled entirely, however.

crits have also been overhauled, they are no longer random, and are in fact only achievable if you damage an enemy at the very beginning of their attack frames. You can try this out now in version 1.2, download link on main page.
User avatar
Mikk-
yooooooooooo
 
Joined: 30 Jun 2009
Location: Somewhere off Kanagawa
Discord: Mikk0451#3922

Re: [v1.2] Critical Shots - Headshots, Backstabs and Crits!

Postby Lagi » Thu Apr 09, 2020 12:15 pm

Excellent! Its very skillful game now.
I swear I can feel, when trooper is about to shoot :D Honestly its rather lottery. But this risk is like in casino (i never been in casino). Great fun.

Head shot is too easy.

I have still problem with mastering backstabing. I sometimes freeze the game, to make myself sure it work. Plus running around with fist, was not a way to make your life easier at the first place :D . I think its because the enemies are turning too fast, and I have to count on infights.

Need to give another go, much fun - great job Mikk

EDIT:
you cannot backstab with chainsaw - :D

backstab is impossible in normal game. Doom monsters are always aware where you are. I try to walk around them, but they "hear" me. Maybe if backstab was combine with some sneak mechanism (like when you crouch, monster dont detect you (unless in very front 45 cone of view), as if you were invisible).
Backstab arch should be 135 degree IMO, and it still be hard, I would set it to 180 degree (half of side monster frame).
User avatar
Lagi
 
Joined: 23 Jun 2018
Location: Thou shalt alter thy beliefs with new evidence

Re: [v1.2] Critical Shots - Headshots, Backstabs and Crits!

Postby jankespro12 » Thu Apr 09, 2020 12:44 pm

Can you add sounds from Team Fortress 2?
jankespro12
Banned User
 
Joined: 18 Dec 2019
Operating System: Windows 10/8.1/8/201x 32-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia (Modern GZDoom)

Re: [v1.2] Critical Shots - Headshots, Backstabs and Crits!

Postby Tohg7. » Fri Apr 10, 2020 9:12 am

Could you make instakill headshots togglable so 4x damage headshots can be used for people who prefer it?
Tohg7.
 
Joined: 08 Sep 2019
Discord: Tohg7. #6300
Github ID: Cheryl
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Next

Return to Gameplay Mods

Who is online

Users browsing this forum: Artman2004, AvzinElkein, haxray, Old Slimer and 22 guests