Raised This Month: $ Target: $400
 0% 

Solved FL_ONGROUND counts standing on entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TBagT
Member
Join Date: Aug 2016
Location: Lithuania
Old 06-26-2017 , 05:52   Re: FL_ONGROUND counts standing on entity
Reply With Quote #5

Okay so if the player touches worldspawn entity while sprinting, it stops the sprinting and creates a sprite, everything works fine but if player falls on ground, touches a small slope on ground or stairs like in de_dust2 it it counts as touching, any work around for this ?

Sprite code:
PHP Code:
if( equalsz_classname"worldspawn" ) && ( flags FL_ONGROUND ) ) {
        
// effects of hitting //
        
static Floatstop_origin];
        
entity_get_vectoridEV_VEC_originstop_origin );

        
message_beginMSG_BROADCASTSVC_TEMPENTITY );
        
write_byteTE_BEAMCYLINDER );
        
engfuncEngFunc_WriteCoordstop_origin] );
        
engfuncEngFunc_WriteCoordstop_origin] );
        
engfuncEngFunc_WriteCoordstop_origin] );
        
engfuncEngFunc_WriteCoordstop_origin] );
        
engfuncEngFunc_WriteCoordstop_origin] );
        
engfuncEngFunc_WriteCoordstop_origin] + get_pcvar_floatg_cvarsRADIUS ] ) * );
        
write_shortexplosion_spr );
        
write_byte);
        
write_byte);
        
write_byte);
        
write_byte20 );
        
write_byte);
        
write_byte211 );
        
write_byte197 );
        
write_byte180 );
        
write_byte150 );
        
write_byte);
        
message_end( );

        
// End run //
        
emit_soundidCHAN_BODYg_hit1.0ATTN_NORM0PITCH_NORM );
        
fw_charger_sprint_endid TASK_SPRINT );

        
client_printidprint_center"Ent touched: %s || %d"sz_classnamevictim );


Last edited by TBagT; 06-26-2017 at 05:53.
TBagT 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 23:06.


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