zp_register_zombie_class
Registers a custom class which will be added to the zombie classes menu of ZP. Note: The returned zombie class ID can be later used to identify the class when calling the zp_get_user_zombie_class() natives.
Syntax
native zp_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback) /** * Returns an extra item's ID. * * @param name Item name to look for. * @return Internal extra item ID, or -1 if not found. */ native zp_get_extra_item_id(const name[]) /** * Returns a zombie class' ID. * * @param name Class name to look for. * @return Internal zombie class ID, or -1 if not found. */ native zp_get_zombie_class_id(const name[]) /** * Called when the ZP round starts, i.e. first zombie * is chosen or a game mode begins. * * @param gamemode Mode which has started. * @param id Affected player's index (if applicable). */ forward zp_round_started(gamemode, id) /** * Called when the round ends. *
Usage
| name | Caption to display on the menu. |
| info | Brief description of the class. |
| model | Player model to be used. |
| clawmodel | Claws model to be used. |
| hp | Initial health points. |
| speed | Maximum speed. |
| gravity | Gravity multiplier. |
| knockback | Knockback multiplier. |
Return
An — internal zombie class ID, or -1 on failure.
Defined in
zombieplaguenew1.3.inc
at line 418
.
This documentation was automatically generated from source.