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_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"));
set_pev(missile, pev_classname, MISSILE_CLASSNAME);
engfunc(EngFunc_SetSize, missile, MISSILE_MINS, MISSILE_MAXS);
engfunc(EngFunc_SetModel, missile, MISSILE_MODEL);
engfunc(EngFunc_SetOrigin, missile, origin);
set_pev(missile, pev_solid, SOLID_TRIGGER);
set_pev(missile, pev_movetype, MOVETYPE_FLY);
set_pev(missile, pev_velocity, velocity);
set_pev(missile, pev_owner, id);
set_pev(missile, pev_angles, angles);
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.