Functions
zp50_class_human.inc
zombie plague 5.0
| Function | Type | Description |
|---|---|---|
| zp_fw_class_human_select_post | forward | Called right after a player selects a class from the menu. |
| zp_fw_class_human_select_pre | forward | Called when determining whether a class should be available to a player. Possible return values are: - ZP_CLASS_AVAILABLE (show in menu, allow selection) - ZP_CLASS_NOT_AVAILABLE (show in menu, don't allow selection) - ZP_CLASS_DONT_SHOW (don't show in menu, don't allow selection) |
| zp_class_human_get_count | native | Returns number of registered human classes. |
| zp_class_human_get_current | native | Returns a player's current human class ID. |
| zp_class_human_get_desc | native | Returns a human class' description. |
| zp_class_human_get_id | native | Returns a human class' ID. |
| zp_class_human_get_max_health | native | Returns the default maximum health for a specific human class. Note: does not take into account any kind of HP bonuses. |
| zp_class_human_get_name | native | Returns a human class' name. |
| zp_class_human_get_next | native | Returns a player's next human class ID (for the next infection). |
| zp_class_human_get_real_name | native | Returns a human class' real name (used when registering the class). |
| zp_class_human_menu_text_add | native | Appends text to a class being displayed on the human classes menu. Use this on the class select pre forward. |
| zp_class_human_register | native | Registers a custom class which will be added to the human classes menu of ZP. Note: The returned human class ID can be later used to identify the class when calling the zp_get_user_human_class() natives. |
| zp_class_human_register_model | native | Registers a custom player model for a given human class. |
| zp_class_human_set_next | native | Sets a player's next human class ID (for the next infection). |
| zp_class_human_show_menu | native | Shows menu with available human classes to a player. |