Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

DoD Custom Flags

by =|[76AD]|= TatsuSaisei · 2007-05-27 · 43 replies · 27106 views · 373 downloads

Read the thread (44 posts)

From the first post

Plugin allows server operators to change the flags displayed on all the default maps and MOST custom maps as well !!
n
nIf you find a map that the flags are not changed on and would like for it to work then by all means inform me of the map name and I will look into including support for it !! Otherwise this plugin has changed EVERY flag on EVERY map I have played on since adding it to the server....
n
nI have not and will not provide any models for the plugin (unless you have played on my server then you HAVE them already), that is for you the user to come up with... I may come up with a "default" set of models that advertise dodplugins.net though so some people have a base to start with as they make or have made their own custom flags...
n
nSO AGAIN, you NEED to provide your OWN models for this plugin to work... do not try using the plugin without having your own flags ready in the server files !!
n
nCVARS for amxx.cfg
n
n
dod_cpflag_set "models/76AD/AD76_Flags01.mdl" //multiflag model set (requires 8 bodystyles - see original flag set)ndod_cpflag_n "models/76AD/AD76_n.mdl" //single body style modelndod_cpflag_u "models/76AD/AD76_u.mdl" //single body style model

n
nNOTE: You MUST use all 3 cvars and you MUST have a model of your own for each of them ... if you only use 1 or 2 of the cvars then the plugin will be looking for MY models ...
n
nNOTE: The model used for the "set" must contain the AXIS flag as the first one (for those maps who do not normally use a "set" but individual files for each "type" of flag... the "set" is used to display the AXIS flag if used this way)

Files

dod_customize_flags.sma v76.1 2 KB 373 dl Download Compile

The thread

All 44 posts from 15 people on DoD Custom Flags, kept as they were written.

=|[76AD]|= TatsuSaisei
started this thread
Posts: 794
Threads: 54
Joined: May 2005
05-27-2007, 11:31 AM #1

Plugin allows server operators to change the flags displayed on all the default maps and MOST custom maps as well !!n nIf you find a map that the flags are not changed on and would like for it to work then by all means inform me of the map name and I will look into including support for it !! Otherwise this plugin has changed EVERY flag on EVERY map I have played on since adding it to the server....n nI have not and will not provide any models for the plugin (unless you have played on my server then you HAVE them already), that is for you the user to come up with... I may come up with a "default" set of models that advertise dodplugins.net though so some people have a base to start with as they make or have made their own custom flags...n nSO AGAIN, you NEED to provide your OWN models for this plugin to work... do not try using the plugin without having your own flags ready in the server files !!n nCVARS for amxx.cfgn n

 ndod_cpflag_set "models/76AD/AD76_Flags01.mdl" //multiflag model set (requires 8 bodystyles - see original flag set)ndod_cpflag_n "models/76AD/AD76_n.mdl" //single body style modelndod_cpflag_u "models/76AD/AD76_u.mdl" //single body style modeln
n nNOTE: You MUST use all 3 cvars and you MUST have a model of your own for each of them ... if you only use 1 or 2 of the cvars then the plugin will be looking for MY models ...n nNOTE: The model used for the "set" must contain the AXIS flag as the first one (for those maps who do not normally use a "set" but individual files for each "type" of flag... the "set" is used to display the AXIS flag if used this way)

M MBosta
posted here
Posts: 208
Threads: 30
Joined: Sep 2006
05-27-2007, 07:38 PM #2

Does this change the flagmodels them selves, or the flag hud icons?

| |OnEHiTwOnDeR|SoCal
posted here
Posts: 320
Threads: 37
Joined: Mar 2007
05-27-2007, 08:07 PM #3

this changes the FLAGS in a map

=|[76AD]|= TatsuSaisei
started this thread
Posts: 794
Threads: 54
Joined: May 2005
05-28-2007, 12:32 AM #4
Does this change the flagmodels them selves, or the flag hud icons?
n nflag MODELS, not SPRITES ... I could probably make some changes to include the DEFAULT icons... and possibly some custom ones... but there is only so much you can do with a little square... its the flags I was after cause EVERYONE sees those ...

