def receiveShotImpulse(self, direction, impulse):
     if not VehicleDamageState.isDamagedModel(self.damageState.modelState):
         self.swingingAnimator.receiveShotImpulse(direction, impulse)
         if self.crashedTracksController is not None:
             self.crashedTracksController.receiveShotImpulse(
                 direction, impulse)
     return
Example #2
0
 def receiveShotImpulse(self, dir, impulse):
     if BattleReplay.isPlaying() and BattleReplay.g_replayCtrl.isTimeWarpInProgress:
         return
     else:
         if not VehicleDamageState.isDamagedModel(self.__currentDamageState.modelState):
             self.swingingAnimator.receiveShotImpulse(dir, impulse)
             if self.__crashedTracksCtrl is not None:
                 self.__crashedTracksCtrl.receiveShotImpulse(dir, impulse)
         return