Raised This Month: $ Target: $400
 0% 

Entity makes player stuck


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DavidLin
Member
Join Date: Jan 2016
Old 01-30-2016 , 14:24   Entity makes player stuck
Reply With Quote #1

When a player throws entity at a player which can't have it the player gets stuck or when entity is thrown to ground the entity floats down below ground. What could cause this problem ?

PHP Code:
public throwentid ) {
        new 
Float:Origin], Float:Velocity], Float:Angles], Float:FAngles];
        
entity_get_vectoridEV_VEC_originOrigin );
        
velocity_by_aimid64Angles )
        
vector_to_angleAnglesFAngles );

        
FAngles] = 0.0;
        
Origin] += Angles];
        
Origin] += Angles];
        
Origin] += Angles];

        new 
entity_ent create_entity"info_target" );
        
entity_set_stringentity_entEV_SZ_classnameentity_name );
        
entity_set_vectorentity_entEV_VEC_anglesFAngles );
        
entity_set_intentity_entEV_INT_solidSOLID_BBOX );
        
entity_set_intentity_entEV_INT_movetypeMOVETYPE_TOSS );
        
entity_set_originentity_entOrigin );
        
entity_set_modelentity_entgModel );
        
entity_set_sizeentity_entminModelmaxModel );
        
set_peventity_entpev_iuser2id );

        
entity_set_intentity_entEV_INT_renderfxkRenderFxGlowShell );
        
entity_set_vectorentity_entEV_VEC_rendercolorFloat:{ 221.0173.0237.0 } );

        
velocity_by_aimid300Velocity );
        
entity_set_vectorentity_entEV_VEC_velocityVelocity );
        
entity_set_floatentity_entEV_FL_takedamageDAMAGE_YES );
        
entity_set_floatentity_entEV_FL_gravity0.8 );
        
entity_set_floatentity_entEV_FL_healthget_pcvar_floatent_health ) );
        
has_entid ] = false;


Last edited by DavidLin; 01-30-2016 at 14:24.
DavidLin is offline
 



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 09:34.


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