Damage types for mdk command

Moderator: GZDoom Developers

Post Reply
User avatar
Akira_98
Posts: 213
Joined: Sun Jun 27, 2010 2:45 pm
Location: AC District 7

Damage types for mdk command

Post by Akira_98 »

Adding a damage type parameter to the mdk command would be helpful in quickly and easily testing death by different damage types. It could simply be "mdk fire" or "mdk crush".
User avatar
Player701
 
 
Posts: 1640
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Damage types for mdk command

Post by Player701 »

Seconding this, sounds quite useful for testing.
User avatar
Lord Misfit
Posts: 221
Joined: Wed Dec 27, 2006 8:13 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Location: Canton, OH
Contact:

Re: Damage types for mdk command

Post by Lord Misfit »

Thirding this, not sure why I never thought about this in the past. :P
User avatar
FireHusky
Posts: 130
Joined: Sun Nov 25, 2012 3:02 pm

Re: Damage types for mdk command

Post by FireHusky »

:D That would be nice.
User avatar
The Zombie Killer
Posts: 1528
Joined: Thu Jul 14, 2011 12:06 am
Location: Gold Coast, Queensland, Australia

Re: Damage types for mdk command

Post by The Zombie Killer »

I'd find this very useful as well.
Last edited by The Zombie Killer on Wed Jun 17, 2015 6:54 am, edited 2 times in total.
User avatar
Ethril
Posts: 2677
Joined: Sun Nov 16, 2008 2:59 am
Location: with you in the dark

Re: Damage types for mdk command

Post by Ethril »

A way to specify if it should gib or not would be nice as well.
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: Damage types for mdk command

Post by Gez »

Assuming damagetypes go in, you could use mdk extreme to gib stuff. (The "extreme" damage type always gibs.)
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: Damage types for mdk command

Post by Edward-san »

I believe also the 'kill' command should get the damage type (it's easy with monsters/specific actors, but what about the suicide? won't be there a possibility that 'kill Normal' will kill a possible actor called 'Normal'?)
User avatar
NeuralStunner
 
 
Posts: 12326
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Damage types for mdk command

Post by NeuralStunner »

Kill would need a new version, I think. (TypeKill? Meh.)
User avatar
Nightfall
Posts: 555
Joined: Thu Aug 06, 2009 4:00 am
Location: Finland

Re: Damage types for mdk command

Post by Nightfall »

Maybe `kill self` for suicide?
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: Damage types for mdk command

Post by Edward-san »

Sadly you can create a monster called 'self':

Code: Select all

ACTOR self { +ISMONSTER }
So it won't work unless you, in the c++ source, add 'self' as a keyword or make it refer to the caller.

[edit] Or else, create a new command of the type "killself [damagetype]".
User avatar
The Zombie Killer
Posts: 1528
Joined: Thu Jul 14, 2011 12:06 am
Location: Gold Coast, Queensland, Australia

Re: Damage types for mdk command

Post by The Zombie Killer »

I reckon "suicide [damagetype]" would be a better name for it.
Last edited by The Zombie Killer on Wed Jun 17, 2015 6:54 am, edited 1 time in total.
User avatar
The Zombie Killer
Posts: 1528
Joined: Thu Jul 14, 2011 12:06 am
Location: Gold Coast, Queensland, Australia

Re: Damage types for mdk command

Post by The Zombie Killer »

Just thought I'd bump this thread with this:
I made a mini-project of sorts that adds a new "mdk2" command.

You just use it like you'd expect, for example, to kill an enemy with the "Fire" damagetype, just use "mdk2 fire".

It's written in C, so unless you know how to compile GDCC code, the source won't be of much use to you (but it's included anyway).
mdk2.pk3
(63.07 KiB) Downloaded 71 times
EDIT: Why the hell not, have a regular ACS version (GDCC libraries conflict with each other at the moment, so this one is safer to autoload):
mdk2_acs.pk3
(1.98 KiB) Downloaded 67 times
User avatar
Major Cooke
Posts: 8175
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Damage types for mdk command

Post by Major Cooke »

You should really put this up to git. 'Cuz this got in thanks to being on git just fine.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Damage types for mdk command

Post by Graf Zahl »

added
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”