From f1ff8070137eed75ff83a7c1728e9901eaaf2b67 Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Sun, 22 Jul 2012 19:38:00 -0500 Subject: added in new fields hasSecret, delay, delayOffset --- src/exporter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/exporter.py') diff --git a/src/exporter.py b/src/exporter.py index ed377c3..e6ba38a 100644 --- a/src/exporter.py +++ b/src/exporter.py @@ -268,12 +268,12 @@ class KPMapExporter: requiredFixUps.append((len(data) - 8, texture)) for anim in doodad.animations: - rLoop, rCurve, rFrames, rType, rStart, rEnd = anim + rLoop, rCurve, rFrames, rType, rStart, rEnd, rDelay, rDelayOffset = anim loopid = self.ANIM_LOOPS.index(rLoop) curveid = self.ANIM_CURVES.index(rCurve) typeid = self.ANIM_TYPES.index(rType) - data += struct.pack('>iiiiiiii', loopid, curveid, rFrames, typeid, rStart, rEnd, 0, 0) + data += struct.pack('>iiiiiiiiii', loopid, curveid, rFrames, typeid, rStart, rEnd, rDelay, rDelayOffset, 0, 0) elif isinstance(eLayer, self.PathLayerExporter): data += u32.pack(2) @@ -343,7 +343,7 @@ class KPMapExporter: if node.isStop(): if node.level: level1, level2 = node.level - data += struct.pack('>ibbbb', 2, level1, level2, 0, 0) + data += struct.pack('>ibbibb', 2, level1, level2, 0, 0, 0) elif node.mapChange: data += u32.pack(3) -- cgit v1.2.3