[RELEASE] Lua Editor

05/15/2025 22:59 carbuc#16
Quote:
Originally Posted by leothefoxs View Post
can you put the injector ?
You should be able to use any injector , I can't link mine since I use a private one made by a friend.
05/15/2025 23:28 cracksuxer200#17
Quote:
Originally Posted by Klopper1423 View Post
thanks i try it out and report back to you



so i got this far and still no idea what i did wrong i got so far that it tries to replace them but get the error massages that is fails to open the scrips
U probable wrote an incorrect path, just remove luaeditor.ini inside s4s path and try again, or edit that file with the path, idk how u expect me to help without a single image.
05/16/2025 03:21 Klopper1423#18
you guys sure they havent patch it yet, because i manage now to loade in the scripts but they arent function, like the cannonade one
05/16/2025 07:29 carbuc#19
Quote:
Originally Posted by Klopper1423 View Post
you guys sure they havent patch it yet, because i manage now to loade in the scripts but they arent function, like the cannonade one
YES , I'm telling you it still works.
You probably didn't modify the .lua correctly if nothing happen.
05/16/2025 10:49 cracksuxer200#20
Quote:
Originally Posted by Klopper1423 View Post
you guys sure they havent patch it yet, because i manage now to loade in the scripts but they arent function, like the cannonade one
This cannot be patched btw. Let me be clearer, its possible but they won't, they would need to change how LUA works.

