weapnbat lua

06/07/2018 14:54 012oab#1
so i edited the weapon bat lua so that jump attack always critical and it works but normally the jump attack stops the enemy for a few second if it hits but after replacing with the edited weapon bat lua ,it doesnt stop the enemy movement . can i know which part did i edited wrongly ?

function StandardBatSwordJumpAttack( OneShotTime, Power, Accuracy, AdditionalPower )

STATE:SetDrop( 200, MAKEVECTOR3( 0, -20000, 0 ) );
STATE:SetStealthCancel( true );
STATE:InitLua( 300, 1100, 40, false );

local range = WEAPON:GetRange();

Attack = CreateCAttack();
Attack:InitAttack1( WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_JUMP_CRITICAL, 300, (Power*1.5)+AdditionalPower, AddtionalPower );
Attack:InitAttack2( MAKERAY( MAKEVECTOR3(0.0, 50.0, -50.0), MAKEVECTOR3( 0.0, 0.0, -1.0), range-100 ), 1, 1, false );
Attack:SetAlwaysCritical( true );
AddAttack( ATTACKS, Attack );

Attack = CreateCAttack();
Attack:InitAttack1( WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_JUMP_CRITICAL, 300, (Power*1.9)+AdditionalPower, AddtionalPower );
Attack:InitAttack2( MAKEBOX( MAKEVECTOR3(0.0, 150.0, -50.0), MAKEVECTOR3( 0.0, 0.0, -1.0 ), range*0.4, range*1.2, range ), 1, 1, false );
Attack:SetAlwaysCritical( true );
Attack:SetCameraShakeEnable( true, true, 0 );
Attack:SetCameraShakeSetFactor1( 100, 50, 20 );
Attack:SetCameraShakeSetFactor2( 0, 20, 2000, 3000 );
Attack:SetCameraShakeWhenSuccess( true );
AddAttack( ATTACKS, Attack );
06/07/2018 15:27 0N1K4G3#2
I don't understand can you explain a bit more?
06/08/2018 08:13 012oab#3
for a clean resource.s4hd , when you use bat jump attack to hit someone , it will stop the enemy movement right ? the enemy has to click space +a+space to counter the jump attack . but after i edit it , i jump attack enemy but it does not stop their movement . it is like i did not hit them at all but they still take critical damage .
06/08/2018 12:34 EpitaphHaseo#4
I think melee criticals generally dont have hitstun. That's why plasma sword rightclick crits feel very weird sometimes. Not 100% sure if it's that way in every case though.