Dod Disable Flags
by Wilson [29th ID] · 2007-11-19 · 4 replies · 7992 views · 219 downloads
From the first post
rn
rnDOD Disable Flags
rn by Wilson [29th ID]
rn visit our Realism Unit at www.29th.org
rn
rn Made for the DoD Plugins Community
rn www.dodplugins.net
rn
rn DESCRIPTION
rn Provides admin commands to enable/disable flag capping,
rn as well as a CVAR that will automatically disable capping
rn on map change if set.
rn
rn This plugin does NOT remove the flags. Removing flags prevents
rn you from adding them back in mid-game. This plugin simply
rn toggles whether or not players can touch flags or capture areas.
rn This method is much more efficient than removing flags and does
rn not have an effect on spawnpoints in certain maps that are
rn dependant on flags.
rn
rn COMMANDS
rn amx_cvar dod_disableflags <0/1>
rn Setting to 1 will automatically disable flags on map change
rn disable_flags
rn Admin command to disable the flags mid-game
rn enable_flags
rn Admin command to enable the flags mid-game
rn
rn NOTES
rn By default, ADMIN_CVAR is required for the console commands. You
rn can change this in the #define ADMIN_REQ line below.
rn
rnIf you are currently using my DoD MapSettings to disable flags, use this instead - it's much more efficient.
The thread
All 5 posts from 5 people on Dod Disable Flags, kept as they were written.
Threads: 57
Joined: Oct 2005
I'm a bit overdue for a plugin release so I figured I'd whip this one up for ya's. If you're using my DoD MapSettings to remove your flags, use this instead - it's much more efficient.rnrnDOD Disable Flagsrn by Wilson [29th ID]rn visit our Realism Unit at www.29th.orgrn rn Made for the DoD Plugins Communityrn www.dodplugins.netrn rn DESCRIPTIONrn Provides admin commands to enable/disable flag capping,rn as well as a CVAR that will automatically disable cappingrn on map change if set.rn rn This plugin does NOT remove the flags. Removing flags preventsrn you from adding them back in mid-game. This plugin simplyrn toggles whether or not players can touch flags or capture areas.rn This method is much more efficient than removing flags and does rn not have an effect on spawnpoints in certain maps that are rn dependant on flags.rn rn COMMANDSrn amx_cvar dod_disableflags <0/1>rn Setting to 1 will automatically disable flags on map changern disable_flagsrn Admin command to disable the flags mid-gamern enable_flagsrn Admin command to enable the flags mid-gamern rn NOTESrn By default, ADMIN_CVAR is required for the console commands. Yourn can change this in the #define ADMIN_REQ line below.rnrnIf you are currently using my DoD MapSettings to disable flags, use this instead - it's much more efficient.
Threads: 7
Joined: Jun 2006
Nice Job Wilson. As always, Thank you for the contribution = )rnrn-BC
Threads: 24
Joined: Oct 2006
;8124']This plugin does NOT remove the flags. Removing flags prevents you from adding them back in mid-game.rnrnIf you add the following lines to your disable routine, the flags will 'disappear'.
set_pev(ent, pev_rendermode, kRenderTransAlpha)rnset_pev(ent, pev_renderamt, 0.0)rnIn a similar plugin I wrote (inspired by your fine work), I use a 'renderamt' value of 128.0 to make the flags translucent. Kinda giving them the appearance of being disabled.rnrnThen to make them 'reappear', just use...rnset_pev(ent, pev_rendermode, kRenderNormal)rnrnI also added a fm_DispatchSpawn(ent) immediately after the while statement finds a valid entity. Doing this resets the flag to its default owner.rnrnCaution, you don't want to use it on dod_charlie. Otherwise the Allies won't be able to get off the beach (lol). If fact, I disable my plugin on any object map.Threads: 11
Joined: Jun 2008
what would i put in the plug to make every map not have a flag or even disable the flag whichever is possible (would like them to be gone alltogther
Threads: 75
Joined: Nov 2007
Try the plugin attached.rnrn
INFO:rnrn- On/off | 1 = on - 0 = OFFrndod_nf "1"rnrnrn- Cheers!

