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) /** * 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 before the ZP round starts. This is only * called for custom game modes. * * Note: The custom game mode id can be used to start * the game mode externally * * Note: returning ZP_PLUGIN_HANDLED will cause the * game mode to be blocked and other game modes will * be given a chance. * * @param gameid Custom mode id which is called */ forward zp_round_started_pre(gameid) /** * Called when the round ends. * * @param winteam Team which has won the round.

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 zombie_plague_special.inc at line 771 . This documentation was automatically generated from source.