1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-02-01 06:57:25 +00:00

attempt to fix missed tech random rolls

This commit is contained in:
jugeeya 2019-11-22 08:32:44 -08:00 committed by GitHub
parent 7412325b20
commit 7b15ee7e9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -175,6 +175,11 @@ u64 change_motion_replace(u64 module_accessor, u64 motion_kind, float unk1, floa
if (rand_int) motion_kind = hash40("passive_stand_f");
else motion_kind = hash40("passive_stand_b");
}
if (motion_kind == hash40("down_stand_f") || motion_kind == hash40("down_stand_b")) {
int rand_int = app::sv_math::rand(hash40("fighter"), 2);
if (rand_int) motion_kind = hash40("down_stand_f");
else motion_kind = hash40("down_stand_b");
}
}
u64 motion_module = load_module(module_accessor, 0x88);