Raised This Month: $ Target: $400
 0% 

_BBOX crashes server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DavidLin
Member
Join Date: Jan 2016
Old 01-14-2016 , 11:32   _BBOX crashes server
Reply With Quote #1

When entity is tossed up ( above player ) the server crashes without any errors, when I changed entity solid type to _TRIGGER it works fine but I can't pick it up or do damage to it.

PHP Code:
public throwstickid ) {
        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_stick create_entity"info_target" );
        
entity_set_stringentity_stickEV_SZ_classnameentity_name );
        
entity_set_vectorentity_stickEV_VEC_anglesFAngles );
        
entity_set_intentity_stickEV_INT_solidSOLID_BBOX );
        
entity_set_intentity_stickEV_INT_movetypeMOVETYPE_TOSS );
        
entity_set_originentity_stickOrigin );
        
entity_set_modelentity_stickgModel );
        
entity_set_sizeentity_stickminModelmaxModel );
        
entity_set_floatentity_stickEV_FL_takedamage1.0 );
        
entity_set_floatentity_stickEV_FL_gravity0.8 ); 
        
entity_set_floatentity_stickEV_FL_healthget_pcvar_floatstick_health ) );
        
set_peventity_stickpev_iuser2id );

        
entity_set_intentity_stickEV_INT_renderfxkRenderFxGlowShell );
        
entity_set_vectorentity_stickEV_VEC_rendercolorFloat:{ 221.0173.0237.0 } );

        
velocity_by_aimid600Velocity );
        
entity_set_vectorentity_stickEV_VEC_velocityVelocity );
        
has_stickid ] = false;


Last edited by DavidLin; 01-14-2016 at 11:33.
DavidLin is offline
 


Thread Tools
Display Modes

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


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