Raised This Month: $ Target: $400
 0% 

Missile hitbox (size) problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-09-2007 , 00:39   Missile hitbox (size) problem
Reply With Quote #1

I made a missile that a player can shoot. It all works fine except it won't "touch" anything.

Here is the code:
PHP Code:
new missile engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"));
set_pev(missilepev_classnameMISSILE_CLASSNAME);
engfunc(EngFunc_SetSizemissileMISSILE_MINSMISSILE_MAXS);
engfunc(EngFunc_SetModelmissileMISSILE_MODEL);
engfunc(EngFunc_SetOriginmissileorigin);
set_pev(missilepev_solidSOLID_TRIGGER);
set_pev(missilepev_movetypeMOVETYPE_FLY);
set_pev(missilepev_velocityvelocity);
set_pev(missilepev_ownerid);
set_pev(missilepev_anglesangles); 
If I set the solid state as 'SOLID_BBOX' it WILL touch things, but the hitbox size seems to be about 0.1 x 0.1 and it won't use my specified size.

Setting it how it is now as 'SOLID_TRIGGER' doesn't touch at all.
hlstriker is offline
 


Thread Tools
Display Modes

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 01:21.


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