Hello again.
I'm working on a plugin and have created an entity, quite basing on the pet plugin, but I have a problem. When the entity comes to stairs, or event to a damn carpet on the floor, it cant move and have a step up. Is there any way I can solve this?
Code:
PHP Code:
new pet = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"info_target"))
set_pev(pet,pev_classname,"pies")
engfunc(EngFunc_SetModel,pet,MODEL)
new Float:origin[3]
pev(id,pev_origin,origin)
if(is_user_crouching(id)) origin[2] -= 16.0
else origin[2] -= 36.0
set_pev(pet, pev_origin, origin)
set_pev(pet, pev_solid, SOLID_NOT)
set_pev(pet, pev_movetype, MOVETYPE_FLY)
set_pev(pet, pev_owner, id)
set_pev(pet, pev_nextthink, get_gametime()+0.05)
set_pev(pet, pev_podazaj, id)
set_pev(pet, _pev_dmg, 0)
set_pev(pet, pev_sequence,0)
set_pev(pet, pev_gaitsequence,0)
set_pev(pet, pev_framerate,1.0)
EDIT. Damn, sorry, I forgot to put it to the correct section...