Raised This Month: $ Target: $400
 0% 

Entity Stepsize


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wiwi249
Member
Join Date: Oct 2013
Old 01-12-2015 , 13:49   Entity Stepsize
Reply With Quote #1

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...

Last edited by wiwi249; 01-12-2015 at 14:17.
wiwi249 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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