mirror of
https://github.com/demostf/povunlock.git
synced 2026-06-03 22:14:11 +02:00
cleanup
This commit is contained in:
parent
11ec40b935
commit
a4d01309c4
1 changed files with 0 additions and 8 deletions
|
|
@ -44,7 +44,6 @@ pub fn unlock(input: &[u8]) -> Vec<u8> {
|
||||||
|
|
||||||
let demo = Demo::new(&input);
|
let demo = Demo::new(&input);
|
||||||
let spectator_id = find_stv(&demo).expect("no stv bot found");
|
let spectator_id = find_stv(&demo).expect("no stv bot found");
|
||||||
dbg!(spectator_id);
|
|
||||||
|
|
||||||
let mut stream = demo.get_stream();
|
let mut stream = demo.get_stream();
|
||||||
let header = Header::read(&mut stream).unwrap();
|
let header = Header::read(&mut stream).unwrap();
|
||||||
|
|
@ -85,7 +84,6 @@ pub fn unlock(input: &[u8]) -> Vec<u8> {
|
||||||
|
|
||||||
|
|
||||||
while let Some(mut packet) = packets.next(&handler.state_handler).unwrap() {
|
while let Some(mut packet) = packets.next(&handler.state_handler).unwrap() {
|
||||||
let tick = packet.tick();
|
|
||||||
mutators.mutate_packet(&mut packet);
|
mutators.mutate_packet(&mut packet);
|
||||||
|
|
||||||
if packet.packet_type() != PacketType::ConsoleCmd && packet.packet_type() != PacketType::UserCmd {
|
if packet.packet_type() != PacketType::ConsoleCmd && packet.packet_type() != PacketType::UserCmd {
|
||||||
|
|
@ -94,11 +92,6 @@ pub fn unlock(input: &[u8]) -> Vec<u8> {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
handler.handle_packet(packet).unwrap();
|
handler.handle_packet(packet).unwrap();
|
||||||
|
|
||||||
// if tick > 10_000 {
|
|
||||||
// break;
|
|
||||||
// todo!()
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
out_buffer
|
out_buffer
|
||||||
|
|
@ -127,7 +120,6 @@ impl MessageMutator for AddStvEntity {
|
||||||
panic!("already an stv entity?");
|
panic!("already an stv entity?");
|
||||||
}
|
}
|
||||||
let server_class = player_entity.server_class;
|
let server_class = player_entity.server_class;
|
||||||
dbg!(server_class);
|
|
||||||
|
|
||||||
ent_message.entities.push(PacketEntity {
|
ent_message.entities.push(PacketEntity {
|
||||||
server_class,
|
server_class,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue