def calc_internal_data(self): ObjeTag.calc_internal_data(self) for trigger in self.data.tagdata.weap_attrs.triggers.STEPTREE: firing = trigger.firing misc = trigger.misc rates = trigger.misc_rates for i in range(len(rates)): rates[i] = 0 if misc.ejection_port_recovery_time: rates.ejection_port_recovery_rate = 1 / misc.ejection_port_recovery_time if misc.illumination_recovery_time: rates.illumination_recovery_rate = 1 / misc.illumination_recovery_time if firing.acceleration_time: rates.acceleration_rate = 1 / firing.acceleration_time if firing.deceleration_time: rates.deceleration_rate = 1 / firing.deceleration_time if firing.error_acceleration_time: rates.error_acceleration_rate = 1 / firing.error_acceleration_time if firing.error_deceleration_time: rates.error_deceleration_rate = 1 / firing.error_deceleration_time for i in range(len(rates)): rates[i] /= 30
def calc_internal_data(self): ObjeTag.calc_internal_data(self) bipd_attrs = self.data.tagdata.bipd_attrs movement = bipd_attrs.movement physics = bipd_attrs.physics physics.cosine_stationary_turning_threshold = cos( bipd_attrs.stationary_turning_threshold) physics.cosine_maximum_slope_angle = cos(movement.maximum_slope_angle) physics.neg_sine_downhill_falloff_angle = -sin( movement.downhill_falloff_angle) physics.neg_sine_downhill_cutoff_angle = -sin( movement.downhill_cutoff_angle) physics.sine_uphill_falloff_angle = sin(movement.uphill_falloff_angle) physics.sine_uphill_cutoff_angle = sin(movement.uphill_cutoff_angle) physics.crouch_camera_velocity = 0 if physics.crouch_camera_velocity: physics.crouch_camera_velocity /= bipd_attrs.camera_collision_and_autoaim.crouch_transition_time physics.crouch_camera_velocity /= 30
def calc_internal_data(self): ObjeTag.calc_internal_data(self) DeviTag.calc_internal_data(self) mach_attrs = self.data.tagdata.mach_attrs mach_attrs.door_open_time_ticks = int(mach_attrs.door_open_time * 30)
def calc_internal_data(self): ObjeTag.calc_internal_data(self) DeviTag.calc_internal_data(self)