PDA

View Full Version : Dod Disable Flags


Wilson [29th ID]
11-19-2007, 05:40 PM
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.

DOD Disable Flags
by Wilson [29th ID]
visit our Realism Unit at www.29th.org

Made for the DoD Plugins Community
www.dodplugins.net

DESCRIPTION
Provides admin commands to enable/disable flag capping,
as well as a CVAR that will automatically disable capping
on map change if set.

This plugin does NOT remove the flags. Removing flags prevents
you from adding them back in mid-game. This plugin simply
toggles whether or not players can touch flags or capture areas.
This method is much more efficient than removing flags and does
not have an effect on spawnpoints in certain maps that are
dependant on flags.

COMMANDS
amx_cvar dod_disableflags <0/1>
Setting to 1 will automatically disable flags on map change
disable_flags
Admin command to disable the flags mid-game
enable_flags
Admin command to enable the flags mid-game

NOTES
By default, ADMIN_CVAR is required for the console commands. You
can change this in the #define ADMIN_REQ line below.

If you are currently using my DoD MapSettings to disable flags, use this instead - it's much more efficient.

Box Cutter
11-19-2007, 09:30 PM
Nice Job Wilson. As always, Thank you for the contribution = )

-BC

Vet
03-30-2008, 06:56 PM
;8124']This plugin does NOT remove the flags. Removing flags prevents you from adding them back in mid-game.

If you add the following lines to your disable routine, the flags will 'disappear'. set_pev(ent, pev_rendermode, kRenderTransAlpha)
set_pev(ent, pev_renderamt, 0.0)
In 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.

Then to make them 'reappear', just use...
set_pev(ent, pev_rendermode, kRenderNormal)

I also added a fm_DispatchSpawn(ent) immediately after the while statement finds a valid entity. Doing this resets the flag to its default owner.

Caution, 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.

=*MDMILBURN*=
10-25-2009, 03:15 PM
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

Dr.G
10-25-2009, 10:05 PM
Try the plugin attached.

INFO:

- On/off | 1 = on - 0 = OFF
dod_nf "1"


- Cheers!