Home » MODDING HQ 1.13 » v1.13 General Development Talk » Hand to hand fighting (bug report) (Wrong mouse cursor during hand to hand fighting)
icon8.gif  Hand to hand fighting (bug report)[message #358286] Sat, 19 October 2019 04:59 Go to previous message
MH17 is currently offline MH17

 
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
 
Read Message icon8.gif
Read Message
Read Message icon14.gif
Read Message icon8.gif
Previous Topic: How to change loading screens?
Next Topic: Using older sti-graphics
Goto Forum:
  


Current Time: Wed Feb 12 23:01:01 GMT+2 2025

Total time taken to generate the page: 0.00762 seconds