def __init__(self, configDataSec): CallbackDelayer.__init__(self) TimeDeltaMeter.__init__(self) self.__cam = BigWorld.FreeCamera() self.__cam.invViewProvider = Math.MatrixProduct() self.__ypr = Math.Vector3() self.__position = Math.Vector3() self.__defaultFov = BigWorld.projection().fov self.__velocity = Math.Vector3() self.__isVerticalVelocitySeparated = False self.__yprVelocity = Math.Vector3() self.__zoomVelocity = 0.0 self.__inertiaEnabled = False self.__movementInertia = None self.__rotationInertia = None self.__movementSensor = None self.__verticalMovementSensor = None self.__rotationSensor = None self.__zoomSensor = None self.__targetRadiusSensor = None self.__mouseSensitivity = 0.0 self.__scrollSensitivity = 0.0 self.__rotateAroundPointEnabled = False self.__rotationRadius = 40.0 self.__alignerToLand = _AlignerToLand() self.__predefinedVelocities = {} self.__predefinedVerticalVelocities = {} self.__keySwitches = {} self.__readCfg(configDataSec) self.__aim = None self.__basisMProv = _VehicleBounder() self.__entityPicker = _VehiclePicker() return
def __init__(self, updatePeriod=0.0): CallbackDelayer.__init__(self) TimeDeltaMeter.__init__(self) self.__updatePeriod = updatePeriod self.__turretSound = None self.__prevTurretYaw = None return
def __init__(self, dataSec, aim): CallbackDelayer.__init__(self) TimeDeltaMeter.__init__(self) self.__shiftKeySensor = None self.__movementOscillator = None self.__impulseOscillator = None self.__noiseOscillator = None self.__dynamicCfg = CameraDynamicConfig() self.__accelerationSmoother = None self.__readCfg(dataSec) if aim is None: return self.__aim = weakref.proxy(aim) self.__cam = BigWorld.HomingCamera() aimOffset = self.__aim.offset() self.__cam.aimPointClipCoords = Vector2(aimOffset) self.__curSense = 0 self.__curScrollSense = 0 self.__defaultAimOffset = (aimOffset[0], aimOffset[1]) self.__postmortemMode = False self.__modelsToCollideWith = [] self.__onChangeControlMode = None self.__aimingSystem = None self.__focalPointDist = 1.0 self.__autoUpdateDxDyDz = Vector3(0.0)
def __init__(self, dataSec, aim): CallbackDelayer.__init__(self) TimeDeltaMeter.__init__(self) self.__shiftKeySensor = None self.__movementOscillator = None self.__impulseOscillator = None self.__noiseOscillator = None self.__dynamicCfg = CameraDynamicConfig() self.__accelerationSmoother = None self.__readCfg(dataSec) if aim is None: return else: self.__aim = weakref.proxy(aim) self.__cam = BigWorld.HomingCamera() aimOffset = self.__aim.offset() self.__cam.aimPointClipCoords = Vector2(aimOffset) self.__curSense = 0 self.__curScrollSense = 0 self.__defaultAimOffset = (aimOffset[0], aimOffset[1]) self.__postmortemMode = False self.__modelsToCollideWith = [] self.__onChangeControlMode = None self.__aimingSystem = None self.__focalPointDist = 1.0 self.__autoUpdateDxDyDz = Vector3(0.0) return