Page 1 of 1

Turn around is annoying

Posted: Fri Nov 15, 2013 4:35 pm
by arokhfan
To turn around hit forward and backward at the same time. 2 questions :

1. Pretty often when I tried to run, I found myself turned around. It is annoying when I tried to run away from the skels for example. It happened like 1-2 in 10 times.

2. Is "turn-around" even necessary or useful in the game? I have played several times without intentionally turning around.

Prospero probably know the code for "turn around" and how to eliminate it from the game. Please, thanks

Re: Turn around is annoying

Posted: Fri Nov 15, 2013 5:18 pm
by prospero
You mean the quick 180 turn? Simplest way is the re-configure the keys from the menu so to something that you won't hit by accident. Although it's never been a great problem for me.

Re: Turn around is annoying

Posted: Fri Nov 15, 2013 6:59 pm
by arokhfan
prospero wrote:You mean the quick 180 turn? Simplest way is the re-configure the keys from the menu so to something that you won't hit by accident. Although it's never been a great problem for me.
Can you give me an example ?

Re: Turn around is annoying

Posted: Sat Nov 16, 2013 6:53 am
by Sryml
Maybe we not prevent function call of the turn around, but we can stop turn around action. Two methods:

1. Open "KgtBAct.py" file, remove four codes.

Code: Select all

Bladex.AddBipedAction("Knight","jog_turn","Kgt_jog_turn",0.0,1.0,0)	
Bladex.AddBipedAction("Knight","wlk_turn","Kgt_wlk_turn",0.0,1.0,0)	
Bladex.AddBipedAction("Knight","snk_turn","Kgt_snk_turn",0.0,1.0,0)	
Bladex.AddBipedAction("Knight","rlx_turn","Kgt_rlx_turn",0.0,1.0,0)	
Of course, this is just an example of knights. :)
--------------------------------------------------------------------------------------------------------------


2. Add action event. Open "LinkTables.py" file, Modify the four codes.

Code: Select all

	Bladex.SetActionEventTable(biped_name,"jog_turn","TURNING")
	Bladex.SetActionEventTable(biped_name,"wlk_turn","TURNING")
	Bladex.SetActionEventTable(biped_name,"snk_turn","TURNING")
	Bladex.SetActionEventTable(biped_name,"rlx_turn","TURNING")
to

Code: Select all

	Bladex.SetActionEventTable(biped_name,"jog_turn","TURNEND")
	Bladex.SetActionEventTable(biped_name,"wlk_turn","TURNEND")
	Bladex.SetActionEventTable(biped_name,"snk_turn","TURNEND")
	Bladex.SetActionEventTable(biped_name,"rlx_turn","TURNEND")
Then open "ActionTables.py". In the "Init" function to add code.

Code: Select all

    Bladex.SetEventTableFunc("TURNEND","ActionStart",Actions.TurnEnd)
Finally open "Actions.py". Add a function.

Code: Select all

def TurnEnd(EntityName,EventName):
	me= Bladex.GetEntity(EntityName)
	me.Wuea= Reference.WUEA_ENDED
	me.LaunchAnmType("rlx")
Maybe this can help you. :wink:

Re: Turn around is annoying

Posted: Tue Nov 19, 2013 12:35 am
by arokhfan
1. Open "KgtBAct.py" file, remove four codes.

Code: Select all
Bladex.AddBipedAction("Knight","jog_turn","Kgt_jog_turn",0.0,1.0,0)
Bladex.AddBipedAction("Knight","wlk_turn","Kgt_wlk_turn",0.0,1.0,0)
Bladex.AddBipedAction("Knight","snk_turn","Kgt_snk_turn",0.0,1.0,0)
Bladex.AddBipedAction("Knight","rlx_turn","Kgt_rlx_turn",0.0,1.0,0)
Can I just change the 1 to zero (0) ?

Re: Turn around is annoying

Posted: Tue Nov 19, 2013 6:37 am
by Sryml
arokhfan wrote: Can I just change the 1 to zero (0) ?
Well! You can try.

Re: Turn around is annoying

Posted: Thu Nov 21, 2013 5:42 pm
by arokhfan
I tried to take out 4 lines for Zoe and it works. No more turn around. Thanks.