Modding:Zone Builders: Difference between revisions

m
Consistency in type casts
(Create initial version of a new modding page on zone builders.)
 
m (Consistency in type casts)
Line 86: Line 86:
             float startFloor = 10f, endFloor = 15f;
             float startFloor = 10f, endFloor = 15f;
             float startRadius = 10f, endRadius = 4f;
             float startRadius = 10f, endRadius = 4f;
             float Radius = ((float)(Z.Z) - startFloor) * endRadius + (endFloor - (float) Z.Z) * startRadius;
             float Radius = ((float)Z.Z - startFloor) * endRadius + (endFloor - (float)Z.Z) * startRadius;
             Radius = Radius / (endFloor - startFloor);
             Radius = Radius / (endFloor - startFloor);