| closedDegrees |
| Started by aero_cz on 09-18-2008, 05:25 PM |
Threads: 6
Joined: Sep 2007
Hi.Exist plugin (for DOD) which begin as soldier and how your skill up so the time to get higher level (max. to General). Do not know someone name of this plugin?
Threads: 59
Joined: Jan 2007
Well, not that I know off. My first thoughts on this would be to change gungame a bit. The raise of level related to ranks...wouldn't be that hard I think.
Threads: 12
Joined: Aug 2006
that would be like wolfenstien always one thing i like about that game. ive never seen it in dod. though it would be nice to have, maybe somthing for the codeing gods to ponder out.
Threads: 59
Joined: Jan 2007
Perhaps something easy to change is known in the realism unit side of DoD.rnThe only problem between wolfenstein and dod is the scoreboard, to my knowledge there isnt a way to change with for example placing an extra row in it.rnrnThere is a plugin I think on allied modders you can place images above the players head. Perhaps place rank symbols there? Would be easier to spot though.
Threads: 6
Joined: Sep 2007
i play this degrees plugin on now not-exist servers..but i havent know name..
Threads: 6
Joined: Sep 2007
I find it! Here :)
Threads: 6
Joined: Sep 2007
Q: exist bf2 rank mod for DOD?
Threads: 59
Joined: Jan 2007
The plugin you found will have to be ported for DoD as it uses the cstrike and csstats. As for your question if a BF2 rank mod for DoD excist...No, it doesn't.
Threads: 6
Joined: Sep 2007
and can anybody edit bf2 rank mod for dod?
Threads: 59
Joined: Jan 2007
Well, you have to understand that BF2 and DoD 1.3 are two different games. So an edit of BF2 would never result into something which would work (in dod). To my knowledge there is no way to change the scoreboard in dod, but I could be wrong.
Threads: 54
Joined: May 2005
for those of us who do not play BF2 or CS, please explain what the nature of "ranking" up on the server based on skill would do or provide ??n nPersonally I do not understand what is being asked for ...
Threads: 11
Joined: Dec 2007
It is really simple.nnThis plugin just use overall kills. Try this :nn
// Replacen3. #include <csstats>nn// Byn3. #include <dodx>nn// Replacen74. new stats[8]n75. new hits[8]n76. get_user_stats(id, stats, hits)nn// Byn74. new stats[9]n75. new hits[8]n76. get_user_wstats(id, 0, stats, hits)nnget_user_wstats() require DODX module.Threads: 103
Joined: May 2005
include dodx not dodstats.. including dodx automatically includes dodstats
Threads: 11
Joined: Dec 2007
include dodx not dodstats.. including dodx automatically includes dodstatsrnrnSorry i made a mistake.rnrnI copy/paste from the plugin and just changed cs by dod.rnBut i said that the get_stat function require dodx not dodstats.
Threads: 103
Joined: May 2005
you can try this.. i didnt test it myself thonnchanges made:n
- Ported to DoDn- Changed 'Just Joined' to 'Recruit'n- Changed all those 'if' statements to 'else if' statementsn- Various code improvementsn- Improved checking if CVAR is enabled (and now uses a pcvar)n- Checks if player is connectedn- Removed 'amxmisc' includen- Uses a looping task instead of setting a new one everytimenn#include <amxmodx>n#include <dodx>nn#define HUD_INTERVAL 1.0nn#define RANK_Just_Joined 0n#define RANK_PRIVATE 1n#define RANK_PRIVATE_FIRST_CLASS 2 n#define RANK_CORPORAL 3n#define RANK_SERGEANT 4n#define RANK_STAFF_SERGEANT 5n#define RANK_GUNNERY_SERGEANT 6n#define RANK_MASTER_SERGEANT 7n#define RANK_COMMAND_SERGEANT 8n#define RANK_SECOND_LIEUTENANT 9n#define RANK_FIRST_LIEUTENANT 10n#define RANK_COLONEL 11n#define RANK_BRIGADIER_GENERAL 12n#define RANK_MAJOR_GENERAL 13n#define RANK_LIEUTENANT_GENERAL 14n#define RANK_GENERAL 15n#define RANK_GENERAL_OF_THE_ARMY 16nn#define MAXRANKS 17nnew const RANKS[MAXRANKS][] = n{ n "Recruit",n "Private",n "Private First Class",n "Corporal",n "Sergeant",n "Staff Sergeant",n "Gunnery Sergeant",n "Master Sergeant",n "Command Sergeant",n "Second Lieutenant",n "First Lieutenant",n "Colonel",n "Brigadier General",n "Major General",n "Lietenant General",n "General",n "General of the Army"n}nn//Globalsnnew PlayerRank[33]nnew p_mranksnnpublic plugin_init() n{n register_plugin("DoD Military Ranks","1.0","AMXX DoD Team")n p_mranks = register_cvar("sv_mranks","1")n}nnpublic client_putinserver(id)n if(is_user_connected(id) && get_pcvar_num(p_mranks))n set_task(HUD_INTERVAL,"ShowHUD",id,"",0,"b")nnpublic client_disconnect(id)n if(task_exists(id))n remove_task(id)n npublic ShowHUD(id) n{ n if(is_user_connected(id) && get_pcvar_num(p_mranks))n {n new stats[9],hits[8]n get_user_wstats(id,0,stats,hits) n new kills = stats[0]n n new name[33]n get_user_name(id,name,32)n n if(kills < 100)n PlayerRank[id] = RANK_Just_Joinedn n else if(kills >= 100 || kills <= 200)n PlayerRank[id] = RANK_PRIVATEnn else if(kills >= 201 || kills <= 400)n PlayerRank[id] = RANK_PRIVATE_FIRST_CLASSnn else if(kills >= 401 || kills <= 800)n PlayerRank[id] = RANK_CORPORALn n else if(kills >= 801 || kills <= 1000)n PlayerRank[id] = RANK_SERGEANTn n else if(kills >= 1001 || kills <= 2000)n PlayerRank[id] = RANK_STAFF_SERGEANTn n else if(kills >= 2001 || kills <= 4000)n PlayerRank[id] = RANK_GUNNERY_SERGEANTn n else if(kills >= 4001 || kills <= 8000)n PlayerRank[id] = RANK_MASTER_SERGEANTn n else if(kills >= 8001 || kills <= 10000)n PlayerRank[id] = RANK_COMMAND_SERGEANTn n else if(kills >= 10001 || kills <= 12000)n PlayerRank[id] = RANK_SECOND_LIEUTENANTn n else if(kills >= 12001 || kills <= 15000)n PlayerRank[id] = RANK_FIRST_LIEUTENANTn n else if(kills >= 15001 || kills <= 20000)n PlayerRank[id] = RANK_COLONELn n else if(kills >= 20001 || kills <= 40000)n PlayerRank[id] = RANK_BRIGADIER_GENERALn n else if(kills >= 40001 || kills <= 50000)n PlayerRank[id] = RANK_MAJOR_GENERALn n else if(kills >= 50001 || kills <= 80000)n PlayerRank[id] = RANK_LIEUTENANT_GENERALn n else if(kills >= 80001 || kills <= 100000)n PlayerRank[id] = RANK_GENERALn n else if(kills >= 100001)n PlayerRank[id] = RANK_GENERAL_OF_THE_ARMYnn set_hudmessage(237,245,9,0.0,0.6,0,6.0,12.0)n show_hudmessage(id,"[%s - %s] Kills: %i",name,RANKS[PlayerRank[id]],kills)n }n}Threads: 11
Joined: Dec 2007
You can simplify the conditions.nnn
if(kills < 100)n PlayerRank[id] = RANK_Just_Joined n else if(kills <= 200)n PlayerRank[id] = RANK_PRIVATEn else if(kills <= 400)n PlayerRank[id] = RANK_PRIVATE_FIRST_CLASSn else if(kills <= 800)n PlayerRank[id] = RANK_CORPORAL n else if(kills <= 1000)n PlayerRank[id] = RANK_SERGEANT n else if(kills <= 2000)n PlayerRank[id] = RANK_STAFF_SERGEANT n else if(kills <= 4000)n PlayerRank[id] = RANK_GUNNERY_SERGEANT n else if(kills <= 8000)n PlayerRank[id] = RANK_MASTER_SERGEANT n else if(kills <= 10000)n PlayerRank[id] = RANK_COMMAND_SERGEANT n else if(kills <= 12000)n PlayerRank[id] = RANK_SECOND_LIEUTENANT n else if(kills <= 15000)n PlayerRank[id] = RANK_FIRST_LIEUTENANT n else if(kills <= 20000)n PlayerRank[id] = RANK_COLONEL n else if(kills <= 40000)n PlayerRank[id] = RANK_BRIGADIER_GENERAL n else if(kills <= 50000)n PlayerRank[id] = RANK_MAJOR_GENERAL n else if(kills <= 80000)n PlayerRank[id] = RANK_LIEUTENANT_GENERAL n else if(kills <= 100000)n PlayerRank[id] = RANK_GENERAL n elsen PlayerRank[id] = RANK_GENERAL_OF_THE_ARMYThreads: 103
Joined: May 2005
ohh yeah guess so hahah :)
Threads: 54
Joined: May 2005
You can simplify the conditions.n n nn nmight even go further and not hardcode the kill amounts so that people can easily change the values to suit their needs....nif(kills < 100)n PlayerRank[id] = RANK_Just_Joined n else if(kills <= 200)n PlayerRank[id] = RANK_PRIVATEn else if(kills <= 400)n PlayerRank[id] = RANK_PRIVATE_FIRST_CLASSn else if(kills <= 800)n PlayerRank[id] = RANK_CORPORAL n else if(kills <= 1000)n PlayerRank[id] = RANK_SERGEANT n else if(kills <= 2000)n PlayerRank[id] = RANK_STAFF_SERGEANT n else if(kills <= 4000)n PlayerRank[id] = RANK_GUNNERY_SERGEANT n else if(kills <= 8000)n PlayerRank[id] = RANK_MASTER_SERGEANT n else if(kills <= 10000)n PlayerRank[id] = RANK_COMMAND_SERGEANT n else if(kills <= 12000)n PlayerRank[id] = RANK_SECOND_LIEUTENANT n else if(kills <= 15000)n PlayerRank[id] = RANK_FIRST_LIEUTENANT n else if(kills <= 20000)n PlayerRank[id] = RANK_COLONEL n else if(kills <= 40000)n PlayerRank[id] = RANK_BRIGADIER_GENERAL n else if(kills <= 50000)n PlayerRank[id] = RANK_MAJOR_GENERAL n else if(kills <= 80000)n PlayerRank[id] = RANK_LIEUTENANT_GENERAL n else if(kills <= 100000)n PlayerRank[id] = RANK_GENERAL n elsen PlayerRank[id] = RANK_GENERAL_OF_THE_ARMY
n n//without having to rewrite the whole code n//to be based on MINIMUMS (which would make more sense)n//this is just an examplen#define MAX_KILLS_RANK_Just_Joined 1n#define MAX_KILLS_RANK_PRIVATE 100n#define MAX_KILLS_RANK_PRIVATE_FIRST_CLASS 200 n#define MAX_KILLS_RANK_CORPORAL 300n#define MAX_KILLS_RANK_SERGEANT 400n#define MAX_KILLS_RANK_STAFF_SERGEANT 500n#define MAX_KILLS_RANK_GUNNERY_SERGEANT 600n#define MAX_KILLS_RANK_MASTER_SERGEANT 700n#define MAX_KILLS_RANK_COMMAND_SERGEANT 800n#define MAX_KILLS_RANK_SECOND_LIEUTENANT 900n#define MAX_KILLS_RANK_FIRST_LIEUTENANT 1000n#define MAX_KILLS_RANK_COLONEL 1100n#define MAX_KILLS_RANK_BRIGADIER_GENERAL 1200n#define MAX_KILLS_RANK_MAJOR_GENERAL 1300n#define MAX_KILLS_RANK_LIEUTENANT_GENERAL 1400n#define MAX_KILLS_RANK_GENERAL 1500n#define MAX_KILLS_RANK_GENERAL_OF_THE_ARMY 1600n n...n nif(kills < MAX_KILLS_RANK_Just_Joined)n PlayerRank[id] = RANK_Just_Joined n else if(kills <= MAX_KILLS_RANK_PRIVATE)n PlayerRank[id] = RANK_PRIVATEn else if(kills <= MAX_KILLS_RANK_PRIVATE_FIRST_CLASS)n PlayerRank[id] = RANK_PRIVATE_FIRST_CLASSn else if ...nn nand to make it even more user-friendly I would not DEFINE the values but make them CVARs that can be edited from the server console... n nall methods work.. its just a matter of personal preference and who the plugin is intended for ...
