Add OP_Fling stuff so devs can play with

This commit is contained in:
Michael Cook (mackal)
2016-03-25 20:26:21 -04:00
parent 03ae89b628
commit 5585ddb80b
6 changed files with 19 additions and 0 deletions
+1
View File
@@ -164,6 +164,7 @@ N(OP_FinishTrade),
N(OP_FinishWindow),
N(OP_FinishWindow2),
N(OP_Fishing),
N(OP_Fling),
N(OP_FloatListThing),
N(OP_Forage),
N(OP_ForceFindPerson),
+14
View File
@@ -5359,6 +5359,20 @@ struct TextLinkBody_Struct {
int hash; /* %08X */
};
struct fling_struct {
/* 00 */ uint32 unk1;
/* 04 */ int32 travel_time; // ms -- UF we need to calc this, RoF+ -1 auto calcs
/* 08 */ char unk3; // bool, set to 1 has something to do with z-axis or something
/* 09 */ char disable_fall_damage; // 1 you take no fall damage, 0 you take fall damage
/* 10 */ uint8 padding[2];
/* 12 */ float speed_z;
/* 16 */ float new_y;
/* 20 */ float new_x;
/* 24 */ float new_z;
/* 28 */
};
// Restore structure packing to default
#pragma pack()