Raised This Month: $ Target: $400
 0% 

Entity collision size


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
loko10
Junior Member
Join Date: Oct 2011
Old 02-04-2016 , 19:39   Re: Entity collision size
Reply With Quote #10

Quote:
Originally Posted by georgik57 View Post
Try other movetypes.

As far as I know, BSP model is brush(map) model. Your model is studio.
I've tried every movetype with gravity ( bounce, toss, etc ). I'll try them again but I guess it will give the same result

@wickedd: ? it should have fallen by gravity.

EDIT: No results, I tested with MOVETYPE_BOUNCE, MOVETYPE_TOSS, MOVETYPE_BOUNCEMISSILE, MOVETYPE_FLY, MOVETYPE_FLYMISSILE. I'm pretty sure server would crash with MOVETYPE_PUSH, and MOVETYPE_STEP makes the model disappear.

I've been using MOVETYPE_PUSHSTEP because its the one that gives me the best results :/

This is the code I actually have. If you see something wrong please tell me. Players collide with the "red box" in the last picture I uploaded, but for some reasons the size is a bit bigger when it collides with the world.

PHP Code:
CreateProp( const iPropFloat:flOrigin] = { 0.00.00.0 }, const Float:flAngles] = { 0.00.00.0 } )
{
    if( 
g_iTotalProps <= iProp ) return 0;
    
    static 
iEntFloat:flMaxs], Float:flMins];
    
    do
    {
        
iEnt create_entity"info_target" );
    }
    while ( !
is_valid_entiEnt ) );
    
    
entity_set_originiEntflOrigin );
    
    
entity_set_stringiEntEV_SZ_classnameg_szPropClassname );
    
    
entity_set_intiEntEV_INT_solidSOLID_BBOX );
    
entity_set_intiEntEV_INT_movetypeMOVETYPE_PUSHSTEP );
    
    
entity_set_modeliEntg_ePropsiProp ][ Prop_Model ] );
    
    
flMins] = g_ePropsiProp ][ Prop_Size ][ ],
    
flMins] = g_ePropsiProp ][ Prop_Size ][ ];
    
flMins] = g_ePropsiProp ][ Prop_Size ][ ];
    
flMaxs] = g_ePropsiProp ][ Prop_Size ][ ];
    
flMaxs] = g_ePropsiProp ][ Prop_Size ][ ];
    
flMaxs] = g_ePropsiProp ][ Prop_Size ][ ];
    
    
entity_set_sizeiEntflMinsflMaxs );
    
    
entity_set_vectoriEntEV_VEC_anglesflAngles );
    
    
drop_to_flooriEnt );
    
    return 
iEnt;


Last edited by loko10; 02-04-2016 at 20:00.
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