New custom CommanderKeen enemy doesn't trigger Tag666 lines?

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

New custom CommanderKeen enemy doesn't trigger Tag666 lines?

Postby lizardcommando » Sat Jun 18, 2022 12:07 am

I made a new enemy that is supposed to replace the Commander Keen enemy, but the doors I tagged do not activate the special Tag 666 line when I kill it. I'm not really sure what I am doing wrong. I thought if I added A_KeenDie to the enemy's death sequence, it should trigger whatever is tagged with the special Tag 666 line.

EDIT: OK, I just tested the custom enemy in MAP32 and that seemed to have worked there... Maybe it's the custom map I am making that doesn't have the doors properly tagged, or maybe the MAPINFO is messed up...
User avatar
lizardcommando
Thread killer
 
Joined: 07 Sep 2006
Location: Boringland, California

Re: New custom CommanderKeen enemy doesn't trigger Tag666 li

Postby wildweasel » Sat Jun 18, 2022 8:11 am

Are you tagging a line as 666, or a sector?
User avatar
wildweasel
from a different perspective.
Moderator Team Lead
 
Joined: 15 Jul 2003

Re: New custom CommanderKeen enemy doesn't trigger Tag666 li

Postby lizardcommando » Sat Jun 18, 2022 1:01 pm

I am tagging the sector as 666.

Do I also need to change anything in MAPINFO for the custom map?
User avatar
lizardcommando
Thread killer
 
Joined: 07 Sep 2006
Location: Boringland, California

Re: New custom CommanderKeen enemy doesn't trigger Tag666 li

Postby Enjay » Sat Jun 18, 2022 1:48 pm

Personally, I never use these built-in actions any more, but it is certainly my understanding that A_KeenDie should work on any map with door sectors tagged 666. I don't *think* it requires anything to be added to MAPINFO like some of the other special actions do.

Of course, that doesn't help track down why it isn't working for you. The obvious things have been suggested so seeing the map and the actor code might be required.

If you are making your own map, and it is in a suitable format, then doing it via ACS is another option (and would also be more flexible).
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: New custom CommanderKeen enemy doesn't trigger Tag666 li

Postby lizardcommando » Sat Jun 18, 2022 2:04 pm

Here's the MAPINFO stuff I have:

Code: Select allExpand view
map MAP01 "Tom Nook's Death Cage 20XX"
cluster 1
sky1 SKY1
forcenoskystretch
music D_RUNNIN
next EndGameC

CyberdemonSpecial
specialaction_opendoor

clusterdef 1
//
flat FLAT1_1
//
exittext
"You killed Tom Nook, but your beloved pet Daisy is nowhere to be found.
What a shame."


Here is the new Keen replacement:

Code: Select allExpand view
ACTOR TomNook replaces CommanderKeen
{
  Health 666
  Radius 16
  Height 72
  Mass 10000000
  PainChance 256
  +SOLID
  +SPAWNCEILING
  +NOGRAVITY
  +SHOOTABLE
  +COUNTKILL
  +NOICEDEATH
  +ISMONSTER
  PainSound "grunt/pain"
  DeathSound "tomnook/dead"
  States
  {
  Spawn:
    TNOK A -1
    Loop
  Death:
    TNOK AB 3
    TNOK C 3 A_Scream
    TNOK DEFGH   3
    TNOK I 3
    TNOK J 3
    TNOK K 3 A_KeenDie
    TNOK L -1
    Stop
  Pain:
    TNOK M 4
    TNOK M 8 A_Pain
    Goto Spawn
  }
}
User avatar
lizardcommando
Thread killer
 
Joined: 07 Sep 2006
Location: Boringland, California

Re: New custom CommanderKeen enemy doesn't trigger Tag666 li

Postby Enjay » Sat Jun 18, 2022 2:30 pm

Well, I don't know if this is what you want to hear or not but it "works for me™".

Using your code, except changing the TNOK sprites to TROO so that I could see them, I made a very simple map, put a commander keen in it and ran it. When I kill the imp hanging from the ceiling, the door opens.
You do not have the required permissions to view the files attached to this post.
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: New custom CommanderKeen enemy doesn't trigger Tag666 li

Postby lizardcommando » Sat Jun 18, 2022 11:48 pm

I'm convinced it's the map that I am working on that is messing up. The Tag 666 works fine in MAP32 with my custom Keen replacement. I tagged the sector that needs the Tag 666. Not sure what else I am doing wrong here.
User avatar
lizardcommando
Thread killer
 
Joined: 07 Sep 2006
Location: Boringland, California

Re: New custom CommanderKeen enemy doesn't trigger Tag666 li

Postby Blue Shadow » Sun Jun 19, 2022 1:56 am

Post the map/mod, then.
User avatar
Blue Shadow
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: New custom CommanderKeen enemy doesn't trigger Tag666 li

Postby Gez » Sun Jun 19, 2022 2:01 am

A_KeenDie opens a door. Have you checked for the usual reasons a door would fail? For example, a door raises to the height of the lowest neighboring ceiling, minus 4. So if you have a setup where you have two separate doors that touch, each one will block the others -- you'll actually see the door plunging slightly deeper as instead of being at height 0, it'll go to height -4...
Gez
 
 
 
Joined: 06 Jul 2007

Re: New custom CommanderKeen enemy doesn't trigger Tag666 li

Postby lizardcommando » Sun Jun 19, 2022 4:55 pm

Ok, I think it was basically what Gez was saying was the issue. I thought A_KeenDie would work if you use it for doors and platforms. I had set the floor height and ceiling height both to 0 instead of 128. It seems to be working now.
User avatar
lizardcommando
Thread killer
 
Joined: 07 Sep 2006
Location: Boringland, California


Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests