AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Host_Error: backwards mins/maxs (https://forums.alliedmods.net/showthread.php?t=246101)

colossus 08-11-2014 23:21

Host_Error: backwards mins/maxs
 
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

fl0werD 08-13-2014 13:02

Re: Host_Error: backwards mins/maxs
 
Float: { -5.850000 -4.700000 -8.470000 }, Float{ 5.640000 3.080000 7.850000 }

colossus 08-14-2014 14:25

Re: Host_Error: backwards mins/maxs
 
The sizes do not match the model ... The size is wider than the model when an entity is created.

baneado 08-14-2014 15:50

Re: Host_Error: backwards mins/maxs
 
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

colossus 08-14-2014 16:08

Re: Host_Error: backwards mins/maxs
 
Quote:

Originally Posted by baneado (Post 2184055)
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

baneado 08-14-2014 16:16

Re: Host_Error: backwards mins/maxs
 
show us how did you test it.

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

klippy 08-14-2014 22:58

Re: Host_Error: backwards mins/maxs
 
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.


All times are GMT -4. The time now is 13:08.

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