Raised This Month: $51 Target: $400
 12% 

Help / Support Zombie classes don't take the precached model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
martoboss
Junior Member
Join Date: Aug 2019
Old 01-01-2021 , 15:46   Zombie classes don't take the precached model
Reply With Quote #1

Hello guys, im using mercyleezzz zp 5.0 and I wanted to change the models and knife models of the zombies he had put.
so I edited every single .Sma of the zombie classes
for example this is in the classis zombie sma

Code:
#include <amxmodx>
#include <zp50_class_zombie>

// Classic Zombie Attributes
new const zombieclass1_name[] = "Classic Zombie"
new const zombieclass1_info[] = "=Balanced="
new const zombieclass1_models[][] = { "lanbg_normal_zombie" }
new const zombieclass1_clawmodels[][] = { "models/zombie_plague/v_lanbg_normal_knife.mdl" }
const zombieclass1_health = 2800
const Float:zombieclass1_speed = 0.75
const Float:zombieclass1_gravity = 1.0
const Float:zombieclass1_knockback = 1.0

new g_ZombieClassID

public plugin_precache()
{
	register_plugin("[ZP] Class: Zombie: Classic", ZP_VERSION_STRING, "ZP Dev Team")
	
	new index
	
	g_ZombieClassID = zp_class_zombie_register(zombieclass1_name, zombieclass1_info, zombieclass1_health, zombieclass1_speed, zombieclass1_gravity)
	zp_class_zombie_register_kb(g_ZombieClassID, zombieclass1_knockback)
	for (index = 0; index < sizeof zombieclass1_models; index++)
		zp_class_zombie_register_model(g_ZombieClassID, zombieclass1_models[index])
	for (index = 0; index < sizeof zombieclass1_clawmodels; index++)
		zp_class_zombie_register_claw(g_ZombieClassID, zombieclass1_clawmodels[index])
}
i compiled it without error, and when I put it its default zombie model and hands

in configs/zp_zombieclasses.ini it shows that the classes have the precached models but ingame its still zombie_source
martoboss is offline
martoboss
Junior Member
Join Date: Aug 2019
Old 01-01-2021 , 17:06   Re: Zombie classes don't take the precached model
Reply With Quote #2

Okay the problem was "admin zombie and admin zombie knife" were overiride-ing the models, i removed them from zombieplague.ini completely, so i had to edmin zp_admin_models and delete every lane including zombie model and zombie claw model
martoboss is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode