- Added new forwards as well as new stocks

This commit is contained in:
Zor
2006-06-11 21:47:11 +00:00
parent 07e55f3b71
commit 84ec8ef007
8 changed files with 409 additions and 88 deletions

View File

@ -31,35 +31,55 @@ enum {
}
/* Use this function to register forwards */
native register_statsfwd( ftype );
native register_statsfwd(ftype);
/* Function is called after player to player attacks ,
* if players were damaged by teammate TA is set to 1 */
forward client_damage(attacker,victim,damage,wpnindex,hitplace,TA);
forward client_damage(attacker, victim, damage, wpnindex, hitplace, TA);
/* Function is called after player death ,
* if player was killed by teammate TK is set to 1 */
forward client_death(killer,victim,wpnindex,hitplace,TK);
forward client_death(killer, victim, wpnindex, hitplace, TK);
/* Function is called if player scored */
forward client_score(index,score,total);
forward client_score(id, score, total);
/* This Forward is called when a player changes team */
forward dod_client_changeteam(id, team, oldteam);
/* This Forward is called if a player changes class, but just after spawn */
forward dod_client_changeclass(id, class, oldclass);
/* This Forward is called when a player spawns */
forward dod_client_spawn(id);
/* Sets the model for a player */
native dod_set_model(id, model[]);
/* Sets the model for a player */
native dod_set_body_number(id, bodynumber);
/* Un-Sets the model for a player */
native dod_clear_model(id);
/* Custom Weapon Support */
/* function will return index of new weapon */
native custom_weapon_add( wpnname[],melee = 0,logname[]="" );
native custom_weapon_add( wpnname[], melee = 0, logname[]="" );
/* Function will pass damage done by this custom weapon to stats module and other plugins */
native custom_weapon_dmg( weapon, att, vic, damage, hitplace=0 );
/* Function will pass info about custom weapon shot to stats module */
native custom_weapon_shot( weapon,index ); // weapon id , player id
native custom_weapon_shot( weapon, index ); // weapon id , player id
/* function will return 1 if true */
native xmod_is_melee_wpn(wpnindex);
/* Returns weapon name. */
native xmod_get_wpnname(wpnindex,name[],len);
native xmod_get_wpnname(wpnindex, name[], len);
/* Returns weapon logname. */
native xmod_get_wpnlogname(wpnindex,name[],len);
native xmod_get_wpnlogname(wpnindex, name[], len);
/* Returns weapons array size */
native xmod_get_maxweapons();