Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › General › Requests for DoD Plugins › Realism Mode/BCT Mode
5 posts, 4 people · 4,277 views Thread Rating: ★★★★★
closedRealism Mode/BCT Mode
Started by Myers [93rd ID] on 11-18-2008, 03:39 AM
M Myers [93rd ID]
started this thread
Posts: 11
Threads: 2
Joined: Apr 2007
11-18-2008, 03:39 AM #1

I am the captain of the 93rd ID, realism for DoD 1.3. And I was wondering if there is or if a plugin can be made to change up the game type. I want something that goes from a pub to a realism, so the realism plugins I have installed in the server get activated and the cvars used only when I turn on realism mode. I also need one if not the same to be used for BCT, like the plugins such as infinate grenades be turned on and stuff like that. If this is possible please tell me how to make it, or help me make it.

ghzero
posted here
Posts: 160
Threads: 42
Joined: Sep 2007
11-18-2008, 07:44 AM #2

you need an plugin that observe an cvar to toggle on/off realim/fun-plugins by getting theirs names from your list to pause/unpause. that is the simple way. another way will be to add an new and same cvar in every plugin to toggle realism/fun ..but that is more time-expensive..

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
11-18-2008, 12:13 PM #3

Or make 2 plugins.ini and rename them from time to time.. load this plugin and u should be able to do it ingame http://forums.alliedmods.net/showthread.php?p=677802

M Myers [93rd ID]
started this thread
Posts: 11
Threads: 2
Joined: Apr 2007
11-18-2008, 12:26 PM #4

ok im kinda fooling around with making my own plugins cause i know nothing about it...im working from compare and contrast to source codes that i have for other plugins...this is just the registering part of my plugin..rnrn

rnnew p_enabled; rnrnpublic plugin_init() {rn	register_plugin(PLUGIN, VERSION, AUTHOR)rn	register_cvar("dod_modes", "Version 1.0 by  Cpt. Myers [93rd ID]", FCVAR_SERVER|FCVAR_SPONLY)rn	g_dod_public = register_cvar("dod_public","1, 0")rn	g_dod_realism = register_cvar("dod_realism","1, 0")rn	g_dod_bct = register_cvar("dod_bct","1, 0")rn	g_bct = register_cvar("bct","1, 0")rn	g_realism = register_cvar("realism","1, 0")rn	g_public = register_cvar("public","1, 0")rn	register_dictionary("dod_modes.txt")rn}	rn
rnrnand the cvarsrnrnamx_cvar dod_modesrn Lists cvar commands for modes and tells which one is active.rn amx_cvar dod_public <1/0> rn Setting 1 will be used as default on map loadrn amx_cvar realism <1/0> rn Setting 1 will be used mid-game to turn into a realismrn amx_cvar bct <1/0>rn Setting 1 will be used mid-game to turn into a BCT.rn amx_cvar dod_realism <1/0>rn Setting 1 will be used as default on map load (null if dod_public = 1 or dod_bct = 1)rn amx_cvar dod_bct <1/0>rn Setting 1 will be used as default on map load (null if dod_public = 1 or dod_realism = 1) rn rnrnplease let me know what i need to change before i go on

H h0_noMan
posted here
Posts: 80
Threads: 11
Joined: Dec 2007
11-18-2008, 12:44 PM #5

Why dont you use 2 specific CFG on your server (public.cfg & realism.cfg)nnThe public CFG will desactivate all realism plugins and the realism will activate them.

Archive › Old Forum Threads › General › Requests for DoD Plugins › Realism Mode/BCT Mode
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC