Create monster that does not count in kills

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
NaturalTvventy
Posts: 92
Joined: Sat May 22, 2010 9:38 am

Create monster that does not count in kills

Post by NaturalTvventy »

Hi all,

I'd like one of custom monsters to not count towards kills (because it's a machine). Think lost souls in the original DOOM2. Is there a way to do this with ACS?

Thanks.
User avatar
TheMightyHeracross
Posts: 2100
Joined: Sun Aug 18, 2013 9:41 am
Location: Philadelphia, PA

Re: Create monster that does not count in kills

Post by TheMightyHeracross »

You don't use ACS for that, you use DECORATE or ZScript in the actor's definition. Simply unset the COUNTKILL flag, like so:

Code: Select all

-COUNTKILL
NaturalTvventy
Posts: 92
Joined: Sat May 22, 2010 9:38 am

Re: Create monster that does not count in kills

Post by NaturalTvventy »

Thanks! I’m using ZDoom so no ZScript. How can it be done with decorate? Does the monster need to be created completely using decorate?

Thanks.
User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Create monster that does not count in kills

Post by Enjay »

You can add the

Code: Select all

-COUNTKILL
line to the decorate of the monster concerned as TheMightyHeracross said (put it towards the end of the section where the other flags are) or, if you only want some of them not to count, you can inherit from the original one and only change the flag. e.g. this creates a zombieman that does not count towards the kill total and can be placed using edit number 1234*. So, only the ones specifically placed using a map editor and using number 1234 would not count, the standard zombieman would be unchanged.

Code: Select all

actor NJTestZombieman : Zombieman 1234
{
	-COUNTKILL
}
*In current GZDoom it's best to define editor numbers in MAPINFO but given that you are using ZDoom, that won't be an option.

The same actor can be used to auto-replace all zombiemen like this:

Code: Select all

actor NJTestZombieman : Zombieman replaces Zombieman
{
	-COUNTKILL
}
Depends exactly what you want to do really.
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: Create monster that does not count in kills

Post by Graf Zahl »

Furthermore, MAPINFO based editor numbers were done before ZDoom was discontinued.
NaturalTvventy
Posts: 92
Joined: Sat May 22, 2010 9:38 am

Re: Create monster that does not count in kills

Post by NaturalTvventy »

Oh! That was easy. Thanks.
Post Reply

Return to “Scripting”