Example #1
0
 def __init__(self, yaw, dropPoint, landingPosition, descendTime):
     ScriptGameObject.__init__(self, BigWorld.player().spaceID)
     CallbackDelayer.__init__(self)
     self.descendSimulator = DescendSimulator(yaw, dropPoint,
                                              landingPosition, descendTime)
     self.__descendTime = descendTime
     self.__dropPoint = dropPoint
 def __init__(self, spaceId, vEntity):
     ScriptGameObject.__init__(self, vEntity.spaceID)
     self.__loadState = _LoadStateNotifier()
     self.__curBuildInd = 0
     self.__vDesc = None
     self.__vState = None
     size = len(TankPartNames.ALL)
     self.__fashions = VehiclePartsTuple(*([None] * size))
     self.__repaintHandlers = [None] * size
     self.__camoHandlers = [None] * size
     self.__projectionDecalsHandlers = [None] * size
     self.__projectionDecalsUpdater = None
     self.__spaceId = spaceId
     self.__vEntity = weakref.proxy(vEntity)
     self.__onLoadedCallback = None
     self.__onLoadedAfterRefreshCallback = None
     self.__vehicleStickers = None
     self.__isVehicleDestroyed = False
     self.__outfit = None
     self.__staticTurretYaw = 0.0
     self.__staticGunPitch = 0.0
     self.__anchorsHelpers = None
     self.__anchorsParams = None
     self.__attachments = []
     self.__modelAnimators = []
     self.shadowManager = None
     cfg = hangarCFG()
     self.__currentEmblemsAlpha = cfg['emblems_alpha_undamaged']
     self.__showMarksOnGun = self.settingsCore.getSetting('showMarksOnGun')
     self.settingsCore.onSettingsChanged += self.__onSettingsChanged
     self.itemsCache.onSyncCompleted += self.__onItemsCacheSyncCompleted
     g_eventBus.addListener(CameraRelatedEvents.CAMERA_ENTITY_UPDATED,
                            self.__handleEntityUpdated)
     g_currentVehicle.onChanged += self.__onVehicleChanged
     return
Example #3
0
 def __init__(self):
     CallbackDelayer.__init__(self)
     ScriptGameObject.__init__(self, BigWorld.player().spaceID)
     self.__alwaysShowAimKey = None
     self.__showMarkersKey = None
     sec = self._readCfg()
     self.onCameraChanged = Event()
     self.onPostmortemVehicleChanged = Event()
     self.onPostmortemKillerVisionEnter = Event()
     self.onPostmortemKillerVisionExit = Event()
     self.__isArenaStarted = False
     self.__isStarted = False
     self.__targeting = _Targeting()
     self.__vertScreenshotCamera = _VertScreenshotCamera()
     self.__ctrls = dict()
     self.__killerVehicleID = None
     self.__isAutorotation = True
     self.__prevModeAutorotation = None
     self.__isSPG = False
     self.__isATSPG = False
     self.__isDualGun = False
     self.__isMagnetAimEnabled = False
     self.__setupCtrls(sec)
     self.__curCtrl = self.__ctrls[_CTRLS_FIRST]
     self.__ctrlModeName = _CTRLS_FIRST
     self.__isDetached = False
     self.__waitObserverCallback = None
     self.__observerVehicle = None
     self.__observerIsSwitching = False
     self.__commands = []
     self.__detachedCommands = []
     self.__remoteCameraSender = None
     self.__isGUIVisible = False
     return
 def __init__(self):
     BigWorld.Entity.__init__(self)
     ScriptGameObject.__init__(self, self.spaceID)
     ISelectableObject.__init__(self)
     self.__enabled = True
     self.__edged = False
     self.__clickSound = None
     self.model = None
     return
