Hello,
As the title says, I need some help from you guys, I have this biohazard plugin, it's a bit different from the normal ones, it has this function inside of it "#define DEFAULT_HUMAN_MDL "gign" ". Well, what I want is:
Can anybody remove that function for good? I mean, to remove that thing that sets a default model for humans, because the problem is, with that function there, it gives a human model for some zombies as well, so the zombies will look like humans, and that's not okey. So, can you guys remove it so it won't set any default model for humans? Cause if that's gonna be removed from there, everything is gonna work fine. I will attach bellow the next sources, the one with the problem, that needs to be solved, one default source without that function, so you guys can have an example what I am talking about, and the cfg that requires to be compiled. The reason why I am not using the default source, is because that one with problems, it's an upgraded version, but I want that function with model defaults, OFF !
THE BIOHAZARD SOURCE WITH PROBLEMS:
Code:
https://www.mediafire.com/file/4qx3eqzwl38l479/biohazard.sma/file
PHP Code:
new model[128]
formatex(model, charsmax(model), "models/player/%s/%s.mdl", DEFAULT_PMODEL, DEFAULT_PMODEL)
precache_model(model)
precache_model(DEFAULT_WMODEL)
new model1[128];
formatex(model1, charsmax(model1), "models/player/%s/%s.mdl", DEFAULT_HUMAN_MDL, DEFAULT_HUMAN_MDL)
precache_model(model1)
new i, model2[128]
for(i = 0; i < g_classcount; i++)
{
formatex(model2, charsmax(model2), "models/player/%s/%s.mdl", g_class_pmodel[i], g_class_pmodel[i])
precache_model(model2)
precache_model(g_class_wmodel[i])
}
THE BIOHAZARD EXAMPLE SOURCE:
Code:
https://www.mediafire.com/file/vdcy7lmg5f1us17/biohazard.sma/file
THE BIOHAZARD.CFG
Code:
https://www.mediafire.com/file/s4iy3ramck70ft8/biohazard.cfg/file