Hello, I have a general model that contains different submodels for humans and zombies and the p_ models of weapons. However, I don't know how to use them.
I have ZP 4.3 and I use the human and zombie classes in the external SMA (hclasses and zclasses).
Here I left the code of the hclasses SMA. I suppose it goes the same way for the zombies.
// Civilian
new const hclass1_name[] = { "Civilian" }
new const hclass1_info[] = { "" }
new const hclass1_model[] = { "humans" } // here I don't know what I have to put to show the right submodel of this class or if I have to add a piece of code in another place
const hclass1_lvl = 0
const hclass1_reset = 0
const hclass1_sreset = 0
const hclass1_health = 100
const hclass1_speed = 200
const Float:hclass1_gravity = 1.0
const Float:hclass1_damage = 1.1
const hclass1_armor = 10
// Soldier
new const hclass2_name[] = { "Soldier" }
new const hclass2_info[] = { "" }
new const hclass2_model[] = { "humans" } // here I don't know what I have to put to show the right submodel of this class or if I have to add a piece of code in another place
const hclass2_lvl = 100
const hclass2_reset = 0
const hclass2_sreset = 0
const hclass2_health = 200
const hclass2_speed = 205
const Float:hclass2_gravity = 1.0
const Float:hclass2_damage = 1.2
const hclass2_armor = 20
// Class IDs
new g_hclass_Civilian
new g_hclass_Soldier
// Human Classes MUST be registered on plugin_precache
public plugin_precache()
{
register_plugin("[ZP] Default Human Classes", "4.3 Fix5", "MeRcyLeZZ")
new const menu_death[][menu_dm] =
{
{ "SAVERY" , CSW_AWP , "weapon_awp" , 5.7 , 0 , 0 , 0 , "models/weapons/v_sprifle.mdl" , "models/weapons/p_snipers.mdl"}, // here in the p_ model is where I don't know what to put in order that it shows the right submodel p of the specific weapon or if I have to add a piece of code in another place
{ "AEOLIS" , CSW_M249 , "weapon_m249" , 6.4 , 0 , 0 , 0 , "models/weapons/v_aeolis.mdl" , "models/weapons/p_machines.mdl"},
{ "TAR21" , CSW_SG552 , "weapon_sg552" , 3.4 , 0 , 0 , 0 , "models/weapons/v_tar21.mdl" , "models/weapons/p_rifles.mdl"}
}