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.Quote:
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
This cannot be patched btw. Let me be clearer, its possible but they won't, they would need to change how LUA works.Quote:
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
SetConsumeAmmo( -1 )
Youd get an answer quicker asking chatgpt tbh.Quote:
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 );
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
So , I tried to change it in the "InitAttack1" on the canonade but it didn't seems to increase the damage at all.Quote:
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
If you get lucky u can find comments in korean explaining each function arg.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
SetCritical( X, Y )
If you want to farm conquest just increase any melee hitbox and damage, basically hitrange + 1kill.Quote:
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
X = Critical Multipler (High value will let you oneshot everything)HTML Code:SetCritical( X, Y )
Y = Critical Chance (100 = Always crit)
This one works , now using this and infinite ammo I have the perfect weapon to farm Conquest.