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:
if you please thank served