PDA

View Full Version : DoD Custom Flags


=|[76AD]|= TatsuSaisei
05-27-2007, 12:31 PM
Plugin allows server operators to change the flags displayed on all the default maps and MOST custom maps as well !!

If 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....

I 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...

SO 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 !!

CVARS for amxx.cfg


dod_cpflag_set "models/76AD/AD76_Flags01.mdl" //multiflag model set (requires 8 bodystyles - see original flag set)
dod_cpflag_n "models/76AD/AD76_n.mdl" //single body style model
dod_cpflag_u "models/76AD/AD76_u.mdl" //single body style model


NOTE: 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 ...

NOTE: 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)

MBosta
05-27-2007, 08:38 PM
Does this change the flagmodels them selves, or the flag hud icons?

|OnEHiTwOnDeR|SoCal
05-27-2007, 09:07 PM
this changes the FLAGS in a map

=|[76AD]|= TatsuSaisei
05-28-2007, 01:32 AM
Does this change the flagmodels them selves, or the flag hud icons?

flag 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 ...

MBosta
05-28-2007, 01:56 AM
ah ok. Thanks for clarifying.

Vet
06-02-2007, 05:59 PM
I believe you have a minor error in your code.

flag_n = register_cvar("dod_cpflag_n", "models/76AD/AD76_u.mdl");
flag_u = register_cvar("dod_cpflag_u", "models/76AD/AD76_u.mdl");

You're assigning the same model to both the point_reset_model and the point_allies_model.
if(equali(key,"point_reset_model")) set_kvd(handle,KV_Value, flagn);
else if(equali(key,"point_axis_model")) set_kvd(handle,KV_Value, flagset);
else if(equali(key,"point_allies_model")) set_kvd(handle,KV_Value, flagu);
Shouldn't it be something like:
flag_n = register_cvar("dod_cpflag_n", "models/76AD/AD76_n.mdl");

=|[76AD]|= TatsuSaisei
06-02-2007, 08:48 PM
I believe you have a minor error in your code.

flag_n = register_cvar("dod_cpflag_n", "models/76AD/AD76_u.mdl");
flag_u = register_cvar("dod_cpflag_u", "models/76AD/AD76_u.mdl");

You're assigning the same model to both the point_reset_model and the point_allies_model.
if(equali(key,"point_reset_model")) set_kvd(handle,KV_Value, flagn);
else if(equali(key,"point_axis_model")) set_kvd(handle,KV_Value, flagset);
else if(equali(key,"point_allies_model")) set_kvd(handle,KV_Value, flagu);
Shouldn't it be something like:
flag_n = register_cvar("dod_cpflag_n", "models/76AD/AD76_n.mdl");

public typo ... fixing now

and those models wouldn't be used by anyone else... they were just there for example
My personal version of the plugin is a bit more hardcoded and contains a bit more then I released... but good looking out !!

Vet
06-03-2007, 12:00 AM
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
06-25-2007, 10:09 PM
where do you put the new flag mdl? not understaning for sure..

johnnyskid
06-25-2007, 10:44 PM
Ok, I have made a flag mdl. but when I did it. It crashed my server?

What did I do wrong.

=|[76AD]|= TatsuSaisei
06-26-2007, 03:27 AM
Ok, I have made a flag mdl. but when I did it. It crashed my server?

What did I do wrong.

you put the model in a folder that you specified in the cvar you use to assign the flag ...

paste the 3 cvar values you are using ...

If you say in the cvar to look simply in models for the flag model, then the flag model HAS to be located there...

btw .. 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
06-26-2007, 01:30 PM
Thank you for your help. I have created a folder. as well 3 mdl files for the flags.

this is the path I did: as well put the folder named 36thid that contain the 3 models in models.

dod_cpflag_set "models/36thid/36id_n.mdl"
dod_cpflag_n "models/36thid/36id_u.mdl"
dod_cpflag_u "models/36thid/36thid_o.mdl"

Still my server wont re-start.

=|[76AD]|= TatsuSaisei
06-26-2007, 03:30 PM
Thank you for your help. I have created a folder. as well 3 mdl files for the flags.

