zp_class_zombie_register

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_class_zombie_register(const name[], const description[], health, Float:speed, Float:gravity) /** * Registers a custom player model for a given zombie class. * * @param classid A valid zombie class ID. * @param model Player model's short name. * @return True on success, false otherwise. */ native zp_class_zombie_register_model(classid, const model[]) /** * Registers a custom claw model for a given zombie class. * * @param classid A valid zombie class ID. * @param clawmodel Claw model filename. * @return True on success, false otherwise. */ native zp_class_zombie_register_claw(classid, const clawmodel[]) /** * Registers a zombie class' knockback multiplier. * * @param classid A valid zombie class ID. * @param knockback Knockback multiplier. * @return True on success, false otherwise. */ native zp_class_zombie_register_kb(classid, Float:knockback) /**

Usage

name Caption to display on the menu.
description Brief description of the class.
health Class health.
speed Class maxspeed (can be a multiplier).
gravity Class gravity multiplier.

Return

An — internal zombie class ID, or ZP_INVALID_ZOMBIE_CLASS on failure.

Defined in zp50_class_zombie.inc at line 67 . This documentation was automatically generated from source.