AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Entity Stepsize (https://forums.alliedmods.net/showthread.php?t=255276)

wiwi249 01-12-2015 13:49

Entity Stepsize
 
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
(petpev_originorigin)
    
set_pev(petpev_solidSOLID_NOT)
    
set_pev(petpev_movetypeMOVETYPE_FLY)
    
set_pev(petpev_ownerid)
    
set_pev(petpev_nextthinkget_gametime()+0.05)
    
set_pev(petpev_podazajid)
    
set_pev(pet_pev_dmg0)
    
set_pev(petpev_sequence,0)
    
set_pev(petpev_gaitsequence,0)
    
set_pev(petpev_framerate,1.0


EDIT. Damn, sorry, I forgot to put it to the correct section...


All times are GMT -4. The time now is 15:32.

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