M MBosta
posted here
Posts: 208
Threads: 30
Joined: Sep 2006
05-28-2007, 12:56 AM #5

ah ok. Thanks for clarifying.

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
06-02-2007, 04:59 PM #6

I believe you have a minor error in your code.rnrn

flag_n = register_cvar("dod_cpflag_n", "models/76AD/AD76_[color=Red][B]u[/B][/color].mdl");rnflag_u = register_cvar("dod_cpflag_u", "models/76AD/AD76_[color=red][B]u[/B][/color].mdl");
rnrnYou're assigning the same model to both the point_reset_model and the point_allies_model.rn
if(equali(key,"point_reset_model")) set_kvd(handle,KV_Value, flagn);rnelse if(equali(key,"point_axis_model")) set_kvd(handle,KV_Value, flagset);rnelse if(equali(key,"point_allies_model")) set_kvd(handle,KV_Value, flagu);
rnShouldn't it be something like:rn
flag_n = register_cvar("dod_cpflag_n", "models/76AD/AD76_[color=Red][B]n[/B][/color].mdl");
=|[76AD]|= TatsuSaisei
started this thread
Posts: 794
Threads: 54
Joined: May 2005
06-02-2007, 07:48 PM #7
I believe you have a minor error in your code.n n
flag_n = register_cvar("dod_cpflag_n", "models/76AD/AD76_[COLOR=red][B]u[/B][/COLOR].mdl");nflag_u = register_cvar("dod_cpflag_u", "models/76AD/AD76_[COLOR=red][B]u[/B][/COLOR].mdl");
n nYou're assigning the same model to both the point_reset_model and the point_allies_model.n
if(equali(key,"point_reset_model")) set_kvd(handle,KV_Value, flagn);nelse if(equali(key,"point_axis_model")) set_kvd(handle,KV_Value, flagset);nelse if(equali(key,"point_allies_model")) set_kvd(handle,KV_Value, flagu);
nShouldn't it be something like:n
flag_n = register_cvar("dod_cpflag_n", "models/76AD/AD76_[COLOR=red][B]n[/B][/COLOR].mdl");
n npublic typo ... fixing nown nand those models wouldn't be used by anyone else... they were just there for examplenMy personal version of the plugin is a bit more hardcoded and contains a bit more then I released... but good looking out !!

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
06-02-2007, 11:00 PM #8

True, its very minor indeed. And the only place it would even show up is on maps that use the individual flag models, like falaise, northbound, flugplatz, switch and some custom maps. And even then, it would only be noticable on the flags that were 'unowned' at the start.

johnnyskid
posted here
Posts: 66
Threads: 14
Joined: Aug 2006
06-25-2007, 09:09 PM #9

where do you put the new flag mdl? not understaning for sure..

johnnyskid
posted here
Posts: 66
Threads: 14
Joined: Aug 2006
06-25-2007, 09:44 PM #10

Ok, I have made a flag mdl. but when I did it. It crashed my server?rnrnWhat did I do wrong.

=|[76AD]|= TatsuSaisei
started this thread
Posts: 794
Threads: 54
Joined: May 2005
06-26-2007, 02:27 AM #11
Ok, I have made a flag mdl. but when I did it. It crashed my server?n nWhat did I do wrong.
n nyou put the model in a folder that you specified in the cvar you use to assign the flag ...n npaste the 3 cvar values you are using ... n nIf you say in the cvar to look simply in models for the flag model, then the flag model HAS to be located there...n nbtw .. you NEED to have all 3 cvars "filled" properly AND have model for each of them ... (or use the one model for all) but all 3 cvars HAVE to be used... you cant just pick and choose 1 or 2 of the 3 ... has to be ALL 3 ... (otherwsie plugin will be looking for MY models, and if your server doesnt have them ... CRASH)

johnnyskid
posted here
Posts: 66
Threads: 14
Joined: Aug 2006
06-26-2007, 12:30 PM #12

Thank you for your help. I have created a folder. as well 3 mdl files for the flags.rnrnthis is the path I did: as well put the folder named 36thid that contain the 3 models in models.rnrndod_cpflag_set "models/36thid/36id_n.mdl"rndod_cpflag_n "models/36thid/36id_u.mdl"rndod_cpflag_u "models/36thid/36thid_o.mdl"rnrnStill my server wont re-start.

