decompiled bat . lua

01/29/2018 16:02 012oab#1
can someone post the decompiled x7 bat lua ?? also , what should i edit so that that the probability of bat getting critical from hits also increase.i dont want it to be 100% crit.thank you.
01/29/2018 20:11 0N1K4G3#2
Clean bat file.
Here you go >>
01/30/2018 09:08 012oab#3
how do i increase the critical probability ?
01/30/2018 14:41 0N1K4G3#4
Please subscribe me :)
01/30/2018 15:00 012oab#5
do i edit accuracy for increase crit probability ?

i only see stand bat and frypan , where's crashbat ?
01/30/2018 15:49 0N1K4G3#6
crashbat and bat same attacks in bat file, but frypan is different(go to down in file)


Normal and Crash Bat Hold Left button(strong attack)
Code:
function StandardBatSwordStandAttack_Strong1(  OneShotTime, Power, Accuracy, AdditionalPower )

	STATE:SetMoveBoxMultiplier( 0.0 );	
	STATE:SetHitStop( 450, 650 );
	STATE:SetStealthCancel( true );	
	STATE:InitLua( 1000, 40, 0, false );
	
	local range = WEAPON:GetRange();
	
	Attack = CreateCAttack();
    Attack:InitAttack1( WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_CRITICAL, 400, Power+AdditionalPower, AddtionalPower );
    Attack:InitAttack2( MAKERAY( MAKEVECTOR3(0.0, 250.0, 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_STAND_STRONG, 400, Power+AdditionalPower, AddtionalPower );
    Attack:InitAttack2( MAKEBOX( MAKEVECTOR3(0.0, 250.0, 0.0), MAKEVECTOR3( 0.0, 0.0, -1.0 ), range*0.9, range*0.9, range ), 1, 1, false  );    
    Attack:AddBlowCondition( 3000, 2000 );
    Attack:SetCameraShakeEnable( true, true, 0 );
    Attack:SetCameraShakeSetFactor1( 100, 50, 20 );
    Attack:SetCameraShakeSetFactor2( 0, 20, 2000, 3000 );
    Attack:SetCameraShakeWhenSuccess( true );    
    AddAttack( ATTACKS, Attack );

end
Code:
Attack:InitAttack1( WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_STAND_STRONG, 400, Power+AdditionalPower, AddtionalPower );
CHANGE HERE WITH:
Attack:InitAttack1( WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_CRITICAL, 400, Power+AdditionalPower, AddtionalPower );
It should be always critical :)
01/30/2018 18:21 012oab#7
change this for critical ? change the ''400'' value ?


Attack:InitAttack1( WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_STAND_STRONG, 400, Power+AdditionalPower, AddtionalPower );
CHANGE HERE WITH:
Attack:InitAttack1( WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_CRITICAL, 400, Power+AdditionalPower, AddtionalPower );
01/30/2018 22:31 0N1K4G3#8
_STAND_STRONG > _CRITICAL
01/31/2018 11:34 012oab#9
can you give me an example of the changed value for critical probability ? you only said ''_STAND_STRONG > _CRITICAL'' , that doesnt make any sense ...
01/31/2018 14:25 0N1K4G3#10
Code:
function StandardBatSwordStandAttack_Strong1(  OneShotTime, Power, Accuracy, AdditionalPower )

	STATE:SetMoveBoxMultiplier( 0.0 );	
	STATE:SetHitStop( 450, 650 );
	STATE:SetStealthCancel( true );	
	STATE:InitLua( 1000, 40, 0, false );
	
	local range = WEAPON:GetRange();
	
	Attack = CreateCAttack();
    Attack:InitAttack1( WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_CRITICAL, 400, Power+AdditionalPower, AddtionalPower );
    Attack:InitAttack2( MAKERAY( MAKEVECTOR3(0.0, 250.0, 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_CRITICAL, 400, Power+AdditionalPower, AddtionalPower );
    Attack:InitAttack2( MAKEBOX( MAKEVECTOR3(0.0, 250.0, 0.0), MAKEVECTOR3( 0.0, 0.0, -1.0 ), range*0.9, range*0.9, range ), 1, 1, false  );    
    Attack:AddBlowCondition( 3000, 2000 );
    Attack:SetCameraShakeEnable( true, true, 0 );
    Attack:SetCameraShakeSetFactor1( 100, 50, 20 );
    Attack:SetCameraShakeSetFactor2( 0, 20, 2000, 3000 );
    Attack:SetCameraShakeWhenSuccess( true );    
    AddAttack( ATTACKS, Attack );

end
Now can you see difference? WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_CRITICAL
Code:
Attack = CreateCAttack();
    Attack:InitAttack1( WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_CRITICAL, 400, Power+AdditionalPower, AddtionalPower );
    Attack:InitAttack2( MAKEBOX( MAKEVECTOR3(0.0, 250.0, 0.0), MAKEVECTOR3( 0.0, 0.0, -1.0 ), range*0.9, range*0.9, range ), 1, 1, false  );    
    Attack:AddBlowCondition( 3000, 2000 );
    Attack:SetCameraShakeEnable( true, true, 0 );
    Attack:SetCameraShakeSetFactor1( 100, 50, 20 );
    Attack:SetCameraShakeSetFactor2( 0, 20, 2000, 3000 );
    Attack:SetCameraShakeWhenSuccess( true );    
    AddAttack( ATTACKS, Attack );
01/31/2018 15:00 012oab#11
no i dont see any difference , you did not change anything.

Quote:
Originally Posted by 0N1K4G3 View Post
Code:
function StandardBatSwordStandAttack_Strong1(  OneShotTime, Power, Accuracy, AdditionalPower )

	STATE:SetMoveBoxMultiplier( 0.0 );	
	STATE:SetHitStop( 450, 650 );
	STATE:SetStealthCancel( true );	
	STATE:InitLua( 1000, 40, 0, false );
	
	local range = WEAPON:GetRange();
	
	Attack = CreateCAttack();
    Attack:InitAttack1( WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_CRITICAL, 400, Power+AdditionalPower, AddtionalPower );
    Attack:InitAttack2( MAKERAY( MAKEVECTOR3(0.0, 250.0, 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_CRITICAL, 400, Power+AdditionalPower, AddtionalPower );
    Attack:InitAttack2( MAKEBOX( MAKEVECTOR3(0.0, 250.0, 0.0), MAKEVECTOR3( 0.0, 0.0, -1.0 ), range*0.9, range*0.9, range ), 1, 1, false  );    
    Attack:AddBlowCondition( 3000, 2000 );
    Attack:SetCameraShakeEnable( true, true, 0 );
    Attack:SetCameraShakeSetFactor1( 100, 50, 20 );
    Attack:SetCameraShakeSetFactor2( 0, 20, 2000, 3000 );
    Attack:SetCameraShakeWhenSuccess( true );    
    AddAttack( ATTACKS, Attack );

end
Now can you see difference? WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_CRITICAL
Code:
Attack = CreateCAttack();
    Attack:InitAttack1( WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_CRITICAL, 400, Power+AdditionalPower, AddtionalPower );
    Attack:InitAttack2( MAKEBOX( MAKEVECTOR3(0.0, 250.0, 0.0), MAKEVECTOR3( 0.0, 0.0, -1.0 ), range*0.9, range*0.9, range ), 1, 1, false  );    
    Attack:AddBlowCondition( 3000, 2000 );
    Attack:SetCameraShakeEnable( true, true, 0 );
    Attack:SetCameraShakeSetFactor1( 100, 50, 20 );
    Attack:SetCameraShakeSetFactor2( 0, 20, 2000, 3000 );
    Attack:SetCameraShakeWhenSuccess( true );    
    AddAttack( ATTACKS, Attack );


is that 100% critical ? i dont want it to be 100% . and how can i edit the power of strong ?i dont see any value over here with (Power*___) that can be edited .

Attack:InitAttack1( WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_CRITICAL, 400, Power+AdditionalPower, AddtionalPower );
01/31/2018 15:50 0N1K4G3#12
Quote:
Originally Posted by 012oab View Post
no i dont see any difference , you did not change anything.





is that 100% critical ? i dont want it to be 100% . and how can i edit the power of strong ?i dont see any value over here with (Power*___) that can be edited .

Attack:InitAttack1( WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_CRITICAL, 400, Power+AdditionalPower, AddtionalPower );
Difference is second Attack:InitAttack1

Code:
function StandardBatSwordStandAttack_Strong1(  OneShotTime, Power, Accuracy, AdditionalPower )

	STATE:SetMoveBoxMultiplier( 0.0 );	
	STATE:SetHitStop( 450, 650 );
	STATE:SetStealthCancel( true );	
	STATE:InitLua( 1000, 40, 0, false );
	
	local range = WEAPON:GetRange();
	
	Attack = CreateCAttack();
    Attack:InitAttack1( WEAPONTYPE_BAT_SWORD, ATTACKATTRIB_BAT_SWORD_CRITICAL, 400, Power+AdditionalPower, AddtionalPower );
    Attack:InitAttack2( MAKERAY( MAKEVECTOR3(0.0, 250.0, 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_CRITICAL, 400, Power+AdditionalPower, AddtionalPower );
    Attack:InitAttack2( MAKEBOX( MAKEVECTOR3(0.0, 250.0, 0.0), MAKEVECTOR3( 0.0, 0.0, -1.0 ), range*0.9, range*0.9, range ), 1, 1, false  );    
    Attack:AddBlowCondition( 3000, 2000 );
    Attack:SetCameraShakeEnable( true, true, 0 );
    Attack:SetCameraShakeSetFactor1( 100, 50, 20 );
    Attack:SetCameraShakeSetFactor2( 0, 20, 2000, 3000 );
    Attack:SetCameraShakeWhenSuccess( true );    
    AddAttack( ATTACKS, Attack );

end
01/31/2018 15:58 012oab#13
ok saw that .how can i edit the power if i dont see any value over here with (Power*___) that can be edited .
01/31/2018 16:20 0N1K4G3#14
Quote:
Originally Posted by 012oab View Post
ok saw that .how can i edit the power if i dont see any value over here with (Power*___) that can be edited .
you can try (Power*1.5) instead of +AdditionalPower