Raised This Month: $ Target: $400
 0% 

About SOLID_TRIGGER


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-29-2009 , 06:07   Re: About SOLID_TRIGGER
Reply With Quote #1

Try to use SOLID_BBOX and set the owner EV_INT_owner ; it should not block. If it still blocks ( it should not ahppen ) try to spawn the entity some units in front of player before.
__________________
Arkshine is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 11-29-2009 , 06:23   Re: About SOLID_TRIGGER
Reply With Quote #2

Interesting , I set it to SOLID_BBOX with owner, but the solid in game is not the SOLID_BBOX, its TRIGGER :/
PHP Code:
public Create_Items_Propane_Throw(id)
{
    new 
FloatfOrigin[3], Float:fAngle[3],FloatfVelocity[3];

    
entity_get_vectoridEV_VEC_originfOrigin);
    
entity_get_vectoridEV_VEC_view_ofsfAngle);

    
fOrigin[0] += fAngle[0];
    
fOrigin[1] += fAngle[1];
    
fOrigin[2] += fAngle[2];
    
    
fm_velocity_by_aim(id0.6fVelocityfAngle);
    
fAngle[0] *= -1.0;
    
    new 
item_ent create_entity("info_target");

    
entity_set_stringitem_entEV_SZ_classname"PropItem");
    
    
entity_set_modelitem_entg_w_medic_propane);
    
    
entity_set_floatitem_entEV_FL_takedamage1.0);
    
entity_set_floatitem_entEV_FL_health20.0);
    
    
entity_set_vectoritem_entEV_VEC_originfOrigin);

    
fOrigin[0] += fVelocity[0];
    
fOrigin[1] += fVelocity[1];
    
fOrigin[2] += fVelocity[2];
    
    
entity_set_intitem_entEV_INT_solidSOLID_BBOX)
    
entity_set_intitem_entEV_INT_movetypeMOVETYPE_TOSS)
    
    
entity_set_floatitem_entEV_FL_gravity0.55);
    
    
fVelocity[0] *= 1000.0;
    
fVelocity[1] *= 1000.0;
    
fVelocity[2] *= 1000.0;

    
entity_set_vectoritem_entEV_VEC_velocityfVelocity);
    
entity_set_vectoritem_entEV_VEC_anglesfAngle);
    
    
entity_set_edictitem_entEV_ENT_ownerid);
    
entity_set_size(item_entFloat:{-3.5, -5.5, -8.5}, Float:{3.55.58.5})
    
    
set_task(0.5"Set_Back_Model"id);

__________________
xbatista is offline
Send a message via Skype™ to xbatista
Reply



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 13:39.


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