=|[76AD]|= TatsuSaisei
started this thread
Posts: 794
Threads: 54
Joined: May 2005
06-26-2007, 02:30 PM #13
Thank you for your help. I have created a folder. as well 3 mdl files for the flags.n nthis is the path I did: as well put the folder named 36thid that contain the 3 models in models.n ndod_cpflag_set "models/36thid/36id_n.mdl"ndod_cpflag_n "models/36thid/36id_u.mdl"ndod_cpflag_u "models/36thid/36thid_o.mdl"n nStill my server wont re-start.
n nWell.. without actually being able to look in your server FTP I can not verify this... BUT ... looking at your cvars I note a discrepency in the "names" of the model files... One has th whereas the others don't .. could it simply be a mistype in your cvar (meaning the model name does NOT actually match what is stated in the actual cvar)n nI guess a way of "showing" me the contents of your models/36thid folder would be to take a screenshot and post it ... or contact me on AIM and setup a temp password for your ftp and allow me in to "look" ... otherwise I will be flying blind trying to help figure out what the issue might be...n nfor now though.. triple check your spellings... n nSide Note: why do you have an _n model listed in the "set" cvar... and a _u model in the _n cvar ... I realize these are just names you might be using for whatever reason... n nthe "set" cvar is for the multimodel flag file (common flag type on most maps that contains ALL the flag styles)n_n is for neutral flagn_u is for USA flag (havn't seen a british flag stand alone from the rest... most maps that use british team are also using the "set" model)n nI probably should have used _a instead of _u but then people might assume it meant Axis instead of Allies...

johnnyskid
posted here
Posts: 66
Threads: 14
Joined: Aug 2006
06-26-2007, 06:28 PM #14

Hey! thank you once again for your help with this.rnrnHere is the path I am now using. I re-named the mdl files aswell.rnrnrndod_cpflag_set "models/36thid/AD76_Flags01.mdl" rndod_cpflag_n "models/36thid/AD76_n.mdl" rndod_cpflag_u "models/36thid/AD76_u.mdl" rnrnI am putting the 36thid folder in models and the 3 mdl files in the folder.rnThen I ftp the plugin and AmX.cfg with the plugins.ini file to the place. Then I re-boot tehs erver and it wont even come up.rnrnSo if you don't mind I would very much like to give you my ftp info so you can check it out...rnrnMy server in lynx..would that be the issue?rnrnThanks Kindly

=|[76AD]|= TatsuSaisei
started this thread
Posts: 794
Threads: 54
Joined: May 2005
06-26-2007, 07:39 PM #15
Hey! thank you once again for your help with this.n nHere is the path I am now using. I re-named the mdl files aswell.n n ndod_cpflag_set "models/36thid/AD76_Flags01.mdl" ndod_cpflag_n "models/36thid/AD76_n.mdl" ndod_cpflag_u "models/36thid/AD76_u.mdl" n nI am putting the 36thid folder in models and the 3 mdl files in the folder.nThen I ftp the plugin and AmX.cfg with the plugins.ini file to the place. Then I re-boot tehs erver and it wont even come up.n nSo if you don't mind I would very much like to give you my ftp info so you can check it out...n nMy server in lynx..would that be the issue?n nThanks Kindly
n nlmao.. i didnt mean you had to name them AD76 names... but I will have a look in the ftp...

S sparky99
posted here
Posts: 263
Threads: 49
Joined: Jan 2006
09-09-2007, 04:36 AM #16
johnnyskid
posted here
Posts: 66
Threads: 14
Joined: Aug 2006
01-05-2008, 12:09 AM #17

It works.. I love it!! However, does it not work with de_dust_2006 or dod_dust?rnrnThanks

=|[76AD]|= TatsuSaisei
started this thread
Posts: 794
Threads: 54
Joined: May 2005
01-05-2008, 03:20 AM #18
However, does it not work with de_dust_2006 or dod_dust?n nThanks
n nworks on any and ALL maps that uses a model for dod_control_point (if the map has a capturable flag it will be changed)

