From 5d2cf9d9dc3d236cfc28b3ea91e3fcce1acf4164 Mon Sep 17 00:00:00 2001 From: Samir Naik Date: Thu, 9 Oct 2003 02:09:54 +0000 Subject: [PATCH] added conveyor belt and directionCell --- direct/src/level/EntityTypes.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/direct/src/level/EntityTypes.py b/direct/src/level/EntityTypes.py index 09c571bb6f..f3d423b321 100755 --- a/direct/src/level/EntityTypes.py +++ b/direct/src/level/EntityTypes.py @@ -16,6 +16,12 @@ class ActiveCell(Entity): ('col', 0), ('gridId', None) ) + +class DirectionalCell(ActiveCell): + type = 'directionalCell' + attribs = ( + ('dir', [0,0]), + ) class LevelMgr(Entity): type = 'levelMgr' @@ -109,6 +115,17 @@ class Button(Switch): class Trigger(Switch): type = 'trigger' +class ConveyorBelt(Nodepath): + type = 'conveyorBelt' + attribs = ( + ('speed', 1.0), + ('length', 1.0), + ('widthScale', 1.0), + ('treadLength', 1.0), + ('treadModelPath', 'phase_7/models/cogHQ/platform1'), + ('floorName', 'platformcollision'), + ) + class Crate(Nodepath): type = 'crate' delAttribs = (