[UDMF] No Monsters mode flag

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [UDMF] No Monsters mode flag

Re: [UDMF] No Monsters mode flag

by Gez » Wed Nov 30, 2016 8:29 am

Yes. And inversely you could put COUNTKILL on things that aren't monsters, such as barrels.

Re: [UDMF] No Monsters mode flag

by Nevander » Wed Nov 30, 2016 1:08 am

Ghastly wrote:
Nevander wrote:But won't that up the monster count by 1 for every MapSpot and result in a ton of unkillable monsters? Or is ZDoom smart enough to see it's not an actual monster?
It's only counted if it has the +CountKill flag, which +IsMonster doesn't add automatically. If you want to make absolutely sure, throw -CountKill on it, but that's not necessary.
Ahh I see. I knew about +COUNTITEM and +COUNTSECRET but not +COUNTKILL. I guess I always assumed that if something is a monster then it will always count as one. Does that mean you could define a new monster actor and do -COUNTKILL on it and it wouldn't count? Like make little worm enemies that attack you but aren't counted as an actual monster... kinda like how Blood had the rats that would attack you.

Re: [UDMF] No Monsters mode flag

by Ghastly » Tue Nov 29, 2016 11:32 am

Nevander wrote:But won't that up the monster count by 1 for every MapSpot and result in a ton of unkillable monsters? Or is ZDoom smart enough to see it's not an actual monster?
It's only counted if it has the +CountKill flag, which +IsMonster doesn't add automatically. If you want to make absolutely sure, throw -CountKill on it, but that's not necessary.

Re: [UDMF] No Monsters mode flag

by Nevander » Fri Nov 25, 2016 11:19 pm

ZzZombo wrote:You can create your own subclass of MapSpot and give it +ISMONSTER flag. Bam, it's affected by the setting.
RIP me. Never even thought of doing that...

EDIT: But won't that up the monster count by 1 for every MapSpot and result in a ton of unkillable monsters? Or is ZDoom smart enough to see it's not an actual monster?

Re: [UDMF] No Monsters mode flag

by ZzZombo » Fri Nov 25, 2016 11:02 pm

You can create your own subclass of MapSpot and give it +ISMONSTER flag. Bam, it's affected by the setting.

[UDMF] No Monsters mode flag

by Nevander » Tue Nov 22, 2016 6:18 am

If it would be possible, it would come in handy to be able to allow or disallow other things besides monsters in no monsters mode. You might wonder when this would come in handy, well, [wiki]SpawnSpot[/wiki] is a good example. The wiki page states:
Note that this function does not make teleport fog appear when the actor(s) spawn. Since the teleport effect is simply another actor, you can manually do this by spawning a TeleportFog actor at the same time.
This of course means that since a MapSpot thing is NOT a monster, it WILL spawn in no monsters mode and thus will also cause the TeleportFog actor to spawn when called upon by the script. If it were possible to tick off a flag checkbox to disallow the thing to spawn even in no monsters mode, this issue would be resolved since the MapSpot would not be present to spawn the fog at. Just like if you deselect a MapSpot to be on a specific skill setting, that MapSpot will not exist on the map when played on that skill and thus isn't involved with a script which would otherwise use it.

Top