Page 1 of 1

How to Enable Friendly Fire in Coop?

Posted: Fri Nov 02, 2012 6:32 pm
by yoni0505
I want to make a server that combines Coop and DM.
I can't figure out how to enable DM with COOP settings.

I want the match to end when one of the players get X kills, or when all the monsters on the map are dead and someone finishes the level.

I set the gamemode to Unknown, but there's no DM.
If is set it to DM the "kill all monsters to exit rule" doesn't apply.

Is there a way to do this thing?

RE: How to Enable Friendly Fire in Coop?

Posted: Fri Nov 02, 2012 6:35 pm
by -Jes-
1. Teamdamage (default 0, no known max, 1 = 100%)

2. There's no way to make the map end when all monsters are killed. However, the dmflag allow exit will allow people to use the map exit like normal.

RE: How to Enable Friendly Fire in Coop?

Posted: Fri Nov 02, 2012 6:42 pm
by Ænima
-Jes- wrote: 2. There's no way to make the map end when all monsters are killed.
Well I suppose one could do this with a custom ACS mod.

Code: Select all

script 888 OPEN
{
    while (GetLevelInfo(LEVELINFO_KILLED_MONSTERS) < GetLevelInfo(LEVELINFO_TOTAL_MONSTERS))
    delay(35);

    Exit_Normal(0);
}
Took me 20 seconds to write.


But there's no sv_* CCMD for doing it stock.

RE: How to Enable Friendly Fire in Coop?

Posted: Sat Nov 03, 2012 12:58 pm
by yoni0505
There is an option to finish the map only after all monsters are killed:
Image

I tried to add these commands:
teamplay 0
teamdamage 1

But there's still no friendly fire or DM.

RE: How to Enable Friendly Fire in Coop?

Posted: Sat Nov 03, 2012 4:58 pm
by someoneelse
Wwow, kill precentage (of monsters?), cool option, I want to know how to do it in console!
And, yoni, you need to write those in console, because things you add in Doomseeker are just added to commandline.

RE: How to Enable Friendly Fire in Coop?

Posted: Sat Nov 03, 2012 7:25 pm
by Torr Samaho
someoneelse wrote: Wwow, kill precentage (of monsters?), cool option, I want to know how to do it in console!
And, yoni, you need to write those in console, because things you add in Doomseeker are just added to commandline.
sv_killallmonsters_percentage in combination with sv_killallmonsters.

Note that these will solely prevent the players from exiting the map before the specified amount of monsters has been killed. It will not automatically exit the map once the amount is reached.

RE: How to Enable Friendly Fire in Coop?

Posted: Sun Nov 04, 2012 5:56 pm
by yoni0505
Ok I've wrote the commands in the console and now players can fight each other.
But when you kill a player it says you killed a teammate and doesn't count the kill.
How can I make it work like a normal deathmatch and not "team killing"?

RE: How to Enable Friendly Fire in Coop?

Posted: Sun Nov 04, 2012 5:59 pm
by Ænima
In that case, you'd have to actually change the gamemode to Deathmatch instead of coop.

Killing other players is hard-coded to be "teamkilling" in coop.

RE: How to Enable Friendly Fire in Coop?

Posted: Sun Nov 04, 2012 6:15 pm
by someoneelse
Deathmatch with monsters?

RE: How to Enable Friendly Fire in Coop?

Posted: Sun Nov 04, 2012 6:22 pm
by Ænima
I'd recommend grabbing SLade3 and experimenting with the GAMEMODE lump a little bit.

RE: How to Enable Friendly Fire in Coop?

Posted: Sun Nov 04, 2012 6:25 pm
by Ijon Tichy
couldn't you just do deathmatch with sv_nomonsters set to 0?

it's not forced to 1 after all