added metal crate to wall hack

This commit is contained in:
Darren Ranalli 2004-01-20 20:03:03 +00:00
parent a4da955e97
commit 4a5e3bea03

View File

@ -24,7 +24,8 @@ class ModelEntity(BasicEntities.NodePathEntity):
self.model.reparentTo(self)
# HACK SDN: special code for moving crate wall collisions down
if self.modelPath == "phase_9/models/cogHQ/woodCrateB.bam":
if self.modelPath in ("phase_9/models/cogHQ/woodCrateB.bam",
"phase_9/models/cogHQ/metal_crateB.bam"):
# move walls down
cNode = self.find("**/wall")
cNode.setZ(-.75)