Raised This Month: $ Target: $400
 0% 

Host_Error: backwards mins/maxs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
colossus
Member
Join Date: Sep 2013
Old 08-11-2014 , 23:21   Host_Error: backwards mins/maxs
Reply With Quote #1

PHP Code:
#define KIT_MINS Float:{ -5.850000, -4.700000, -8.470000 }
#define KIT_MAXS Float:{  5.640000, -8.470000,  7.850000 }

public create_kit(id)
{
    new 
Float:fVelocity[3]
    new 
iEnt create_entity("info_target")
    
    
entity_set_string(iEnt,EV_SZ_classnameEXTRA_ITEMS[MEDIKIT][NAME])
    
entity_set_model(iEntg_sMedKitModel)
    
entity_set_size(iEntKIT_MINSKIT_MAXS)
    
    
set_renderingiEntkRenderFxGlowShell150 255kRenderNormal25)
    
    static 
Float:origin ], Float:angle ]
    
engfunc(EngFunc_GetAttachmentid originangle )
    
    
entity_set_origin(iEnt origin )
    
VelocityByAim(id250 fVelocity )
    
entity_set_vector(iEntEV_VEC_velocityfVelocity )
    
    
entity_set_int(iEntEV_INT_solid1)
    
entity_set_int(iEntEV_INT_movetypeMOVETYPE_TOSS)
    
entity_set_vector(iEntEV_VEC_origin origin)    

Model .qc file (only sizes)
Quote:
$bbox 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
$cbox 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
$eyeposition 0.000000 0.000000 0.000000

// 1 hit box(es)
$hbox 0 "idle" -5.850000 -4.700000 -8.470000 5.640000 3.080000 7.850000
colossus is offline
fl0werD
Senior Member
Join Date: May 2011
Old 08-13-2014 , 13:02   Re: Host_Error: backwards mins/maxs
Reply With Quote #2

Float: { -5.850000 -4.700000 -8.470000 }, Float{ 5.640000 3.080000 7.850000 }
fl0werD is offline
Send a message via ICQ to fl0werD
colossus
Member
Join Date: Sep 2013
Old 08-14-2014 , 14:25   Re: Host_Error: backwards mins/maxs
Reply With Quote #3

The sizes do not match the model ... The size is wider than the model when an entity is created.
colossus is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 08-14-2014 , 15:50   Re: Host_Error: backwards mins/maxs
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?t=178658

does this stock show you the same values? check it with a print and replace if they are different
baneado is offline
colossus
Member
Join Date: Sep 2013
Old 08-14-2014 , 16:08   Re: Host_Error: backwards mins/maxs
Reply With Quote #5

Quote:
Originally Posted by baneado View Post
https://forums.alliedmods.net/showthread.php?t=178658

does this stock show you the same values? check it with a print and replace if they are different
not work
colossus is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 08-14-2014 , 16:16   Re: Host_Error: backwards mins/maxs
Reply With Quote #6

show us how did you test it.

you must divide the results by 2 and then use xs_vec_neg to obtain mins

Last edited by baneado; 08-14-2014 at 16:16.
baneado is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 08-14-2014 , 22:58   Re: Host_Error: backwards mins/maxs
Reply With Quote #7

PHP Code:
#define KIT_MAXS Float:{  5.640000, -8.470000,  7.850000 } 
A second value is going negative. It should probably be 3.08000 as I can see in model .qc script you have provided.
klippy is offline
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:08.


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