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_classname, EXTRA_ITEMS[MEDIKIT][NAME])
entity_set_model(iEnt, g_sMedKitModel)
entity_set_size(iEnt, KIT_MINS, KIT_MAXS)
set_rendering( iEnt, kRenderFxGlowShell, 0 , 150 , 255, kRenderNormal, 25)
static Float:origin [ 3 ], Float:angle [ 3 ]
engfunc(EngFunc_GetAttachment, id , 2 , origin, angle )
entity_set_origin(iEnt , origin )
VelocityByAim(id, 250 , fVelocity )
entity_set_vector(iEnt, EV_VEC_velocity, fVelocity )
entity_set_int(iEnt, EV_INT_solid, 1)
entity_set_int(iEnt, EV_INT_movetype, MOVETYPE_TOSS)
entity_set_vector(iEnt, EV_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
|