 |
|
Veteran Member
Join Date: Oct 2013
Location: Asgard
|

12-26-2013
, 20:44
Re: Retard Kate. [Female Hero] help?
|
#5
|
Quote:
Originally Posted by yokomo
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);
}
|
Havent tried it yet, need to wait until 2nd dev is online.
But thanks, good to have people like you on these forums.
Makes everything better.
+1
__________________
|
|
|
|