Forum

Recognizing a Deathmatch/Coop mod/SP mod

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Recognizing a Deathmatch/Coop mod/SP mod

Postby Baker » Wed Aug 20, 2014 12:48 am

Does anyone have any thoughts for how to recognize a standard Quake mod's intent for being deathmatch or sp, provided that they are playable by a single player (bots and such).

I will offer the examples of DMSP or Frikbot or Frogbot, all of which have the intent of "deathmatch 1" or at least "deathmatch <non-zero>" even in single player.

Part 2: In fact, is there a way to detect a bots mods?

[I do not care how involved the answer is, if I have to load up the progs and have the engine poke around in function lists or something crazy that is fine --- provided the result is reliable.]

My goal here is to do "Single Player->New Game" and have "deathmatch" set to something other than zero if such a mod is detected. I do not want to do this by gamedir name because that is a hack and not compatible with the possible development of other such mods.
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Re: Recognizing a Deathmatch/Coop mod/SP mod

Postby Spike » Wed Aug 20, 2014 4:48 am

you know the mod is deathmatch only if it has cvar_set("deathmatch", "1"); unconditionally inside worldspawn I guess. obviously that's just one indicator.. good luck with that... seriously.
Spike
 
Posts: 2908
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: Recognizing a Deathmatch/Coop mod/SP mod

Postby r00k » Wed Aug 20, 2014 4:43 pm

I would suggest creating a Mods option, and allow the user to create profile settings for each mod. Meaning, making in game shortcuts, when creating each entry into the mod section.
it would be no different than adding servers to a server list.

Mod name : CTF
gamedir: CTF
cvar settings: deathmatch 1 etc
r00k
 
Posts: 1110
Joined: Sat Nov 13, 2004 10:39 pm

Re: Recognizing a Deathmatch/Coop mod/SP mod

Postby Baker » Wed Aug 20, 2014 8:03 pm

I might have to just accept this one as impossible.

But I'm not quite there yet ...
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 2 guests