Browse Source

fix tech packet lengths. now everyone can get s/d yay

pull/1/head
andy 4 years ago
parent
commit
cb219d807d
  1. 10
      src/packet/messages.rs

10
src/packet/messages.rs

@ -333,7 +333,10 @@ pub struct ComboStep3 {
#[pso_message(0x46)]
pub struct TargetsHit {
targets: u32, // thats a lot of targets!
num_of_targets: [u8; 4], // thats a lot of targets?
client2: u8,
target2: u8,
unknown2: [u8; 2],
}
#[pso_message(0x47)]
@ -341,14 +344,17 @@ pub struct PlayerTechCast { // this packet and packet 0x8D (PlayerTechStart) are
technique: u8,
unknown1: u8,
tech_level: u8,
#[length_of(targets)]
num_of_targets: u8,
#[length_is(num_of_targets)]
targets: Vec<u32>,
}
#[pso_message(0x48)]
pub struct PlayerTechDone { // this packet gets sent once the tech is actually casted (ie: barta actually shoots out from your feet)
technique: u8,
unknown1: u8,
tech_level: u8, // tech level in packets is 0-based
tech_level: u8, // level - 1
unknown2: u8,
}

Loading…
Cancel
Save