Page 2 of 2

Re: Raw directional input access from ZScript

Posted: Sat Jan 05, 2019 1:50 am
by Graf Zahl
... and done.

Re: Raw directional input access from ZScript

Posted: Sat Jan 05, 2019 6:54 am
by Gutawer
Oh, awesome! This already helps a ton. I think the only thing left that's needed to solve my initial suggestion would just be the reliable way to detect if the player is sprinting.

EDIT:

Oh, and also, as a side note, doesn't TweakSpeeds need to be changed to adhere to these constants properly? Right now it has them hardcoded still, for example:

Code: Select all

		if (health <= RunHealth)
		{
			forward = clamp(forward, -0x1900, 0x1900);
			side = clamp(side, -0x1800, 0x1800);
		}

Re: Raw directional input access from ZScript

Posted: Sat Jan 05, 2019 8:00 am
by Graf Zahl
That old code really has its bad spots... :?
Yes, surely these need to be handled as well.