- [FIX] Els enemics podien ser botats per damunt sense morir
- [FIX] Els precipicis podien ser evitats mantenint el bot pulsat.
This commit is contained in:
@@ -911,10 +911,18 @@ namespace actor
|
||||
actor::actor_t *future_below = any_below_me(act);
|
||||
// if ((input::keyDown(SDL_SCANCODE_SPACE) || input::keyDown(config::getKey(KEY_JUMP))) &&
|
||||
if ((controller::down(KEY_JUMP)) && ((hero::getSkills() & SKILL_SHOES) || actor::hero::isPrologo())
|
||||
&& (act->pos.y + act->size.y) <= max.y && act->pos.y >= min.y && (act->pos.x + act->size.x) <= max.x && act->pos.x >= min.x && act->react_mask == 0 && ((act->pos.z == 0 && room::getFloor() != 11) || (act->below || future_below)))
|
||||
&& (act->pos.y + act->size.y) <= max.y && act->pos.y >= min.y &&
|
||||
(act->pos.x + act->size.x) <= max.x && act->pos.x >= min.x &&
|
||||
act->react_mask == 0 &&
|
||||
( (act->pos.z == 0 && room::getFloor() != 11 && room::getExit(ZN)==-1) || (act->below || future_below) )
|
||||
)
|
||||
{
|
||||
audio::pauseChannel(walk_channel);
|
||||
audio::playSound("snd_jump.wav", SOUND_BASIC);
|
||||
// [RZC 11/10/2024] Hack per a que al aterrar sobre els que maten, te maten
|
||||
if (!act->below && future_below && future_below->flags & FLAG_DEADLY)
|
||||
act->push |= PUSH_KILL;
|
||||
|
||||
// [RZC 01/10/2024] Hack per a que al aterrar sobre els que desapareixen puga botar sobre ells, i a més ells desapareguen
|
||||
if (!act->below && future_below && future_below->flags & FLAG_DISAPPEAR)
|
||||
actor::push(act, future_below, PUSH_ZN);
|
||||
|
||||
Reference in New Issue
Block a user