Raised This Month: $32 Target: $400
 8% 

Resizing Dispenser Control Panel


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Seacrh_Inkeeper
Junior Member
Join Date: Jun 2020
Location: Moscow, Russia
Old 07-19-2020 , 07:13   Resizing Dispenser Control Panel
Reply With Quote #1

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?



__________________

Last edited by Seacrh_Inkeeper; 07-19-2020 at 07:21.
Seacrh_Inkeeper is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 07-19-2020 , 23:25   Re: Resizing Dispenser Control Panel
Reply With Quote #2

I would also like to know how to get the control panel to resize/scale with the building size.

Players on my server can become a Giant Robot Engineer that produces large buildings. It would be nice if they can also build a large dispenser.
PC Gamer is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode