this is the code used for func_dave (dont ask) in the Erads mod, which is
basical a box used to select class and rearm, this makes a solid, useage
model which can be anysize :
void CAmmoclass::Spawn( void )
{
Precache();
SET_MODEL( ENT(pev), "models/ammobox.mdl" );
UTIL_SetOrigin( pev, pev->origin );
UTIL_SetSize( pev, Vector(-32, -25, 0), Vector(32, 25, 80) );
pev->solid = SOLID_BBOX;
pev->movetype = MOVETYPE_PUSHSTEP;
SetUse ( AmmoUse );
}
you probably wont need the SetUse bit, but the rest should do what ya want
it to
----- Original Message -----
From: "Daniel Johansson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 25, 2002 10:09 PM
Subject: [hlcoders] UTIL_SetSize
> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ]
> Ok, Im still fooling around with this model thing. I link the entity/model
to world with SET_MODEL
> then I go into the game realizing that the model is not solid. I go back
to code to fix this and I have
> now come to the conclusion that you need to set a size for the model to be
solid. Now my question
> is, how can I find out these model size values, without having to type
them myself? Is there any more
> automatic way, like being able to just get the size from a model in the
.mdl file?
>
> Thanks
> Daniel
> --
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders