Raised This Month: $51 Target: $400
 12% 

[L4D2] vmax vmin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Solar1234
Junior Member
Join Date: Nov 2021
Old 03-18-2024 , 04:10   [L4D2] vmax vmin?
Reply With Quote #1

How do I make the range of buttons available roughly match the size of the model
PHP Code:
float min[3], max[3];
GetEntPropVector(crateProp_Send"m_vecMaxs"max);
GetEntPropVector(crateProp_Send"m_vecMins"min);

float center[3];
for(
int i3i++) center[i] = (max[i] + min[i])*0.5;
// PrintToChatAll("center:%.2f %.2f %.2f ang:%.2f %.2f %.2f", center[0], center[1], center[2], ang[0], ang[1], ang[2]);

SetEntPropVector(buttonProp_Send"m_vecMins"min);
SetEntPropVector(buttonProp_Send"m_vecMaxs"max); 
Solar1234 is offline
Reply



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 02:18.


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