by Cobalt » Sun Jan 22, 2012 6:43 am
Actually I was thinking about this myself the other day, and dont recall anyone asking about it. What you are wanting is a 'weight' to be added to an entity, depending on the size of the model. I dont think the quake legacy engine has it by default, dunno about darkplaces...but I suppose you could assign a specific for weight:
.float weight;
Then something that calculates a base weight when it looks at the absolute mins + maxs of the model's setsize command , then depending on the model itself's density, you could add in another factor to decrease or increase it, and you would have a ranbge of values to work with. The next thing would be altering the entities velocity with a think and or touch, somethitng like:
// Self , is for example the player
self.velocity = self.velocity / self.weight;