Raised This Month: $ Target: $400
 0% 

Entity collision size


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
loko10
Junior Member
Join Date: Oct 2011
Old 02-01-2016 , 18:45   Entity collision size
Reply With Quote #1

Hello. I've been having a problem that I can't solve... The entity's collision size with other entities is fine, but the collision with the world is not. I'll show two different images that will let you understand my problem.

The green line is the "good" collision size. The red line is the "bad" one, but it only happens with a corner of the entity as you can see. Players and other entities collide with the green size, while world and brushes with the red one. Sorry for my bad english, hope you can help me .

PD: I've been giving velocity to the entity so it can move around, if that helps...

Spoiler


PHP Code:
CreateBottle( const Float:flOrigin] = { 0.00.00.0 }, const Float:flAngles] = { 0.00.00.0 } )
{
    static 
iEntiEnt create_entity"info_target" );
    
    if( !
iEnt ) return 0;
    
    
entity_set_stringiEntEV_SZ_classnameg_szBottleClassname );
    
entity_set_modeliEntg_szBottleModel );
    
    
entity_set_sizeiEntFloat:{-8.0,-8.0,0.0}, Float:{8.0,8.0,16.0} );
    
    
entity_set_intiEntEV_INT_movetypeMOVETYPE_PUSHSTEP );
    
entity_set_intiEntEV_INT_solidSOLID_BBOX );
    
    
entity_set_originiEntflOrigin );
    
    
entity_set_floatiEntEV_FL_takedamage1.0 );
    
entity_set_floatiEntEV_FL_health100.0 );
    
    
entity_set_vectoriEntEV_VEC_anglesflAngles );
    
    return 
iEnt;


Last edited by loko10; 02-01-2016 at 18:48.
loko10 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:20.


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