View Single Post
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 11-13-2013 , 11:28   Re: [TF2] Building Size Randomizer
Reply With Quote #24

Quote:
Originally Posted by asherkin View Post
The code in here is quite inefficient.

OnConfigsExecuted is called a huge number of times, reading every cvar each time, completely negating the benefit from caching the values.

The building type checks are ALL run every time with no early exit, and the code could be cleaned up by only having one call to SetEntProp at the end.
Updated.
Pelipoika is offline