Its easier to patch injection.
05/17/2025 14:05 carbuc#21
Anyone manage to change the damage of weapons (idk if it's even possible) ?
Sentrys work differently so I know you can change those but what about the other weapons.

I figured how to have infinite ammo with this line if anyone want (it give ammo back when you shoot):
HTML Code:
SetConsumeAmmo( -1 )
05/17/2025 16:00 cracksuxer200#22
Quote:
Originally Posted by carbuc View Post
Anyone manage to change the damage of weapons (idk if it's even possible) ?
Sentrys work differently so I know you can change those but what about the other weapons.

I figured how to have infinite ammo with this line if anyone want (it give ammo back when you shoot):
HTML Code:
Attack1:SetConsumeAmmo( -1 );
Youd get an answer quicker asking chatgpt tbh.

For what you asked, damage is usually the 'power' argument. For example, check out Weapon_revolver.lua

Code:
function StandardRevolver(  OneShotTime, Power, Accuracy, AdditionalPower )
    STATE:SetFrontOffset( 275 );
    STATE:InitLua( 260.0, 40.0, -40.0, 250.0, 800, 650 );
    
    Attack1 = CreateCAttack();
    Attack1:InitAttack1( WEAPONTYPE_REVOLVER, ATTACKATTRIB_REVOLVER, 150, Power*0.25+AdditionalPower, AddtionalPower );
    Attack1:InitAttack2( MAKERAY( MAKEVECTOR3(0,0,0), MAKEVECTOR3(0,0.02,-1), RayDistanceLimit ), 1, 1, false  );
    Attack1:SetDamageApplyType( 3 );    
    Attack1:SetDistanceDamageLength( 3000 );
    Attack1:SetCollisionRangeAdjust( false, false );
    Attack1:SetCritical( 2.5, 0 );
    Attack1:SetConsumeAmmo( 1 );
    Attack1:SetCameraShakeEnable( true, true, 0 );
    Attack1:AddPushCondition( 100, 1700.0, -5000.0 );
    Attack1:SetCameraShakeSetFactor1( 50, 25, 20 );
    Attack1:SetCameraShakeSetFactor2( 1.0, 1.0, 1000.0, 1500.0 );
    Attack1:SetCameraShakeRandomDir( true );
    AddAttack( ATTACKS, Attack1 );   
   ...
end
If you get lucky u can find comments in korean explaining each function arg.
05/17/2025 18:15 carbuc#23
Quote:
Originally Posted by cracksuxer200 View Post
Youd get an answer quicker asking chatgpt tbh.

For what you asked, damage is usually the 'power' argument. For example, check out Weapon_revolver.lua

Code:
function StandardRevolver(  OneShotTime, Power, Accuracy, AdditionalPower )
    STATE:SetFrontOffset( 275 );
    STATE:InitLua( 260.0, 40.0, -40.0, 250.0, 800, 650 );
    
    Attack1 = CreateCAttack();
    Attack1:InitAttack1( WEAPONTYPE_REVOLVER, ATTACKATTRIB_REVOLVER, 150, Power*0.25+AdditionalPower, AddtionalPower );
    Attack1:InitAttack2( MAKERAY( MAKEVECTOR3(0,0,0), MAKEVECTOR3(0,0.02,-1), RayDistanceLimit ), 1, 1, false  );
    Attack1:SetDamageApplyType( 3 );    
    Attack1:SetDistanceDamageLength( 3000 );
    Attack1:SetCollisionRangeAdjust( false, false );
    Attack1:SetCritical( 2.5, 0 );
    Attack1:SetConsumeAmmo( 1 );
    Attack1:SetCameraShakeEnable( true, true, 0 );
    Attack1:AddPushCondition( 100, 1700.0, -5000.0 );
    Attack1:SetCameraShakeSetFactor1( 50, 25, 20 );
    Attack1:SetCameraShakeSetFactor2( 1.0, 1.0, 1000.0, 1500.0 );
    Attack1:SetCameraShakeRandomDir( true );
    AddAttack( ATTACKS, Attack1 );   
   ...
end
If you get lucky u can find comments in korean explaining each function arg.
So , I tried to change it in the "InitAttack1" on the canonade but it didn't seems to increase the damage at all.
I only tested this in Conquest so I don't know if there's another reason why it didn't work.

Seems like that changing power or "+" higher values doesn't seems to do anything.

I found a alternative using Critical tho

HTML Code:
SetCritical( X, Y )
X = Critical Multipler (High value will let you oneshot everything)
Y = Critical Chance (100 = Always crit)

This one works , now using this and infinite ammo I have the perfect weapon to farm Conquest.
05/17/2025 20:40 cracksuxer200#24
Quote:
Originally Posted by carbuc View Post
So , I tried to change it in the "InitAttack1" on the canonade but it didn't seems to increase the damage at all.
I only tested this in Conquest so I don't know if there's another reason why it didn't work.

Seems like that changing power or "+" higher values doesn't seems to do anything.

I found a alternative using Critical tho

HTML Code:
SetCritical( X, Y )
X = Critical Multipler (High value will let you oneshot everything)
Y = Critical Chance (100 = Always crit)

This one works , now using this and infinite ammo I have the perfect weapon to farm Conquest.
If you want to farm conquest just increase any melee hitbox and damage, basically hitrange + 1kill.

You can also change how many enemies spawn in scenario and farm kills.
05/18/2025 21:08 Silone1993#25
closes after injection, any idea why?
05/18/2025 21:19 cracksuxer200#26
Quote:
Originally Posted by Silone1993 View Post
closes after injection, any idea why?
What is closing, the game? The terminal?
05/18/2025 21:42 Silone1993#27
Quote:
Originally Posted by cracksuxer200 View Post
What is closing, the game? The terminal?
My bad, the terminal closes just after injection. Also win 10.
05/18/2025 21:53 cracksuxer200#28
Quote:
Originally Posted by Silone1993 View Post
My bad, the terminal closes just after injection. Also win 10.
What are u injecting with
05/18/2025 21:54 Silone1993#29
Quote:
Originally Posted by cracksuxer200 View Post
What are u injecting with
with anjector, the one posted here
05/18/2025 22:06 cracksuxer200#30
Quote:
Originally Posted by Silone1993 View Post
with anjector, the one posted here
Try using another, if the issue still happens, send me a message to DC