View Single Post
Old 08-26-11, 01:45 PM   #16
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
Default WIP Impact Angle

I have managed to find a dial in SH3 that does not appear to be used in the TDC operation to my knowledge (Please let me know if this is not the case).

I'm using this dial

Code:
[Dial44]
Name=Impact_Angle
Type=42; DIAL_TGT_ANG_ON_BOW
Cmd=Set_tgt_sel_value
Dial=0x3BBF0002 
CrtVal=0x3BBF0001
NewVal=0x0
DialVal=0,360
RealVal=0,360; degrees
Circular=Yes
I have not noticed any ill effect on using this dial type - but I've not done any real in-dept testing as of yet.

Ok so what have I done:
Basically I have external code that is hijacking that particular dial that is setting it to the position that I've coded.
At the moment It is basically taking the Gyroangle from the game and subtracting 180 from it (In essence mirroring the gyroangle).
I need to work out what the actual code for the Impact Angle needs to be and replace my current code with that maths.

Here you can see it in action:





What calculation will be needed to do this. Is it just the AOB plus the gyro subtracted from 360?


Last edited by reaper7; 08-26-11 at 02:38 PM.
reaper7 is offline   Reply With Quote