this is the path I did: as well put the folder named 36thid that contain the 3 models in models.

dod_cpflag_set "models/36thid/36id_n.mdl"
dod_cpflag_n "models/36thid/36id_u.mdl"
dod_cpflag_u "models/36thid/36thid_o.mdl"

Still my server wont re-start.

Well.. 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)

I 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...

for now though.. triple check your spellings...

Side 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...

the "set" cvar is for the multimodel flag file (common flag type on most maps that contains ALL the flag styles)
_n is for neutral flag
_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)

I probably should have used _a instead of _u but then people might assume it meant Axis instead of Allies...

johnnyskid
06-26-2007, 07:28 PM
Hey! thank you once again for your help with this.

Here is the path I am now using. I re-named the mdl files aswell.


dod_cpflag_set "models/36thid/AD76_Flags01.mdl"
dod_cpflag_n "models/36thid/AD76_n.mdl"
dod_cpflag_u "models/36thid/AD76_u.mdl"

I am putting the 36thid folder in models and the 3 mdl files in the folder.
Then 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.

So if you don't mind I would very much like to give you my ftp info so you can check it out...

My server in lynx..would that be the issue?

Thanks Kindly

=|[76AD]|= TatsuSaisei
06-26-2007, 08:39 PM
Hey! thank you once again for your help with this.

Here is the path I am now using. I re-named the mdl files aswell.


dod_cpflag_set "models/36thid/AD76_Flags01.mdl"
dod_cpflag_n "models/36thid/AD76_n.mdl"
dod_cpflag_u "models/36thid/AD76_u.mdl"

I am putting the 36thid folder in models and the 3 mdl files in the folder.
Then 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.

So if you don't mind I would very much like to give you my ftp info so you can check it out...

My server in lynx..would that be the issue?

Thanks Kindly

lmao.. i didnt mean you had to name them AD76 names... but I will have a look in the ftp...

sparky99
09-09-2007, 05:36 AM
http://www.dayofdefeat.net/forums/showthread.php?s=&threadid=34554

johnnyskid
01-05-2008, 12:09 AM
It works.. I love it!! However, does it not work with de_dust_2006 or dod_dust?

Thanks

=|[76AD]|= TatsuSaisei
01-05-2008, 03:20 AM
However, does it not work with de_dust_2006 or dod_dust?

Thanks

works 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
01-07-2008, 04:22 AM
Yes thank you. It works great!!!

Thank you kindly

Fysiks
01-26-2009, 05:32 PM
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.

It 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.

To 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.


flag_set = register_cvar("dod_cpflag_set", "models/mapmodels/flags.mdl");
flag_n = register_cvar("dod_cpflag_n", "models/w_wflag.mdl");
flag_u = register_cvar("dod_cpflag_u", "models/w_aflag.mdl");



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

Merrill
02-25-2009, 11:13 PM
Hello

I 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?

Thanks

Merrill

Vet
03-01-2009, 03:51 AM
Check gamebanana (http://www.gamebanana.com/skins/search?search=dod) for ready-made flags. If you want to make you own, get Jed's HLMV (http://www.wunderboy.org/apps/jhlmv.php) and replace the flag textures fron the game's original flag models.

=*MDMILBURN*=
10-08-2010, 09:56 AM
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 cvar

dod_cpflag_set "models/germanflagtorn.mdl" //multiflag model set (requires 8 bodystyles - see original flag set)
dod_cpflag_n "models/aac_wflag.mdl" //single body style model
dod_cpflag_u "models/w_usaflag.mdl" //single body style model


am i stuck using a flag sett and just break it down to a particular skin in the sett.hmm

=*MDMILBURN*=
10-08-2010, 07:12 PM
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"
like this models/flags_axisflag.mdl
now to make a couple of more flags
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*=
11-05-2010, 01:21 AM
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 flag
there is only one flag plugin running
any ideas

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#pragma semicolon 1
#define PLUGIN "pacific_flags"
#define VERSION "76.1"
#define AUTHOR "<AAC>MILBURN*BOT*"

new flag_set, flag_n, flag_u;

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
//-----------------------------------------------------------
new plugin_info[128];
strcat (plugin_info, "Version: ", 127);
strcat (plugin_info, VERSION, 127);
strcat (plugin_info, " by: ", 127);
strcat (plugin_info, AUTHOR, 127);
register_cvar(PLUGIN, plugin_info, FCVAR_SERVER|FCVAR_SPONLY);
//-----------------------------------------------------------
}

