-
Автор темы
- #1
onetap resolver reversed
credits: me, movebx, sharklaser1
C++:
if (!(lag_record.m_layers.at(ANIMATION_LAYER_LEAN).m_weight * 1000.f)) {
if (record->m_processed_velocity >= 3 || (lag_record.m_layers.at(ANIMATION_LAYER_MOVEMENT_MOVE).m_weight * 1000.f) == (previous_record.m_layers.at(ANIMATION_LAYER_MOVEMENT_MOVE).m_weight * 1000.f)) {
// setup 4len_vo_rty_lol ( 4delta ) in animation fix before run_player_update..
// pseudo:
// LODWORD(4len_vo_rty_lol) = COERCE_UNSIGNED_INT(*record + 0x194) - *(record + 0x484));
const float delta_left = abs(lag_record.m_layers.at(ANIMATION_LAYER_MOVEMENT_MOVE).m_playback_rate
- lag_record.m_resolver_layers.at(S_LEFT).at(ANIMATION_LAYER_MOVEMENT_MOVE).m_playback_rate);
const float delta_right = abs(lag_record.m_layers.at(ANIMATION_LAYER_MOVEMENT_MOVE).m_playback_rate
- lag_record.m_resolver_layers.at(S_RIGHT).at(ANIMATION_LAYER_MOVEMENT_MOVE).m_playback_rate);
const float delta_center = abs(lag_record.m_layers.at(ANIMATION_LAYER_MOVEMENT_MOVE).m_playback_rate
- lag_record.m_resolver_layers.at(S_CENTER).at(ANIMATION_LAYER_MOVEMENT_MOVE).m_playback_rate);
const float delta_quad = abs(lag_record.m_layers.at(ANIMATION_LAYER_MOVEMENT_MOVE).m_playback_rate
- lag_record.m_resolver_layers.at(S_QUAD).at(ANIMATION_LAYER_MOVEMENT_MOVE).m_playback_rate);
if (!(delta_quad * 1000.f)) {
m_finally_active = 1;
}
m_side = 0;
float last_delta = abs(lag_record.m_layers.at(ANIMATION_LAYER_MOVEMENT_MOVE).m_playback_rate
- lag_record.m_resolver_layers.at(S_QUAD).at(ANIMATION_LAYER_MOVEMENT_MOVE).m_playback_rate);
if ((delta_center * 1000.f) || delta_quad < delta_center) {
m_can_animate = m_finally_active;
}
else {
m_can_animate = 1;
m_side = 3;
last_delta = delta_center;
}
if (!(delta_left * 1000.f) && last_delta >= delta_left) {
m_can_animate = 1;
m_side = 1;
last_delta = delta_left;
}
if (!(delta_right * 1000.f) && last_delta >= delta_right) {
m_can_animate = 1;
m_side = 2;
return;
}
}
else {
m_can_animate = 0;
}
lag_record.m_moving_resolver_active = m_can_animate;
lag_record.m_side = m_side;
}
credits: me, movebx, sharklaser1
Последнее редактирование: