OpenXcom Forum

OpenXcom => Troubleshooting => Topic started by: yrizoud on December 17, 2013, 01:46:05 am

Title: healing and melee don't like stairs
Post by: yrizoud on December 17, 2013, 01:46:05 am
(https://oi42.tinypic.com/2lwre6t.jpg)
Soldiers A and B can't heal each other using medi-kit, they get the message "There's nobody here".
Function ActionMenuState::btnActionMenuItemClick() checks that units are on the same "map level", it ignores the units heights and whether they stand on a "stair" block. This is probably going to be annoying on long slopes like mountains (TFTD had quite a few)
 
More strangely, A can't strike B with a stun rod with the same message, and if B tries to strike A he loses TUs but nothing happens.
In this case the first check is TileEngine::validMeleeRange(), and the actual hit, I don't know where it is.
Title: Re: healing and melee don't like stairs
Post by: Solarius Scorch on February 03, 2014, 10:26:21 am
+1

Isn't much of a problem with healing, but melee suffers.
Title: Re: healing and melee don't like stairs
Post by: yrizoud on February 03, 2014, 10:49:57 am
I think it got fixed, or at least made consistent between melee and healing (so if a problem is still present, it affects both melee and healing)
https://github.com/SupSuper/OpenXcom/commit/4c7c0d87abf0b43be1f9c296e9ddeb685e544af3
Title: Re: healing and melee don't like stairs
Post by: Warboy1982 on February 03, 2014, 12:43:54 pm
BUT I FIXED THIS!