Hi!
Trying to resize dispenser's model
Code:
SetEntPropFloat(index, Prop_Send, "m_flModelScale", changesize);
float flMins[3];
float flMaxs[3];
GetEntPropVector(index, Prop_Send, "m_vecBuildMins", flMins);
GetEntPropVector(index, Prop_Send, "m_vecBuildMaxs", flMaxs);
ScaleVector(flMins, changesize);
ScaleVector(flMaxs, changesize);
SetEntPropVector(index, Prop_Send, "m_vecBuildMins", flMins);
SetEntPropVector(index, Prop_Send, "m_vecBuildMaxs", flMaxs);
Works good, but there is 2 problems with resizing Dispenser Control Panel:
1) It will change it's size only after rearranging (You need to pick up and put dispenser again)
2) It will not have correct weight/height if dispenser's size differs from normal
Have someone an idea, how to fix it?
__________________