johnnyskid
posted here
Posts: 66
Threads: 14
Joined: Aug 2006
01-07-2008, 04:22 AM #19

Yes thank you. It works great!!! rnrnThank you kindly

F Fysiks
posted here
Posts: 108
Threads: 3
Joined: Aug 2007
01-26-2009, 05:32 PM #20

With the default models set to 76AD models I noticed that the server will ALWAYS try to use 76AD models on the first startup of the server regardless of setting the cvars correctly and thus crashing the server.rnrnIt would only work (as is) if I disabled the plugin (in plugins.ini) then started the server then enabled the plugin then changed the map or restart the server with the "restart" server console command.rnrnTo fix this I had to put the DOD default flag models in there which I would think is what should be there if you release something like this publicly.rnrn

rnflag_set = register_cvar("dod_cpflag_set", "models/mapmodels/flags.mdl");rnflag_n = register_cvar("dod_cpflag_n", "models/w_wflag.mdl");rnflag_u = register_cvar("dod_cpflag_u", "models/w_aflag.mdl");rn
rnrnrnSo, even after this fix, the custom flags would only work after the very first map was over or after "restart" is sent to the server console.

M Merrill
posted here
Posts: 38
Threads: 6
Joined: Sep 2005
02-25-2009, 11:13 PM #21

HellornrnI found some custom flags but they are for dod source. Are there custom flags available somewhere or are there instructions on how to make custom flags?rnrnThanksrnrnMerrill

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
03-01-2009, 03:51 AM #22

Check gamebanana for ready-made flags. If you want to make you own, get Jed's HLMV and replace the flag textures fron the game's original flag models.

=*MDMILBURN*=
posted here
Posts: 66
Threads: 11
Joined: Jun 2008
10-08-2010, 08:56 AM #23

this map get confused may be others but the white flag get replaced by the axis flag here is a example i have for the cvarnndod_cpflag_set "models/germanflagtorn.mdl" //multiflag model set (requires 8 bodystyles - see original flag set)ndod_cpflag_n "models/aac_wflag.mdl" //single body style modelndod_cpflag_u "models/w_usaflag.mdl" //single body style modelnnnam i stuck using a flag sett and just break it down to a particular skin in the sett.hmm

=*MDMILBURN*=
posted here
Posts: 66
Threads: 11
Joined: Jun 2008
10-08-2010, 06:12 PM #24

figured out that the flag set from "worn torn flags" ,since it use the axis as the first one i do not need any name after the mdl file name ,i don't need "axisflag"rnlike this models/flags_axisflag.mdl rn now to make a couple of more flags rn by the way my neutral flag is black and whit e logo and the white turned out to be invisible,makes for a neat look

=*MDMILBURN*=
posted here
Posts: 66
Threads: 11
Joined: Jun 2008
11-05-2010, 12:21 AM #25

