mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-20 08:54:15 +00:00
use alternative DI method: based on player relative position
This commit is contained in:
parent
ca4f0b3122
commit
6dd2f395fd
1 changed files with 1 additions and 2 deletions
|
@ -37,8 +37,7 @@ unsafe fn mod_handle_di(fighter: &mut L2CFighterCommon, _arg1: L2CValue) {
|
|||
}
|
||||
|
||||
let player_module_accessor = get_module_accessor(FighterId::Player);
|
||||
|
||||
if PostureModule::lr(player_module_accessor) == -1.0 {
|
||||
if PostureModule::pos_x(player_module_accessor) > PostureModule::pos_x(module_accessor) {
|
||||
angle = PI - angle;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue