Decopiler Lua Hack

05/02/2015 23:58 stiven3196x#1
As this small program you can decompile the .lua files to be modified and be copilados to return to work, with this program you can edit the example code:
Revolver. lua
which it is in red to been modifiacado
0 = infinite ammunition
2 = attack power X2

STATE:SetFrontOffset(275)
STATE:InitLua(260, 40, -40, 250, 800, 650)
Attack1 = CreateCAttack()
Attack1:InitAttack1(Attack1, WEAPONTYPE_REVOLVER, ATTACKATTRIB_REVOLVER, 150, l_1_1 * 2 + l_1_3, AddtionalPower)
Attack1:InitAttack2(Attack1, MAKERAY(MAKEVECTOR3(0, 0, 0), MAKEVECTOR3(0, 0.02, -1), RayDistanceLimit), 1, 1, false)
Attack1:SetCollisionRangeAdjust(false, false)
Attack1:SetConsumeAmmo(0)
Attack1:SetCameraShakeEnable(true, true, 0)
Attack1:SetCameraShakeSetFactor1(Attack1, 50, 25, 20)
Attack1:SetCameraShakeSetFactor2(Attack1, 1, 1, 1000, 1500)
Attack1:SetCameraShakeRandomDir(true)
AddAttack(ATTACKS, Attack1)
Attack2 = CreateCAttack()
Attack2:InitAttack1(Attack2, WEAPONTYPE_REVOLVER, ATTACKATTRIB_REVOLVER, 150, l_1_1 * 2 + l_1_3, AddtionalPower)
Attack2:InitAttack2(Attack2, MAKERAY(MAKEVECTOR3(0, 0, 0), MAKEVECTOR3(0, -0.5 * l_1_2, -1), RayDistanceLimit), 1, 1, false)
Attack2:SetCollisionRangeAdjust(false, false)
Attack2:AddPushCondition(200, 2000, -5000)
AddAttack(ATTACKS, Attack2)
Attack3 = CreateCAttack()
Attack3:InitAttack1(Attack3, WEAPONTYPE_REVOLVER, ATTACKATTRIB_REVOLVER, 150, l_1_1 * 2 + l_1_3, AddtionalPower)
Attack3:InitAttack2(Attack3, MAKERAY(MAKEVECTOR3(0, 0, 0), MAKEVECTOR3(0.5 * l_1_2, 0.5 * l_1_2, -1), RayDistanceLimit), 1, 1, false)
Attack3:SetCollisionRangeAdjust(false, false)
Attack3:AddPushCondition(200, 2000, -5000)
AddAttack(ATTACKS, Attack3)
Attack4 = CreateCAttack()
Attack4:InitAttack1(Attack4, WEAPONTYPE_REVOLVER, ATTACKATTRIB_REVOLVER, 150, l_1_1 * 2 + l_1_3, AddtionalPower)
Attack4:InitAttack2(Attack4, MAKERAY(MAKEVECTOR3(0, 0, 0), MAKEVECTOR3(-0.5 * l_1_2, 0.5 * l_1_2, -1), RayDistanceLimit), 1, 1, false)
Attack4:SetCollisionRangeAdjust(false, false)
Attack4:AddPushCondition(200, 2000, -5000)
AddAttack(ATTACKS, Attack4)


to use it should retain the original files in the "b" folder and run as administrator "LuaDecompiler" And then selects the file you want to decompile Click on all decompiller and then in open, at the end again and clik selecionan compile, they will be stored in the "O" folder

Descargar: [Only registered and activated users can see links. Click Here To Register...]

if you please thank served :handsdown:
05/03/2015 08:02 zineritt#2
i use it but it doesn`t decompile actorstates_constant.lua at all.. actually i dun see any message like yours . that`s what i see
local index = 0
STATE_SPECTATE = index
index = index + 1
STATE_GHOST = index
index = index + 1
STATE_RESPAWN = index
index = index + 1
STATE_WAIT = index
index = index + 1
STATE_STANDBY = index
index = index + 1
STATE_NORMAL = index
index = index + 1
STATE_RUN = index
index = index + 1
STATE_SIT = index
index = index + 1
STATE_JUMP = index
index = index + 1
STATE_BOUNDJUMP = index
index = index + 1
STATE_FALL = index
index = index + 1
STATE_DODGE_LEFT = index
index = index + 1
STATE_DODGE_RIGHT = index
index = index + 1
STATE_STUN = index
index = index + 1
STATE_DOWN = index
index = index + 1
STATE_STANDUP = index
index = index + 1