Fix for door clicking, add a few more opcodes.

This commit is contained in:
KimLS
2024-11-30 15:17:46 -08:00
parent b95cd989c4
commit 2d8b777120
8 changed files with 34 additions and 33 deletions
+11
View File
@@ -2748,6 +2748,17 @@ namespace Laurion
DECODE(OP_ConsiderCorpse) { DECODE_FORWARD(OP_Consider); }
DECODE(OP_ClickDoor)
{
DECODE_LENGTH_EXACT(structs::ClickDoor_Struct);
SETUP_DIRECT_DECODE(ClickDoor_Struct, structs::ClickDoor_Struct);
IN(doorid);
IN(player_id);
FINISH_DIRECT_DECODE();
}
//Naive version but should work well enough for now
int ExtractIDFile(const std::string& input) {
std::string number;
+1
View File
@@ -37,6 +37,7 @@ D(OP_ChannelMessage)
D(OP_SetServerFilter)
D(OP_Consider)
D(OP_ConsiderCorpse)
D(OP_ClickDoor)
#undef E
#undef D
+10
View File
@@ -468,6 +468,16 @@ namespace Laurion {
/*18*/
};
struct ClickDoor_Struct {
/*00*/ uint16 player_id;
/*02*/ uint8 padding1[2];
/*04*/ int32 unknown1;
/*08*/ int32 unknown2;
/*12*/ uint8 doorid;
/*13*/ uint8 padding2[3];
};
#pragma pack()
}; //end namespace structs