Hand to hand fighting (bug report)[message #358286]
|
Sat, 19 October 2019 04:59
|
|
MH17 |
![](/images/ranks/corporal.png) |
Messages:46
Registered:November 2018 Location: Antarctica |
|
|
I'd like to report one more bug.
Software setup: Win 7.0 + Ja2 1.13 (8696 exec) + Urban Chaos v4.6x 20190510
Bug description: I observe a problem with a mouse cursor during hand to hand combat with a hostile civilian in metro sector D6 of Port Kip city (San Mona in Vanilla game). When I move my mouse trying to punch the civilian's face or body the mouse cursor doesnt turn into a red fist. But it changes into the red fist when I move the cursor to the legs of the enemy.
Suggested bug location: It seems to me there is something wrong with the code lines 2903-2912 inside function "GetActionModeCursor" in file "UI cursors.cpp":
if ( ubCursor == INVALIDCURS || usInHand == NONE )
{
INT32 usMapPos = NOWHERE;
GetMouseMapPos( &usMapPos );
UINT16 structindex;
UINT16 possibleaction = InteractiveActionPossibleAtGridNo( usMapPos, pSoldier->pathing.bLevel, structindex );
if ( possibleaction > INTERACTIVE_STRUCTURE_NO_ACTION )
ubCursor = INTERACTIVEACTIONCURS;
}
Before my game reaches its first line everything is fine and the value of the ubCursor is equal 2 (corresponds to PUNCHCURS). If I'm trying to punch the body of the enemy the call of the function "InteractiveActionPossibleAtGridNo" returns 3 and the if-condition underneath resets the correct value of the variable ubCursor into INTERACTIVEACTIONCURS. If I aim the punch into legs of the enemy the function "InteractiveActionPossibleAtGridNo" returns 0, and the variable ubCursor remains to stay intact keeping a correct value.
As I understand the function "InteractiveActionPossibleAtGridNo" is responsible for mouse interaction with surrounding environment. May be we should turn it off during combat?
[Updated on: Sat, 19 October 2019 05:00] Report message to a moderator
|
Corporal
|
|
|
|
|
|