Functions in dodx.inc

Function Description
register_statsfwd
Use this function to register forwards
client_damage
Function is called after player to player attacks ,
if players were damaged by teammate TA is set to 1
client_death
Function is called after player death ,
if player was killed by teammate TK is set to 1
client_score
Function is called if player scored
dod_client_changeteam
This Forward is called when a player changes team
dod_client_changeclass
This Forward is called if a player changes class, but just after spawn
dod_client_spawn
This Forward is called when a player spawns
dod_client_scope
This will be called whenever a player scopes or unscopes
value = 1 scope up
value = 0 scope down
dod_client_weaponpickup
This will be called whenever a player drops a weapon
weapon is weapon dropped or picked up
value = 1 picked up
value = 0 dropped
dod_client_prone
Called whenever the the player goes to or comes from prone position
value = 1 going down
value = 0 getting up
dod_client_weaponswitch
This will be called whenever a player switches a weapon
dod_grenade_explosion
Forward for when a grenade explodes and its location
dod_rocket_explosion
Forward for when a rocket explodes and its location
dod_client_objectpickup
Forward for when a player picks up a object
dod_client_stamina
Forward for when a users stamina decreases
dod_weapon_type
We want to get just the weapon of whichever type that the player is on him
Use DODWT_* in dodconst.inc for type
dod_set_weaponlist
This native will change the position of a weapon within the users slots and its ammo ammount
dod_set_model
Sets the model for a player
dod_set_body_number
Sets the model for a player
dod_clear_model
Un-Sets the model for a player
custom_weapon_add
function will return index of new weapon
custom_weapon_dmg
Function will pass damage done by this custom weapon to stats module and other plugins
custom_weapon_shot
Function will pass info about custom weapon shot to stats module
xmod_is_melee_wpn
function will return 1 if true
xmod_get_wpnname
Returns weapon name.
xmod_get_wpnlogname
Returns weapon logname.
xmod_get_maxweapons
Returns weapons array size
xmod_get_stats_size
Returns stats array size ex. 8 in TS , 9 in DoD
xmod_is_custom_wpn
Returns 1 if true
dod_wpnlog_to_name
weapon logname to weapon name convertion
dod_wpnlog_to_id
weapon logname to weapon index convertion
dod_get_map_info
This function has no description.
dod_get_user_weapon
Returns id of currently carried weapon. Gets also
ammount of ammo in clip and backpack.
dod_get_team_score
Returns team score
dod_get_user_class
Returns player class id
dod_get_user_score
Returns player score
dod_get_pronestate
values are: 0-no prone, 1-prone, 2-prone + w_deploy
dod_user_kill
It is not as safe as original but player deaths will not be increased