Functions

dodx.inc

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