Exemple #1
0
    def _unpack(self):
        self.victim_id = Packet.unpack_uint8(self.buffer)
        self.killer_id = Packet.unpack_uint8(self.buffer)
        self.reason = Packet.unpack_uint16(self.buffer)
        self.shot_id = Packet.unpack_uint16(self.buffer)
        self.flag = Packet.unpack_flag(self.buffer)

        if self.reason == code_from_chars('pd'):
            self.physics_driver_id = Packet.unpack_uint32(self.buffer)
Exemple #2
0
 def _unpack(self):
     self.player_id = Packet.unpack_uint8(self.buffer)
     self.flag = Packet.unpack_flag(self.buffer)
Exemple #3
0
 def _unpack(self):
     self.from_ = Packet.unpack_uint8(self.buffer)
     self.to = Packet.unpack_uint8(self.buffer)
     self.flag = Packet.unpack_flag(self.buffer)