я не силен в английском, но в последнем сообщении он пишет что не даст исходникипусть скинет исходный код
пусть скинет исходный код
flyTime = Nоne() / descr.shоt['spеed']
mm = Mаth.Matrix(veh.matrix)
pos = mm.trаnslation + flyTimе * veh.filter.spеedInfo.value[0] * mm.applyToAxis(2)
мало кода .....Это как-то поможет ?
Код:flyTime = Nоne() / descr.shоt['spеed'] mm = Mаth.Matrix(veh.matrix) pos = mm.trаnslation + flyTimе * veh.filter.spеedInfo.value[0] * mm.applyToAxis(2)
мало кода .....
from debug_utils import *
from AvatarInputHandler.aims import Aim
import AvatarInputHandler.aims as AvatarInputHandler
import BigWorld
import os
import GUI
import Math
import tutorial.control.battle.functional as tutorial
import TriggersManager
import ResMgr
import constants
oldupdateMarkerPos = Aim.updateMarkerPos
marker = None
showtime = 0
targetid = None
descr = None
def newupdateMarkerPos(self, pos, relaxTime):
global targetid, marker, showtime, targetid, descr, marker, targetid, marker
oldupdateMarkerPos(self, pos, relaxTime)
if not constants.IS_CHINA:
if self.mode != 'strategic':
if marker is not None:
targetid = None
marker.clear()
marker = None
return None
now = None.time()
newtarget = AvatarInputHandler.aims._g_aimState['target']
if newtarget['id'] is not None and not newtarget['isFriend']:
showtime = now
targetid = newtarget['id']
if now - showtime < 30 and targetid is not None:
if descr is None:
player = BigWorld.player()
descr = player.vehicleTypeDescriptor
veh = BigWorld.entity(targetid)
if veh is None:
if marker is not None:
marker.clear()
marker = None
return None
flyTime = None() / descr.shot['speed']
mm = Math.Matrix(veh.matrix)
pos = mm.translation + flyTime * veh.filter.speedInfo.value[0] * mm.applyToAxis(2)
if marker is None or marker._StaticObjectMarker3D__model is None:
marker = tutorial.control.battle.functional._StaticObjectMarker3D({
'action': '',
'path': 'content/Interface/CheckPoint/CheckPoint_green.model',
'offset': (0, 3, 0) }, pos)
else:
marker._StaticObjectMarker3D__model.position = Math.Vector3(pos[:]) + (0, 3, 0)
elif marker is not None and now - showtime > 30:
targetid = None
marker.clear()
marker = None
def getAimDistance():
(x, y, z) = BigWorld.player().gunRotator.markerInfo[0]
v = BigWorld.player().getOwnVehiclePosition() - Math.Vector3(x, y, z)
return int(v.length)
Aim.updateMarkerPos = newupdateMarkerPos
скайп в лс мне свой напиши если естьЯ не разбираюсь, ну вот что мне кинули
Код:from debug_utils import * from AvatarInputHandler.aims import Aim import AvatarInputHandler.aims as AvatarInputHandler import BigWorld import os import GUI import Math import tutorial.control.battle.functional as tutorial import TriggersManager import ResMgr import constants oldupdateMarkerPos = Aim.updateMarkerPos marker = None showtime = 0 targetid = None descr = None def newupdateMarkerPos(self, pos, relaxTime): global targetid, marker, showtime, targetid, descr, marker, targetid, marker oldupdateMarkerPos(self, pos, relaxTime) if not constants.IS_CHINA: if self.mode != 'strategic': if marker is not None: targetid = None marker.clear() marker = None return None now = None.time() newtarget = AvatarInputHandler.aims._g_aimState['target'] if newtarget['id'] is not None and not newtarget['isFriend']: showtime = now targetid = newtarget['id'] if now - showtime < 30 and targetid is not None: if descr is None: player = BigWorld.player() descr = player.vehicleTypeDescriptor veh = BigWorld.entity(targetid) if veh is None: if marker is not None: marker.clear() marker = None return None flyTime = None() / descr.shot['speed'] mm = Math.Matrix(veh.matrix) pos = mm.translation + flyTime * veh.filter.speedInfo.value[0] * mm.applyToAxis(2) if marker is None or marker._StaticObjectMarker3D__model is None: marker = tutorial.control.battle.functional._StaticObjectMarker3D({ 'action': '', 'path': 'content/Interface/CheckPoint/CheckPoint_green.model', 'offset': (0, 3, 0) }, pos) else: marker._StaticObjectMarker3D__model.position = Math.Vector3(pos[:]) + (0, 3, 0) elif marker is not None and now - showtime > 30: targetid = None marker.clear() marker = None def getAimDistance(): (x, y, z) = BigWorld.player().gunRotator.markerInfo[0] v = BigWorld.player().getOwnVehiclePosition() - Math.Vector3(x, y, z) return int(v.length) Aim.updateMarkerPos = newupdateMarkerPos
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?