Skip to content

Commit f644509

Browse files
committed
Adjusted Ettin collision volume and aiming so it doesn't block itself so much when clumped.
1 parent e3bdc60 commit f644509

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

Objects3d/corsent.S3O

0 Bytes
Binary file not shown.

scripts/tankaa.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ local flares = {piece("flare1", "flare2")}
88
local a1, a2, neck = piece("a1", "a2", "neck")
99

1010
local currentGun = 1
11+
local FLARE_OFFSET = -32
1112

1213
local disarmed = false
1314
local stuns = {false, false, false}
@@ -80,12 +81,18 @@ function script.AimWeapon(num, heading, pitch)
8081
return true
8182
end
8283

84+
function script.BlockShot(num)
85+
Move(flares[currentGun], z_axis, 0)
86+
return false
87+
end
88+
8389
function script.FireWeapon()
8490
EmitSfx(flares[currentGun], 1024)
8591

8692
local barrel = barrels[currentGun]
8793
Move (barrel, z_axis, -14)
8894
Move (barrel, z_axis, 0, 21)
95+
Move(flares[currentGun], z_axis, FLARE_OFFSET)
8996

9097
currentGun = 3 - currentGun
9198
end
@@ -96,6 +103,8 @@ function script.Create()
96103
Hide(trax[2])
97104
Hide(trax[3])
98105
Hide(trax[4])
106+
Move(flares[1], z_axis, FLARE_OFFSET)
107+
Move(flares[2], z_axis, FLARE_OFFSET)
99108

100109
InitiailizeTrackControl({
101110
wheels = {

units/tankaa.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ return { tankaa = {
99
canMove = true,
1010
canPatrol = true,
1111
category = [[LAND]],
12-
collisionVolumeOffsets = [[0 0 0]],
13-
collisionVolumeScales = [[38 52 38]],
14-
collisionVolumeType = [[cylY]],
12+
collisionVolumeOffsets = [[0 -10 0]],
13+
collisionVolumeScales = [[38 66 38]],
14+
collisionVolumeType = [[ellipsoid]],
1515
corpse = [[DEAD]],
1616

1717
customParams = {

0 commit comments

Comments
 (0)