every time i import over the axis flag ,with say a jap flag i rename the modelflag sett that contains 3 flags..recompile the script ,the new model sett precaches and loads and works up until the map changes then never works again it keeps going back to the axis flagrnthere is only one flag plugin runningrnany ideasrnrn#include <amxmodx>rn#include <amxmisc>rn#include <fakemeta>rn#pragma semicolon 1rn#define PLUGIN "pacific_flags"rn#define VERSION "76.1"rn#define AUTHOR "<AAC>MILBURN*BOT*"rnrnnew flag_set, flag_n, flag_u;rnrnpublic plugin_init() rn{rn register_plugin(PLUGIN, VERSION, AUTHOR);rn //-----------------------------------------------------------rn new plugin_info[128];rn strcat (plugin_info, "Version: ", 127);rn strcat (plugin_info, VERSION, 127);rn strcat (plugin_info, " by: ", 127);rn strcat (plugin_info, AUTHOR, 127);rn register_cvar(PLUGIN, plugin_info, FCVAR_SERVER|FCVAR_SPONLY);rn //-----------------------------------------------------------rn}rnrnpublic plugin_precache() rn{rn flag_set = register_cvar("dod_cpflag_set", "models/pacific_3flags.mdl");rn flag_n = register_cvar("dod_cpflag_n", "models/aac_wflag.mdl");rn flag_u = register_cvar("dod_cpflag_u", "models/mapmodels/flagwt.mdl");rn register_forward(FM_KeyValue, "fm_keyvalue");rn}rnrnpublic fm_keyvalue(entid,handle) rn{rn if ( pev_valid(entid) )rn {rn new classname[64], key[64], value[64];rn new flagset[64], flagn[64], flagu[64];rn rn get_kvd(handle, KV_ClassName, classname, 63);rn get_kvd(handle, KV_KeyName, key, 63);rn get_kvd(handle, KV_Value, value, 63);rn rn if(equali(classname,"dod_control_point"))rn { rn get_pcvar_string(flag_set,flagset,63);rn get_pcvar_string(flag_n,flagn,63);rn get_pcvar_string(flag_u,flagu,63);rnrn if(equali(value,"models/flags.mdl") || equali(value,"models/mapmodels/flags.mdl")) set_kvd(handle,KV_Value, flagset) ;rn else if(!equali(value,"models/null.mdl") && !equali(value,"models/mapmodels/null.mdl"))rn {rn if(equali(key,"point_reset_model")) set_kvd(handle,KV_Value, flagn);rn else if(equali(key,"point_axis_model")) set_kvd(handle,KV_Value, flagset);rn else if(equali(key,"point_allies_model")) set_kvd(handle,KV_Value, flagu);rn }rn }rn }rn}

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
11-05-2010, 05:08 PM #26
rn...rn#define author "<aac>milburn*bot*"rn...rn
rnrnok ....

=*MDMILBURN*=
posted here
Posts: 66
Threads: 11
Joined: Jun 2008
11-05-2010, 11:32 PM #27

thx but i re written it further now it works ,there is no need to call upon a "set" to get the axis flag the way i done it ,thank you Tat for the ground work you made on this

B bozdw
posted here
Posts: 23
Threads: 4
Joined: Jul 2009
04-03-2011, 05:27 PM #28

hirnjust tried out the plugin works great on must custom maps but on the default maps and some custom maps the axis flag sets as the white flag,rntried to alter the map setting in bsp editor to change the flag settings but no joy and i dont really want to change the default map settingsrnso like milburn as said is there a way to stop this does anyone have any ideas or would milburn like to share your pluginrnthanks boz

B bozdw
posted here
Posts: 23
Threads: 4
Joined: Jul 2009
04-07-2011, 07:38 AM #29

should this be put in trash since it doesn't work right ?

=|[76AD]|= TatsuSaisei
started this thread
Posts: 794
Threads: 54
Joined: May 2005
04-14-2011, 08:48 AM #30
should this be put in trash since it doesn't work right ?
n njust because you can not figure out how to use it properly does not mean it is broken! I have used this plugin, untouched since I posted here, on my own server for years and NEVER had an issue with ANY Map I called on.n nTo be honest, I can not see how it would "fail" since it hooks on the control point entity, which is needed to display "capturable" flags/locations. SO if the map has those, then this plugin should change those flags. n nNow, mind you, if the map designer just put in a flag as a "normal" model and used a different model (or none) for the control point entity, then this plugin will never help you!! This plugin was designed to alter the models used on control point entities when placed and used the way they were intended and used on all the baseline maps.n nI believe the main issue is the lack of understanding on the "flag set" model and how it is used on some maps.

B bozdw
posted here
Posts: 23
Threads: 4
Joined: Jul 2009
04-14-2011, 04:29 PM #31

Hi again nwell after reading and trying to understand things because this is why i submit posts because i dont UNDERSTAND ALL i am someone with a sever that started from scratch and learning by posting for help (i think thats what the forum is for ?) and not for some one with a brush up is a**** 5 months later (the other post) to tell me lack of understanding and give general sarcasm!!!nnIn the end i worked it out that the axis flags needs to have 5 textures in the same file not 1 texture like the allies and the white flag nUsing jeds model viewer nI said should it be in trash to get a reply to see if the server is still active and bingo it worked nBut on a serious note great job on the plugins nyankeedoodledo boz

