Land Mine + Coop

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Land Mine + Coop

Post by Tormentor667 »

Is it possible to create a Land Mine that works in Coop-mode? Meaning that teammates won't make the mines explode. Here is the code that I have at the moment but these landmines are not coop-friendly. This is high essential for Stronghold
Spoiler:
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: Land Mine + Coop

Post by Cutmanmike »

If you can make new playerclasses, try giving the mine the GHOST flag and give the player's class the THRUGHOST flag.

Code: Select all

actor DoomPlayer2 : DoomPlayer
{
+THRUGHOST
}
^Don't forget to clear and add that playerclass in keyconf!

If you can't afford to make changes to the playerclasses, you can give all the players an inventory item that gives the flag when they enter the game.
User avatar
Rachael
Posts: 13968
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Land Mine + Coop

Post by Rachael »

Shouldn't that be the other way around?

Like giving the player the GHOST flag, and the mine the THRUGHOST flag.
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: Land Mine + Coop

Post by Cutmanmike »

Maybe. I can't check right now though.
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Re: Land Mine + Coop

Post by Tormentor667 »

That sounds like a plan, but what's right now? :)
Locked

Return to “Editing (Archive)”