From c586b718b44c91a4575470d5d893aaea08b5235e Mon Sep 17 00:00:00 2001 From: squeek Date: Sun, 12 Apr 2015 14:06:22 -0700 Subject: [PATCH] Increase flag touch bounds a bit * Height from 65% of model height to 80% * Width from 100% of model width to 150% + Stops a single SG from being able to completely block the flag, though you can still make it difficult to grab * See fortressforever/fortressforever#166 Flag model bounds: 26.254800796509 x 69.179306283593 Flag bounds before this change: 26.254800796509 x 45.048884835839 Flag bounds after this change: 39.382202148438 x 55.155250549316 --- maps/includes/base_teamplay.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/maps/includes/base_teamplay.lua b/maps/includes/base_teamplay.lua index a3b2d2e..4ed3cd3 100644 --- a/maps/includes/base_teamplay.lua +++ b/maps/includes/base_teamplay.lua @@ -724,12 +724,12 @@ end function baseflag:hasanimation() return true end function baseflag:gettouchsize( mins, maxs ) - mins.x = mins.x - mins.y = mins.y - maxs.x = maxs.x - maxs.y = maxs.y + mins.x = mins.x * 1.50 + mins.y = mins.y * 1.50 + maxs.x = maxs.x * 1.50 + maxs.y = maxs.y * 1.50 mins.z = 0 - maxs.z = maxs.z * 0.65 + maxs.z = maxs.z * 0.80 end function baseflag:getphysicssize( mins, maxs )