Example #5
0
 def __init__(self, dropID, deliveryPosition, deliveryTime):
     ScriptGameObject.__init__(self, BigWorld.player().spaceID)
     CallbackDelayer.__init__(self)
     self.owner = Svarog.GameObject(BigWorld.player().spaceID)
     self.owner.activate()
     self.owner.addComponent(self)
     Svarog.addGameObject(BigWorld.player().spaceID, self.owner)
     self.id = dropID
     self.deliveryPosition = deliveryPosition
     self.deliveryTime = deliveryTime + BigWorld.time(
     ) - BigWorld.serverTime()
     self.onFlightEnd = Event()
Example #6
0
 def __init__(self, arena, bonusType, arenaType):
     ScriptGameObject.__init__(self, 0)
     self.bonusType = bonusType
     self.arenaType = arenaType
     self.arena = weakref.ref(arena)
     self._onUpdate = {
         ARENA_UPDATE.SYNC_OBJECTS: self.__onFullSyncObjectReceived,
         ARENA_UPDATE.SYNC_OBJECTS_DIFF: self.__onSyncObjectUpdateReceived
     }
     self.__syncDataObjects = {}
     for k, _ in ARENA_SYNC_OBJECT_NAMES.iteritems():
         self.__syncDataObjects[k] = ArenaSyncObject()
Example #7
0
 def __init__(self):
     ScriptGameObject.__init__(self, self.spaceID)
     self.__vehDescr = vehicles.VehicleDescr(
         compactDescr=self.vehicleCompDescr)
     self.filter = BigWorld.WGTurretFilter()
     self.__detachConfirmationTimer = SynchronousDetachment(self)
     self.__detachConfirmationTimer.onInit()
     self.__detachmentEffects = None
     self.targetFullBounds = True
     self.targetCaps = [1]
     self.__isBeingPulledCallback = None
     self.__hitEffects = None
     self.__vehicleStickers = None
     return
 def __init__(self, dropID, deliveryPosition, teamID, yawAxis):
     self.__spaceID = BigWorld.player().spaceID
     ScriptGameObject.__init__(self, self.__spaceID)
     CallbackDelayer.__init__(self)
     self.owner = Svarog.GameObject(self.__spaceID)
     self.owner.activate()
     self.owner.addComponent(self)
     Svarog.addGameObject(self.__spaceID, self.owner)
     self.__deliveryPosition = deliveryPosition
     self.__markerArea = None
     self.__deliveryEffect = None
     self.__teamID = teamID
     self.__yawAxis = yawAxis
     self.__plannedAnimDuration = 0.0
     return
 def __init__(self, spaceID):
     ScriptGameObject.__init__(self, spaceID)
     self._vehicle = None
     self.__filter = None
     self.__typeDesc = None
     self.crashedTracksController = None
     self.__currentDamageState = VehicleDamageState()
     self.__currTerrainMatKind = [-1] * MATKIND_COUNT
     self.__currTerrainGroundType = [-1] * MATKIND_COUNT
     self.__terrainEffectMaterialNames = [''] * MATKIND_COUNT
     self._chassisDecal = VehicleDecal(self)
     self.__splodge = None
     self.__boundEffects = None
     self._splineTracks = None
     self.flyingInfoProvider = self.createComponent(Vehicular.FlyingInfoProvider)
     self.__trackScrollCtl = BigWorld.PyTrackScroll()
     self.__trackScrollCtl.setFlyingInfo(DataLinks.createBoolLink(self.flyingInfoProvider, 'isLeftSideFlying'), DataLinks.createBoolLink(self.flyingInfoProvider, 'isRightSideFlying'))
     self.__weaponEnergy = 0.0
     self.__outfit = None
     self.__systemStarted = False
     self.__isAlive = True
     self._isTurretDetached = False
     self.__isObserver = False
     self.__attachments = []
     self.__modelAnimators = []
     self.turretMatrix = None
     self.gunMatrix = None
     self.__allLodCalculators = []
     self._commonScroll = 0.0
     self._commonSlip = 0.0
     self._compoundModel = None
     self.__fashions = None
     self.__filterRetrievers = []
     self._vehicleStickers = None
     self.__vID = 0
     self.__renderState = None
     self.__frameTimestamp = 0
     self.__periodicTimerID = None
     return