Raised This Month: $ Target: $400
 0% 

Entity movetype + Origin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-02-2009 , 12:11   Entity movetype + Origin
Reply With Quote #1

It won't set the origin Z, with movetype follow and aiment
PHP Code:
entity_set_int(sprite_entEV_INT_movetypeMOVETYPE_FOLLOW)
entity_set_edict(sprite_entEV_ENT_aimentid ); 
With other works



PHP Code:
public Set_Sprite_Stun(id, const sprite[], Float:scaleistaskFloat:task_time, const classname[])
{
    new 
Float:fOrigin[3];
    
entity_get_vectoridEV_VEC_originfOrigin);

    new 
sprite_ent create_entity("env_sprite")

    
entity_set_string(sprite_entEV_SZ_classnameclassname)
    
entity_set_model(sprite_entsprite)


    
entity_set_intsprite_entEV_INT_rendermodekRenderTransAdd)
    
entity_set_floatsprite_entEV_FL_renderamt200.0 )
    
    
entity_set_floatsprite_entEV_FL_framerate22.0 )
    
entity_set_floatsprite_entEV_FL_scalescale )

    
DispatchSpawnsprite_ent )
    
entity_set_intsprite_entEV_INT_spawnflagsSF_SPRITE_STARTON)

    
fOrigin[2] += 70.0;

    
entity_set_vectorsprite_entEV_VEC_originfOrigin)

    
entity_set_int(sprite_entEV_INT_movetypeMOVETYPE_FOLLOW)
    
entity_set_edict(sprite_entEV_ENT_aimentid );


    if ( 
istask )
    {
        
set_task(task_time"End_Sprite_Stun"sprite_ent);
    }

__________________
xbatista is offline
Send a message via Skype™ to xbatista
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-02-2009 , 12:13   Re: Entity movetype + Origin
Reply With Quote #2

entity_set_origin( )
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-02-2009 , 12:16   Re: Entity movetype + Origin
Reply With Quote #3

Why?
PHP Code:
entity_set_vector 
is bad?
EDIT: That do nothing

I'm asking why fOrigin[2] += 70.0 won't set upper the player?
__________________

Last edited by xbatista; 10-02-2009 at 12:19.
xbatista is offline
Send a message via Skype™ to xbatista
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-02-2009 , 12:39   Re: Entity movetype + Origin
Reply With Quote #4

Because you set it to MOVETYPE_FOLLOW.
You either have to constantly change the Z axis in prethink or something, or you have to change the model to be offset from the player.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-02-2009 , 12:42   Re: Entity movetype + Origin
Reply With Quote #5

Quote:
in prethink
Quote:
or offset
naaahhh
__________________
xbatista is offline
Send a message via Skype™ to xbatista
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 22:37.


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