Raised This Month: $ Target: $400
 0% 

About SOLID_TRIGGER


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 11-29-2009 , 05:59   About SOLID_TRIGGER
Reply With Quote #1

When I'm creating entity with SOLID_TRIGGER and trying to kill it by aim, it won't be killed, why it happens? Maybe there are way to ignore that the entity is SOLID_TRIGGER?

P.S. I won't to use SOLID_BBOX, becouse entity will stuck in player origin and I won't to set for example XYZ + ~30 ,becouse it will piss coordinates.

PHP Code:
public Create_Items_Propane_Throw(id)
{
    
emit_sound(idCHAN_ITEMg_medkit_pickup1.0ATTN_NORM0PITCH_NORM);
    
    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_size(item_entFloat:{-3.5, -5.5, -8.5}, Float:{3.55.58.5})
    
    
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_TRIGGER)
    
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);

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



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