Update fling struct and add Fling to lua opcode enum

This commit is contained in:
Michael Cook (mackal) 2016-03-29 15:11:59 -04:00
parent 5cbf4aca4f
commit ba5b3c2796
2 changed files with 5 additions and 4 deletions

View File

@ -5361,10 +5361,10 @@ struct TextLinkBody_Struct {
struct fling_struct {
/* 00 */ uint32 unk1;
/* 00 */ uint32 collision; // 0 collision is off, anything else it's on
/* 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
/* 08 */ uint8 unk3; // bool, set to 1 has something to do with z-axis or something weird things happen if the new Z is above or equal to yours
/* 09 */ uint8 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;

View File

@ -847,7 +847,8 @@ luabind::scope lua_register_packet_opcodes() {
luabind::value("OpenContainer", static_cast<int>(OP_OpenContainer)),
luabind::value("Marquee", static_cast<int>(OP_Marquee)),
luabind::value("ClientTimeStamp", static_cast<int>(OP_ClientTimeStamp)),
luabind::value("GuildPromote", static_cast<int>(OP_GuildPromote))
luabind::value("GuildPromote", static_cast<int>(OP_GuildPromote)),
luabind::value("Fling", static_cast<int>(OP_Fling))
];
}