DoDX
Content:
Notes
The Day of Defeat module (DoDX) was developed by SidLuke, originally ported from his earlier AMX Mod module. It has two main portions, generic Day of Defeat natives and a Day of Defeat statistical package. DoDX contains the following constants: Team Constants
#define ALLIES			1
#define AXIS 			2

Class Constants
enum {
	DODC_GARAND = 1,
	DODC_CARBINE,
	DODC_THOMPSON, 
	DODC_GREASE, 
	DODC_SNIPER, 
	DODC_BAR, 
	DODC_30CAL, 
	DODC_BAZOOKA, 
	//DODC_ALLIES_MORTAR,
	DODC_KAR = 10, 
	DODC_K43, 
	DODC_MP40, 
	DODC_MP44, 
	DODC_SCHARFSCHUTZE, 
	DODC_FG42, 
	DODC_SCOPED_FG42, 
	DODC_MG34, 
	DODC_MG42, 
	DODC_PANZERJAGER, 
	//DODC_AXIS_MORTAR,
	DODC_ENFIELD = 21, 
	DODC_STEN, 
	DODC_MARKSMAN, 
	DODC_BREN, 
	DODC_PIAT, 
	//DODC_BRIT_MORTAR,
};

Stamina Constants
#define STAMINA_SET		0
#define STAMINA_RESET		1

Fuse Constants
#define FT_NEW			1<<0
#define FT_OLD			1<<1
#define FUSE_SET			0
#define FUSE_RESET			1

Weapon Constants
#define DODMAX_WEAPONS		46 // 5 slots for custom weapons
enum {
	DODW_AMERKNIFE = 1,
	DODW_GERKNIFE,
	DODW_COLT,
	DODW_LUGER,
	DODW_GARAND,
	DODW_SCOPED_KAR,
	DODW_THOMPSON,
	DODW_STG44,
	DODW_SPRINGFIELD,
	DODW_KAR,
	DODW_BAR,
	DODW_MP40,
	DODW_HANDGRENADE,
	DODW_STICKGRENADE,
	DODW_STICKGRENADE_EX,
	DODW_HANDGRENADE_EX,
	DODW_MG42,
	DODW_30_CAL,
	DODW_SPADE,
	DODW_M1_CARBINE,
	DODW_MG34,
	DODW_GREASEGUN,
	DODW_FG42,
	DODW_K43,
	DODW_ENFIELD,
	DODW_STEN,
	DODW_BREN,
	DODW_WEBLEY,
	DODW_BAZOOKA,
	DODW_PANZERSCHRECK,
	DODW_PIAT,
	DODW_SCOPED_FG42,
	DODW_FOLDING_CARBINE,
	DODW_KAR_BAYONET,
	DODW_SCOPED_ENFIELD,
	DODW_MILLS_BOMB,
	DODW_BRITKNIFE,
	DODW_GARAND_BUTT,
	DODW_ENFIELD_BAYONET,
	DODW_MORTAR,
	DODW_K43_BUTT,
};

Prone Constants
enum { 
	PS_NOPRONE =0,
	PS_PRONE,
	PS_PRONEDEPLOY,
}

Map Constants
enum {
	MI_ALLIES_TEAM = 0,
	MI_ALLIES_PARAS,
	MI_AXIS_PARAS,
}

Functions
client_damage - Function is called after player to player attacks
client_death - Called when a player dies.
custom_weapon_add - Custom weapon support.
custom_weapon_dmg - Custom weapon support.
custom_weapon_shot - Custom weapon support.
dod_get_map_info - Returns map information.
dod_get_pronestate - Returns a user's prone state.
dod_get_team_score - Returns a team's score.
dod_get_user_class - Returns a player's class id.
dod_get_user_score - Returns a player's score.
dod_get_user_team - DEPRECATED. Returns a player's team id.
dod_get_user_weapon - Returns id of a player's currently carried weapon.
dod_user_kill - Kills a player without taking deaths.
dod_wpnlog_to_id - Gets the id of a logged weapon name.
dod_wpnlog_to_name - Converts a weapon's logname to normal name.
get_stats - Gets overall stats.
get_statsnum - Returns number of all entries in stats.
get_user_astats - Gets stats with which a player has been killed/hurt.
get_user_lstats - Gets life (from spawn to spawn) stats of player.
get_user_rstats - Gets life (from spawn to spawn) stats of player.
get_user_stats - Gets overall stats.
get_user_vstats - Gets stats with which the player has killed/hurt a victim.
get_user_wlstats - Gets life (from spawn to spawn) stats from given weapon index.
get_user_wrstats - Gets round stats from given weapon index.
get_user_wstats - Gets stats from given weapon index.
grenade_throw - This function is now in DoDFun module
register_statsfwd - Use this function to register forwards
reset_user_wstats - Resets life, weapon, victims and attackers user stats.
xmod_get_maxweapons -
xmod_get_stats_size - Returns stats array size
xmod_get_wpnlogname - Gets a weapon's logged name.
xmod_get_wpnname - Gets the name of a weapon.
xmod_is_custom_wpn - Returns 1 if true
xmod_is_melee_wpn - is this a melee weapon ?
zdod_get_next_class - DEPRECATED. Returns next player class.
zdod_get_pl_deaths - DEPRECATED. Returns player deaths.
zdod_is_randomclass - DEPRECATED. Returns 1 if player has chosen random class.
zdod_set_fuse - DEPRECATED. Sets fuses for grenades.
zdod_set_pl_deaths - DEPRECATED. Sets player deaths.
zdod_set_pl_teamname - DEPRECATED. Sets new team name for a player.
zdod_set_stamina - DEPRECATED. Sets a player's stamina.
zdod_set_user_class - DEPRECATED. Sets a player's class.
zdod_set_user_score - DEPRECATED. Sets player score.
zdod_set_user_team - DEPRECATED. Sets player team and random class.