kills module

This commit is contained in:
Robin Appelman 2026-11-12 18:10:44 +01:00
commit c8664f9e47
Signed by: robin
SSH key fingerprint: SHA256:kifqgrqnut7q1YUIrI0AdMNC23qiKAS/T9uGFmIYvbE
13 changed files with 233 additions and 36 deletions

View file

@ -29,7 +29,6 @@ pub struct DamageEvent<'a> {
pub struct KillEvent<'a> {
#[event(unnamed)]
#[event(subject)]
#[event(skip_after = 1)]
pub target: RawSubject<'a>,
#[event(name = "with")]
pub weapon: &'a str,
@ -41,7 +40,7 @@ pub struct KillEvent<'a> {
pub struct KillAssistEvent<'a> {
#[event(name = "against")]
pub target: RawSubject<'a>,
pub attacker_position: Option<(i32, i32, i32)>,
pub assister_position: Option<(i32, i32, i32)>,
pub victim_position: Option<(i32, i32, i32)>,
}