Functions
tfcx.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 |
| 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 |
| register_statsfwd | native | Use this function to register forwards |
| tfc_clearmodel | native | This function has no description. |
| tfc_get_user_goalitem | native | Returns 1 if user is carrying a goal item such as a flag or a keycard, else 0. Team is by reference parameter that will be set to owning team(s) of the goal item. Use the TFC_GOALITEM_* constants to determine the owning team. |
| tfc_getbammo | native | Ammo Types in tfcconst.inc |
| tfc_getweaponammo | native | Index must be weapon's entity index |
| tfc_getweaponbammo | native | Weapons list in tfcconst.inc |
| tfc_is_team_ally | native | Returns 1 if the two teams are allies, 0 otherwise Note: Team must be 1->4 Team 0 will always return 0 Any other team will result in an error |
| tfc_is_user_feigning | native | Returns 1 if the player is a spy and is currently feigning death |
| tfc_setbammo | native | Set amount of ammo in backpack on a user for a specific weapon |
| tfc_setmodel | native | This function has no description. |
| tfc_setpddata | native | Use this function to set private data offsets if needed Default offsets: timer: 932 sentrygun: 83 from AssKicR shells: 53 bullets: 55 cells: 57 rockets: 59 nade1: 14 nade2: 15 |
| tfc_setweaponammo | native | Index must be weapon's entity index |
| tfc_setweaponbammo | native | Sets amount of ammo in weapon's clip (backpack) |
| tfc_userkill | native | This function has no description. |
| 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 |
| tfc_isgrenade | stock | This function has no description. |