How to remove things from map (without editing any wads)?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
mba
Posts: 8
Joined: Sat Jan 22, 2005 10:09 am
Location: Hungary

How to remove things from map (without editing any wads)?

Post by mba »

Hi.
I'd like to play deathmatch in such mode, where invulnerability and invisibility is removed. How can I do this?
I've read ACS scripting page and saw Thing_Remove(), but i'm looking for another solution, like a console command which removes an item from all maps, like
<REMOVECOMMAND> <THING_ID/NAME>
...If such command isn't present, my question is: how to load ACS scripts to zdoom after i compiled to *.o???
I know, i should find it in the documentation, but i couldn't (really!).

Sorry, I'm n00b in some things of zdoom :roll:
User avatar
Biff
Posts: 1061
Joined: Wed Jul 16, 2003 5:29 pm
Location: Monrovia, CA, USA

Post by Biff »

I think you should just edit the map to remove the items you don't want. You will have to use a map editor, even if you want to write a script to remove the items, because the items have to be removed by tag number and map editing will be necessary to add tag numbers. It's easier to open the map in an editor and alter the properties of those items so that they do not appear in multiplayer mode.

Alternatively, with the proper dmflags, those items will not respawn so you could just "use" them all, then get to play. dmflags are somewhat broken right now so editing the map is the best way. Someone here, including me, would be happy to help you with editing the map if needed.
mba
Posts: 8
Joined: Sat Jan 22, 2005 10:09 am
Location: Hungary

Post by mba »

Thank you!
I have a map editor and can edit a map (i hope:)), but I was curious, that is there any way to remove items from map, without editing it, but if not, that's all :)
User avatar
*Viper*
Posts: 88
Joined: Tue Jul 15, 2003 4:47 pm
Contact:

Post by *Viper* »

How about a DECORATE solution?

Copy-paste this into a new text file, named decorate.txt. This will basically replace the Invuln and Blur spheres with things that will be removed from the level instantly.

Code: Select all

ACTOR RemoveInvulnerability 2022
{
 States
 {
  Spawn:
   PINV A 0
   Stop
 }
}

ACTOR RemoveInvisibility 2024
{
 States
 {
  Spawn:
   PINS A 0
   Stop
 }
}
Then use your normal command line for starting your deathmatch game, but add decorate.txt after the name of your level you are playing. (example: zdoom -file dm1.wad decorate.txt -altdeath -host 1)
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Post by wildweasel »

Viper: That'll work, provided that MBA isn't actually going to use this in Skulltag or ZDaemon (which don't support Decorate monsters).
NiGHTMARE
Posts: 3463
Joined: Sat Jul 19, 2003 8:39 am

Post by NiGHTMARE »

You could always use a DEHACKED patch which makes the items non-pickupable and invisible.
Post Reply

Return to “General”