1
0
Fork 0
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:
jugeeya 2020-08-13 13:34:22 -07:00
parent ca4f0b3122
commit 6dd2f395fd

View file

@ -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;
}