With PjOrion you can normal open the Python files thats true but WG(Wargaming Saint Petersburg "Lesta Studio") have
obfuscated the files and you cant open this Files!
Google Translate:
С PjOrion вы можете нормально открывать файлы Python это правда, но РГ (Wargaming Санкт-Петербург "Леста Студия») уже obfusated файлы и вы не можете открыть эти файлы!
Последний раз редактировалось Deutscher_Adler; 09.07.2015 в 16:23.
if u need the python code for vangaship, maybe u can fix it
import BigWorld
import Math
from Math import Vector3, Matrix
import math
from AvatarInputHandler import mathUtils
from ProjectileMover import collideDynamicAndStatic
from debug_utils import LOG_CODEPOINT_WARNING
class IAimingSystem(object):
matrix = property(lambda self: self._matrix)
def getDesiredShotPoint(start, dir, onlyOnGround = False, isStrategicMode = False):
end = start + dir.scale(10000.0)
if isStrategicMode:
point1 = __collideStaticOnly(start, end)
point2 = collideDynamicAndStatic(start, end, (BigWorld.player().playerVehicleID,), skipGun=isStrategicMode)
if point1 is None or point2 is None:
point = None
else:
dir = Math.Vector3(point2[0]) - Math.Vector3(point1[0])
point = (Math.Vector3(point1[0]) + dir.scale(0.5), None)
else:
point = collideDynamicAndStatic(start, end, (BigWorld.player().playerVehicleID,), skipGun=isStrategicMode)
if point is not None:
return point[0]
elif not onlyOnGround:
return shootInSkyPoint(start, dir)
else:
return
return
def shootInSkyPoint(startPos, dir):
dirFromCam = dir
start = startPos
dirFromCam.normalise()
vehicle = BigWorld.player().vehicle
if vehicle is not None and vehicle.inWorld and vehicle.isStarted:
shotPos = Math.Vector3(vehicle.appearance.modelsDesc['gun']['model'].position)
shotDesc = vehicle.typeDescriptor.shot
else:
type = BigWorld.player().arena.vehicles[BigWorld.player().playerVehicleID]['vehicleType']
shotPos = BigWorld.player().getOwnVehiclePosition()
shotPos += type.hull['turretPositions'][0] + type.turret['gunPosition']
shotDesc = type.shot
dirAtCam = shotPos - start
dirAtCam.normalise()
cosAngle = dirAtCam.dot(dirFromCam)
a = shotDesc['maxDistance']
b = shotPos.distTo(start)
try:
dist = b * cosAngle + math.sqrt(b * b * (cosAngle * cosAngle - 1) + a * a)
except:
dist = shotDesc['maxDistance']
LOG_CODEPOINT_WARNING()
if dist < 0.0:
dist = shotDesc['maxDistance']
finalPoint = start + dirFromCam.scale(dist)
intersecPoint = BigWorld.player().arena.collideWithSpaceBB(start, finalPoint)
if intersecPoint is not None:
finalPoint = intersecPoint
return finalPoint
def __collideStaticOnly(startPoint, endPoint):
res = None
testRes = BigWorld.wg_collideSegment(BigWorld.player().space ID, startPoint, endPoint, 128)
if testRes is not None:
res = (testRes[0], None)
return res
Добавлено через 3 минуты
sry thats the real vangaship python code, hope u can fix it
# Embedded file name: D:\Kirill\WoT\WoWs\VangaShip.py
import BigWorld, Keys
import GUI, Math
import math
from Avatar import PlayerAvatar
from Vehicle import Vehicle
import InputHandler
import PrimInstDrawer
__author__ = 'STL1te'
modActivated = True