public plugin_precache()
{
flag_set = register_cvar("dod_cpflag_set", "models/pacific_3flags.mdl");
flag_n = register_cvar("dod_cpflag_n", "models/aac_wflag.mdl");
flag_u = register_cvar("dod_cpflag_u", "models/mapmodels/flagwt.mdl");
register_forward(FM_KeyValue, "fm_keyvalue");
}

public fm_keyvalue(entid,handle)
{
if ( pev_valid(entid) )
{
new classname[64], key[64], value[64];
new flagset[64], flagn[64], flagu[64];

get_kvd(handle, KV_ClassName, classname, 63);
get_kvd(handle, KV_KeyName, key, 63);
get_kvd(handle, KV_Value, value, 63);

if(equali(classname,"dod_control_point"))
{
get_pcvar_string(flag_set,flagset,63);
get_pcvar_string(flag_n,flagn,63);
get_pcvar_string(flag_u,flagu,63);

if(equali(value,"models/flags.mdl") || equali(value,"models/mapmodels/flags.mdl")) set_kvd(handle,KV_Value, flagset) ;
else if(!equali(value,"models/null.mdl") && !equali(value,"models/mapmodels/null.mdl"))
{
if(equali(key,"point_reset_model")) set_kvd(handle,KV_Value, flagn);
else if(equali(key,"point_axis_model")) set_kvd(handle,KV_Value, flagset);
else if(equali(key,"point_allies_model")) set_kvd(handle,KV_Value, flagu);
}
}
}
}

Dr.G
11-05-2010, 06:08 PM
...
#define author "<aac>milburn*bot*"
...


ok ....

=*MDMILBURN*=
11-06-2010, 12:32 AM
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

bozdw
04-03-2011, 06:27 PM
hi
just 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,
tried 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 settings
so like milburn as said is there a way to stop this does anyone have any ideas or would milburn like to share your plugin
thanks boz

bozdw
04-07-2011, 08:38 AM
should this be put in trash since it doesn't work right ?

=|[76AD]|= TatsuSaisei
04-14-2011, 09:48 AM
should this be put in trash since it doesn't work right ?

just 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.

To 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.

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

I believe the main issue is the lack of understanding on the "flag set" model and how it is used on some maps.

bozdw
04-14-2011, 05:29 PM
Hi again
well 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!!!

In 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
Using jeds model viewer
I said should it be in trash to get a reply to see if the server is still active and bingo it worked
But on a serious note great job on the plugins
yankeedoodledo boz

Merrill
07-29-2011, 01:01 AM
Hello,

Not 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
1st 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
07-29-2011, 02:11 AM
if you got a link where i can find the map I can try and take a look at it

Vet
07-30-2011, 06:41 PM
Custom flags on cal_sherman work fine for me. Re-check your model names.

Merrill
07-30-2011, 11:07 PM
Thanks guys. I had the names reversed on the models.

Working now.

diamond-optic
07-31-2011, 05:00 AM
Thanks guys. I had the names reversed on the models.

Working now.


hehehe

Merrill
07-31-2011, 11:59 PM
lol i know rookie mistake

shortround
08-22-2011, 09:00 PM
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 ?
Very nice plugin man.

flags
w_aflag
w_bflag
w_gflag
w_wflag

[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 ?

example: I have allies on dod_flash, but this plugin uses the British flags for that map.

Vet
08-23-2011, 11:51 PM
First, some schooling...
There are 2 methods for displaying flags in DOD maps.

The 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 (http://www.dodplugins.net/forums/cmps_index.php?page=verc&ent=dod_control_point&game=dod) entity using the 'point_TEAM_model' keys (ex: models/w_aflag.mdl).

The 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.

This 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.

shortround
08-27-2011, 09:01 PM
NM I got it too work on my server. thanks for you're post though.