19,287
edits
No edit summary |
m (changed family; terminology) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
:''This is about the turret class resource. For turret instances, see [[OBD:BINA/OBJC/TURR]] | :''This is about the turret class resource. For turret instances, see [[OBD:BINA/OBJC/TURR]]. | ||
{{OBD_File_Header | type=TURR | prev=TStr | next=TXAN | name=Turret | family= | {{OBD_File_Header | type=TURR | prev=TStr | next=TXAN | name=Turret | family=Level | align=center}} | ||
Line 6: | Line 6: | ||
[[ | [[Image:turr_a.gif]] | ||
Line 12: | Line 12: | ||
{{OBD_Table_Header}} | {{OBD_Table_Header}} | ||
|- ALIGN=CENTER VALIGN=TOP | |- ALIGN=CENTER VALIGN=TOP | ||
{{OBDtr| 0x000 | res_id |FF0000| 01 BF 01 00 | 447 | | {{OBDtr| 0x000 | res_id |FF0000| 01 BF 01 00 | 447 | ID for TURRsap_turret_floor }} | ||
{{OBDtr| 0x004 | lev_id |FFFF00| 01 00 00 00 | 0 | level 0 }} | {{OBDtr| 0x004 | lev_id |FFFF00| 01 00 00 00 | 0 | level 0 }} | ||
{{OBDtr2|0x008 | char[64] |FFC8C8| sap_turret_floor | name of this file }} | {{OBDtr2|0x008 | char[64] |FFC8C8| sap_turret_floor | name of this file }} | ||
Line 21: | Line 21: | ||
{{OBDtr| 0x058 | int16 |C8FFFF| 01 00 | 1 | unknown; always the same; amount of firing modes? }} | {{OBDtr| 0x058 | int16 |C8FFFF| 01 00 | 1 | unknown; always the same; amount of firing modes? }} | ||
{{OBDtr| 0x05A | char[6] |FFC8FF| AD DE | dead | unused }} | {{OBDtr| 0x05A | char[6] |FFC8FF| AD DE | dead | unused }} | ||
{{OBDtr| 0x060 | link |FFC800| 01 C0 01 00 | 448 | link to | {{OBDtr| 0x060 | link |FFC800| 01 C0 01 00 | 448 | link to [[M3GM]]00448 - turret body }} | ||
{{OBDtr| 0x064 | link |FFC800| 00 00 00 00 | 0 | obsolete [[OBLS]] link }} | {{OBDtr| 0x064 | link |FFC800| 00 00 00 00 | 0 | obsolete [[OBLS]] link }} | ||
{{OBDtr| 0x068 | link |FFC800| 00 00 00 00 | 0 | unknown; always zero; body-something? }} | {{OBDtr| 0x068 | link |FFC800| 00 00 00 00 | 0 | unknown; always zero; body-something? }} | ||
{{OBDtr| 0x06C | link |FFC800| 01 C3 01 00 | 451 | link to | {{OBDtr| 0x06C | link |FFC800| 01 C3 01 00 | 451 | link to [[M3GM]]00451 - turret head }} | ||
{{OBDtr| 0x070 | link |FFC800| 00 00 00 00 | 0 | unknown; always zero; head-something? }} | {{OBDtr| 0x070 | link |FFC800| 00 00 00 00 | 0 | unknown; always zero; head-something? }} | ||
{{OBDtr| 0x074 | link |FFC800| 01 C4 01 00 | 452 | link to | {{OBDtr| 0x074 | link |FFC800| 01 C4 01 00 | 452 | link to [[M3GM]]00452 - turret gun }} | ||
{{OBDtr| 0x078 | link |FFC800| 00 00 00 00 | 0 | unknown; always zero; gun-something? }} | {{OBDtr| 0x078 | link |FFC800| 00 00 00 00 | 0 | unknown; always zero; gun-something? }} | ||
{{OBDtr| 0x07C | float |C800C8| 0D F8 C1 34 | 0.000000... | X translation for turret head (body-relative) }} | {{OBDtr| 0x07C | float |C800C8| 0D F8 C1 34 | 0.000000... | X translation for turret head (body-relative) }} | ||
Line 42: | Line 42: | ||
{{OBD_Table_Header}} | {{OBD_Table_Header}} | ||
{{OBDtrBK}} | {{OBDtrBK}} | ||
{{OBDtr2|0x000 | char[16] |C87C64| w2_sap_e01 | 3D particle name (reference to [[OBD:BINA|BINA]] | {{OBDtr2|0x000 | char[16] |C87C64| w2_sap_e01 | 3D particle name (reference to [[OBD:BINA/PAR3|BINA/PAR3]]w2_sap_e01) }} | ||
{{OBDtr| 0x010 | int32 |B0C3D4| 00 00 00 00 | 0 | runtime only: pointer to particle class }} | {{OBDtr| 0x010 | int32 |B0C3D4| 00 00 00 00 | 0 | runtime only: pointer to particle class }} | ||
{{OBDtr| 0x014 | int32 |B0C3D4| 05 00 00 00 | 5 | delay between shots in frames; here, 5/60 <nowiki>=</nowiki> 0.0833 s }} | {{OBDtr| 0x014 | int32 |B0C3D4| 05 00 00 00 | 5 | delay between shots in frames; here, 5/60 <nowiki>=</nowiki> 0.0833 s }} | ||
Line 61: | Line 61: | ||
[[ | [[Image:turr_e.gif]] | ||
Line 70: | Line 70: | ||
|- ALIGN=CENTER VALIGN=TOP | |- ALIGN=CENTER VALIGN=TOP | ||
{{OBDtr| 0x554 | int32 |64AAAA| 00 00 00 00 | 0 | firing mode options; the following bits are possible (values in hex): 0x01 00 00 00 - No wild shots }} | {{OBDtr| 0x554 | int32 |64AAAA| 00 00 00 00 | 0 | firing mode options; the following bits are possible (values in hex): 0x01 00 00 00 - No wild shots }} | ||
{{OBDtrMatrix4x3|0x0DC|EBEBEB|81 FD 7F 3F|8E A7 47 39|1A F8 0E 3C|8E A7 47 39|A0 C1 7F 3F|6F A9 32 BD|1A F8 0E BC|6F A9 32 3D|21 BF 7F 3F|00 00 00 00|00 00 00 00|00 00 00 00|0.999962|0.000190|0.008726|0.000190|0.999048| -0.043619| -0.008726|0.043619|0.999010|0.000000|0.000000|0.000000|targeting inverse transform matrix - the inverse of the matrix that gives the targeting direction}} | |||
{{OBDtrVector3| 0x588 |FF00C8| 62 F8 0E 3C | C9 A9 32 BD | 21 BF 7F 3F | 0.008726 | -0.043619 | 0.999010 | targeting direction }} | |||
|0x0DC| | {{OBDtrVector3| 0x594 |FF00C8| 44 57 B9 BD | 73 27 D9 3D | D1 99 B1 3B | -0.090498 | 0.106032 | 0.005420 | targeting origin }} | ||
{{ | |||
{{ | |||
{{OBDtr| 0x5A0 | float |F0F096| 00 00 96 44 | 1200.000000 | prediction speed }} | {{OBDtr| 0x5A0 | float |F0F096| 00 00 96 44 | 1200.000000 | prediction speed }} | ||
{{OBDtr| 0x5A4 | float |F0F096| 00 00 00 00 | 0.000000 | inaccuracy tolerance; always 0 for TURR }} | {{OBDtr| 0x5A4 | float |F0F096| 00 00 00 00 | 0.000000 | inaccuracy tolerance; always 0 for TURR }} | ||
Line 136: | Line 127: | ||
{{OBDtr| 0x61C | float |0096C8| AE 4B 6E 3C | 0.014544 | maximum vertical speed in radian/frame; here, 50°/s }} | {{OBDtr| 0x61C | float |0096C8| AE 4B 6E 3C | 0.014544 | maximum vertical speed in radian/frame; here, 50°/s }} | ||
{{OBDtr| 0x620 | float |0096C8| AE 4B 6E 3C | 0.014544 | maximum horizontal speed in radian/frame; here, 50°/s}} | {{OBDtr| 0x620 | float |0096C8| AE 4B 6E 3C | 0.014544 | maximum horizontal speed in radian/frame; here, 50°/s}} | ||
{{OBDtr2|0x624 | char[32] |FF80C0| turret_active | active turret sound (reference to | {{OBDtr2|0x624 | char[32] |FF80C0| turret_active | active turret sound (reference to OSBDturret_active.[[OBD:OSBD|amb]]) }} | ||
{{OBDtr| 0x644 | int32 |D0C0AF| 00 00 00 00 | 0 | runtime only }} | {{OBDtr| 0x644 | int32 |D0C0AF| 00 00 00 00 | 0 | runtime only }} | ||
{{OBDtr| 0x648 | char[24] |EEDDFF| AD DE | dead | unused; always the same }} | {{OBDtr| 0x648 | char[24] |EEDDFF| AD DE | dead | unused; always the same }} | ||
|} | |} | ||
;Turret geometry | |||
*The body geometry is used during play, it is only used at design time. Once a turret is added to a level the body is baked into the [[OBD:AKEV|environment]]. The head and gun geometries are used because unlike the body they are not fixed, they need to move during play. | |||
Here you can download the complete overview of all turrets as a text file.<BR> | Here you can download the complete overview of all turrets as a text file.<BR> | ||
Copy it to a spreadsheet calculation program like Excel. | Copy it to a spreadsheet calculation program like Excel. | ||
*[http://ssg.oni2.net/subfold/text/oni_turr_part_1_dc.txt part 1 (header)] with decimal commas (3 kb) | |||
*[http://ssg.oni2.net/subfold/text/oni_turr_part_2_dc.txt part 2 (particle array)] with decimal commas (56 kb) | |||
*[http://ssg.oni2.net/subfold/text/oni_turr_part_3_dc.txt part 3 (end)] with decimal commas (7 kb) | |||
*[http://ssg.oni2.net/subfold/text/oni_turr_part_1_dp.txt part 1 (header)] with decimal points (3 kb) | |||
*[http://ssg.oni2.net/subfold/text/oni_turr_part_2_dp.txt part 2 (particle array)] with decimal points (56 kb) | |||
*[http://ssg.oni2.net/subfold/text/ | *[http://ssg.oni2.net/subfold/text/oni_turr_part_3_dp.txt part 3 (end)] with decimal points (7 kb) | ||
*[http://ssg.oni2.net/subfold/text/oni_turr_part_2_dp.txt part 2 (particle array)] with points | |||
*[http://ssg.oni2.net/subfold/text/oni_turr_part_3_dp.txt part 3 (end)] with points | |||
{{OBD_File_Footer | type=TURR | prev=TStr | next=TXAN | name=Turret | family= | {{OBD_File_Footer | type=TURR | prev=TStr | next=TXAN | name=Turret | family=Level}} | ||
{{OBD}} | {{OBD}} |