 |
|
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
|

12-24-2013
, 12:29
Re: Retard Kate. [Female Hero] help?
|
#4
|
Quote:
Originally Posted by SkumTomteN
I have a plugin. that sets modelindex.
Dont understand what you mean.
Code:
new const DBUG_PLAYER_MODEL[][] = {
"spetsnaz",
"gign",
"ADMIN",
"fast_jumper",
"classic",
"zombie_siners",
"china",
"gsg9",
"davidblack",
"gerrard",
"zombie-rus_s0h2",
"pirateboy",
"hero",
"chngirl01"
}
that is what i have written. in the plugin.
|
Don't understand? arrr sad, here is an example how to fix that issue:
PHP Code:
#include <amxmodx> #include <fakemeta>
new ModelIndexFemale
public plugin_precache() { ModelIndexFemale = engfunc(EngFunc_PrecacheModel, "models/player_w.mdl") //cso female hitbox, use this hitbox for cso female models only. engfunc(EngFunc_PrecacheModel, "models/player/criss/criss.mdl") //use criss for example, but as far as i know all cso female models are bugged. }
public plugin_init() { register_plugin("CSO Female HitBoxFix", "0.0.1", "wbyokomo") }
//foward playerspawn, for example we hook spawn forward to set player model public OnSpawn(id) { //set cso female playermodel set_user_info(id, "model", "criss") //for example criss //set a correct female hitbox to prevent holding dual elites bug fm_cs_set_user_model_index(id, ModelIndexFemale) }
//func cs set player model index fm_cs_set_user_model_index(id, value) { if(pev_valid(id) == 2) set_pdata_int(id, 491, value, 5); }
Last edited by yokomo; 12-24-2013 at 12:32.
|
|
|
|