M Merrill
posted here
Posts: 38
Threads: 6
Joined: Sep 2005
07-29-2011, 12:01 AM #32

Hello,rnrnNot sure if this is still supported but had a question. I have this working on standard maps but when I go to a custom map like cal sherman the pre capped round starting rn1st and 2nd allies and axis flags are white and the uncapped middle flag is american. When you run thru allied flag it stays white but the icon top left shows american. Why would it work on default maps but not on custom? It seems to have it reversed.

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
07-29-2011, 01:11 AM #33

if you got a link where i can find the map I can try and take a look at it

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
07-30-2011, 05:41 PM #34

Custom flags on cal_sherman work fine for me. Re-check your model names.

M Merrill
posted here
Posts: 38
Threads: 6
Joined: Sep 2005
07-30-2011, 10:07 PM #35

Thanks guys. I had the names reversed on the models.rnrnWorking now.

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
07-31-2011, 04:00 AM #36
Thanks guys. I had the names reversed on the models.nnWorking now.
nnnhehehe

M Merrill
posted here
Posts: 38
Threads: 6
Joined: Sep 2005
07-31-2011, 10:59 PM #37

lol i know rookie mistake

S shortround
posted here
Posts: 4
Threads: 0
Joined: Dec 2010
08-22-2011, 08:00 PM #38

What about the British flags for Brit maps. I am using Marzy's high definition flag pack and it has the following flags. Can you add support for the Brit flags ?nVery nice plugin man.nnflagsnw_aflagnw_bflagnw_gflagnw_wflagnn[edit] I have several bsp's that I have changed teams on, can you make this check the bsp file for the team and use the flags for that team ?nnexample: I have allies on dod_flash, but this plugin uses the British flags for that map.

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
08-23-2011, 10:51 PM #39

First, some schooling...nThere are 2 methods for displaying flags in DOD maps.nnThe first is by using a separate flag model for each type (Ally, Axis, Brit and Neutral) of flag. Then, the desired flag models are set in each dod_control_point entity using the 'point_TEAM_model' keys (ex: models/w_aflag.mdl).nnThe second is by using a single model with 8 bodygroups. The flag model keys are all set the same (models/mapmodels/flags.mdl) and the desired flag is set (0 to 7) with the 'point_TEAM_model_bodygroup' keys.nnThis plugin will only display Brit flags in maps that use the second method. To display Brit flags on maps using the first method, you either need to use a different flag swapping plugin, or edit the above-mentioned entities.

S shortround
posted here
Posts: 4
Threads: 0
Joined: Dec 2010
08-27-2011, 08:01 PM #40

NM I got it too work on my server. thanks for you're post though.

{RSR}Crazyhorse_cdn
posted here
Posts: 219
Threads: 47
Joined: Sep 2006
12-10-2013, 05:52 PM #41

I got a question , I put this plug in on my server and it crashes the server an dwon't let me restart it could it be out of date and need an update or is it on my server side which needs to be updated ??

{RSR}Crazyhorse_cdn
posted here
Posts: 219
Threads: 47
Joined: Sep 2006
12-10-2013, 06:22 PM #42

this is the error message I get when I try to add my newer version of custom flags or my older version :rnrn L 12/10/2013 - 15:06:08: FATAL ERROR (shutting down): Mod_NumForName: models/76AD/AD76_Flags01.mdl not foundrnrnit seems like I can't use custom flags on my server , it is a windows base and not a Linux from nfo servers

S sparky99
posted here
Posts: 263
Threads: 49
Joined: Jan 2006
12-10-2013, 09:56 PM #43

Create the folder 76AD in your server's model directory and rename your custom flag to the filename AD76_Flags01.mdl and put it in there. nnOr better to change the plugin .sma to be your own unique directory and model name and recompile it. This option is better as your clients may already have the AD76_Flags01.mdl and see that one and not yours. You can edit the .sma file in notepad or AMX Mod X Studio if you want to go all professional, I'm sure you will see what needs to be done.nnhttp://www.amxmodx.org/downloads.php

dimon1052
posted here
Posts: 65
Threads: 15
Joined: Sep 2012
04-07-2020, 04:58 AM #44

Absolutely brilliant! Good work!

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC