Skip to content

Instantly share code, notes, and snippets.

@icewind1991
Created January 31, 2024 23:25
Show Gist options
  • Save icewind1991/4908eaf88173559c3623b74bfef45640 to your computer and use it in GitHub Desktop.
Save icewind1991/4908eaf88173559c3623b74bfef45640 to your computer and use it in GitHub Desktop.
lib.rs
#[derive(schemars::JsonSchema)]
pub struct ServerSpawnEvent {
pub hostname: String,
pub address: String,
pub ip: u32,
pub port: u16,
pub game: String,
pub map_name: String,
pub max_players: u32,
pub os: String,
pub dedicated: bool,
pub password: bool,
}
#[derive(schemars::JsonSchema)]
pub struct ServerChangeLevelFailedEvent {
pub level_name: String,
}
#[derive(schemars::JsonSchema)]
pub struct ServerShutdownEvent {
pub reason: String,
}
#[derive(schemars::JsonSchema)]
pub struct ServerCvarEvent {
pub cvar_name: String,
pub cvar_value: String,
}
#[derive(schemars::JsonSchema)]
pub struct ServerMessageEvent {
pub text: String,
}
#[derive(schemars::JsonSchema)]
pub struct ServerAddBanEvent {
pub name: String,
pub user_id: u16,
pub network_id: String,
pub ip: String,
pub duration: String,
pub by: String,
pub kicked: bool,
}
#[derive(schemars::JsonSchema)]
pub struct ServerRemoveBanEvent {
pub network_id: String,
pub ip: String,
pub by: String,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerConnectEvent {
pub name: String,
pub index: u8,
pub user_id: u16,
pub network_id: String,
pub address: String,
pub bot: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerConnectClientEvent {
pub name: String,
pub index: u8,
pub user_id: u16,
pub network_id: String,
pub bot: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerInfoEvent {
pub name: String,
pub index: u8,
pub user_id: u16,
pub network_id: String,
pub bot: bool,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerDisconnectEvent {
pub user_id: u16,
pub reason: String,
pub name: String,
pub network_id: String,
pub bot: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerActivateEvent {
pub user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerSayEvent {
pub user_id: u16,
pub text: String,
}
#[derive(schemars::JsonSchema)]
pub struct ClientDisconnectEvent {
pub message: String,
}
#[derive(schemars::JsonSchema)]
pub struct ClientBeginConnectEvent {
pub address: String,
pub ip: u32,
pub port: u16,
pub source: String,
}
#[derive(schemars::JsonSchema)]
pub struct ClientConnectedEvent {
pub address: String,
pub ip: u32,
pub port: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ClientFullConnectEvent {
pub address: String,
pub ip: u32,
pub port: u16,
}
#[derive(schemars::JsonSchema)]
pub struct HostQuitEvent {}
#[derive(schemars::JsonSchema)]
pub struct TeamInfoEvent {
pub team_id: u8,
pub team_name: String,
}
#[derive(schemars::JsonSchema)]
pub struct TeamScoreEvent {
pub team_id: u8,
pub score: u16,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayBroadcastAudioEvent {
pub team: u8,
pub sound: String,
pub additional_flags: u16,
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerTeamEvent {
pub user_id: u16,
pub team: u8,
pub old_team: u8,
pub disconnect: bool,
pub auto_team: bool,
pub silent: bool,
pub name: String,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerClassEvent {
pub user_id: u16,
pub class: String,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerDeathEvent {
pub user_id: u16,
pub victim_ent_index: u32,
pub inflictor_ent_index: u32,
pub attacker: u16,
pub weapon: String,
pub weapon_id: u16,
pub damage_bits: u32,
pub custom_kill: u16,
pub assister: u16,
pub weapon_log_class_name: String,
pub stun_flags: u16,
pub death_flags: u16,
pub silent_kill: bool,
pub player_penetrate_count: u16,
pub assister_fallback: String,
pub kill_streak_total: u16,
pub kill_streak_wep: u16,
pub kill_streak_assist: u16,
pub kill_streak_victim: u16,
pub ducks_streaked: u16,
pub duck_streak_total: u16,
pub duck_streak_assist: u16,
pub duck_streak_victim: u16,
pub rocket_jump: bool,
pub weapon_def_index: u32,
pub crit_type: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerHurtEvent {
pub user_id: u16,
pub health: u16,
pub attacker: u16,
pub damage_amount: u16,
pub custom: u16,
pub show_disguised_crit: bool,
pub crit: bool,
pub mini_crit: bool,
pub all_see_crit: bool,
pub weapon_id: u16,
pub bonus_effect: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerChatEvent {
pub team_only: bool,
pub user_id: u16,
pub text: String,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerScoreEvent {
pub user_id: u16,
pub kills: u16,
pub deaths: u16,
pub score: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerSpawnEvent {
pub user_id: u16,
pub team: u16,
pub class: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerShootEvent {
pub user_id: u16,
pub weapon: u8,
pub mode: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerUseEvent {
pub user_id: u16,
pub entity: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerChangeNameEvent {
pub user_id: u16,
pub old_name: String,
pub new_name: String,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerHintMessageEvent {
pub hint_message: String,
}
#[derive(schemars::JsonSchema)]
pub struct BasePlayerTeleportedEvent {
pub ent_index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct GameInitEvent {}
#[derive(schemars::JsonSchema)]
pub struct GameNewMapEvent {
pub map_name: String,
}
#[derive(schemars::JsonSchema)]
pub struct GameStartEvent {
pub rounds_limit: u32,
pub time_limit: u32,
pub frag_limit: u32,
pub objective: String,
}
#[derive(schemars::JsonSchema)]
pub struct GameEndEvent {
pub winner: u8,
}
#[derive(schemars::JsonSchema)]
pub struct RoundStartEvent {
pub time_limit: u32,
pub frag_limit: u32,
pub objective: String,
}
#[derive(schemars::JsonSchema)]
pub struct RoundEndEvent {
pub winner: u8,
pub reason: u8,
pub message: String,
}
#[derive(schemars::JsonSchema)]
pub struct GameMessageEvent {
pub target: u8,
pub text: String,
}
#[derive(schemars::JsonSchema)]
pub struct BreakBreakableEvent {
pub ent_index: u32,
pub user_id: u16,
pub material: u8,
}
#[derive(schemars::JsonSchema)]
pub struct BreakPropEvent {
pub ent_index: u32,
pub user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct EntityKilledEvent {
pub ent_index_killed: u32,
pub ent_index_attacker: u32,
pub ent_index_inflictor: u32,
pub damage_bits: u32,
}
#[derive(schemars::JsonSchema)]
pub struct BonusUpdatedEvent {
pub num_advanced: u16,
pub num_bronze: u16,
pub num_silver: u16,
pub num_gold: u16,
}
#[derive(schemars::JsonSchema)]
pub struct AchievementEventEvent {
pub achievement_name: String,
pub cur_val: u16,
pub max_val: u16,
}
#[derive(schemars::JsonSchema)]
pub struct AchievementIncrementEvent {
pub achievement_id: u32,
pub cur_val: u16,
pub max_val: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PhysgunPickupEvent {
pub ent_index: u32,
}
#[derive(schemars::JsonSchema)]
pub struct FlareIgniteNpcEvent {
pub ent_index: u32,
}
#[derive(schemars::JsonSchema)]
pub struct HelicopterGrenadePuntMissEvent {}
#[derive(schemars::JsonSchema)]
pub struct UserDataDownloadedEvent {}
#[derive(schemars::JsonSchema)]
pub struct RagdollDissolvedEvent {
pub ent_index: u32,
}
#[derive(schemars::JsonSchema)]
pub struct HLTVChangedModeEvent {
pub old_mode: u16,
pub new_mode: u16,
pub obs_target: u16,
}
#[derive(schemars::JsonSchema)]
pub struct HLTVChangedTargetEvent {
pub mode: u16,
pub old_target: u16,
pub obs_target: u16,
}
#[derive(schemars::JsonSchema)]
pub struct VoteEndedEvent {}
#[derive(schemars::JsonSchema)]
pub struct VoteStartedEvent {
pub issue: String,
pub param_1: String,
pub team: u8,
pub initiator: u32,
pub voteidx: u32,
}
#[derive(schemars::JsonSchema)]
pub struct VoteChangedEvent {
pub vote_option_1: u8,
pub vote_option_2: u8,
pub vote_option_3: u8,
pub vote_option_4: u8,
pub vote_option_5: u8,
pub potential_votes: u8,
pub voteidx: u32,
}
#[derive(schemars::JsonSchema)]
pub struct VotePassedEvent {
pub details: String,
pub param_1: String,
pub team: u8,
pub voteidx: u32,
}
#[derive(schemars::JsonSchema)]
pub struct VoteFailedEvent {
pub team: u8,
pub voteidx: u32,
}
#[derive(schemars::JsonSchema)]
pub struct VoteCastEvent {
pub vote_option: u8,
pub team: u16,
pub entity_id: u32,
pub voteidx: u32,
}
#[derive(schemars::JsonSchema)]
pub struct VoteOptionsEvent {
pub count: u8,
pub option_1: String,
pub option_2: String,
pub option_3: String,
pub option_4: String,
pub option_5: String,
pub voteidx: u32,
}
#[derive(schemars::JsonSchema)]
pub struct ReplaySavedEvent {}
#[derive(schemars::JsonSchema)]
pub struct EnteredPerformanceModeEvent {}
#[derive(schemars::JsonSchema)]
pub struct BrowseReplaysEvent {}
#[derive(schemars::JsonSchema)]
pub struct ReplayYoutubeStatsEvent {
pub views: u32,
pub likes: u32,
pub favorited: u32,
}
#[derive(schemars::JsonSchema)]
pub struct InventoryUpdatedEvent {}
#[derive(schemars::JsonSchema)]
pub struct CartUpdatedEvent {}
#[derive(schemars::JsonSchema)]
pub struct StorePriceSheetUpdatedEvent {}
#[derive(schemars::JsonSchema)]
pub struct EconInventoryConnectedEvent {}
#[derive(schemars::JsonSchema)]
pub struct ItemSchemaInitializedEvent {}
#[derive(schemars::JsonSchema)]
pub struct GcNewSessionEvent {}
#[derive(schemars::JsonSchema)]
pub struct GcLostSessionEvent {}
#[derive(schemars::JsonSchema)]
pub struct IntroFinishEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct IntroNextCameraEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerChangeClassEvent {
pub user_id: u16,
pub class: u16,
}
#[derive(schemars::JsonSchema)]
pub struct TfMapTimeRemainingEvent {
pub seconds: u32,
}
#[derive(schemars::JsonSchema)]
pub struct TfGameOverEvent {
pub reason: String,
}
#[derive(schemars::JsonSchema)]
pub struct CtfFlagCapturedEvent {
pub capping_team: u16,
pub capping_team_score: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ControlPointInitializedEvent {}
#[derive(schemars::JsonSchema)]
pub struct ControlPointUpdateImagesEvent {
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ControlPointUpdateLayoutEvent {
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ControlPointUpdateCappingEvent {
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ControlPointUpdateOwnerEvent {
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ControlPointStartTouchEvent {
pub player: u16,
pub area: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ControlPointEndTouchEvent {
pub player: u16,
pub area: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ControlPointPulseElementEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ControlPointFakeCaptureEvent {
pub player: u16,
pub int_data: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ControlPointFakeCaptureMultiplierEvent {
pub player: u16,
pub int_data: u16,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayRoundSelectedEvent {
pub round: String,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayRoundStartEvent {
pub full_reset: bool,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayRoundActiveEvent {}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayWaitingBeginsEvent {}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayWaitingEndsEvent {}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayWaitingAboutToEndEvent {}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayRestartRoundEvent {}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayReadyRestartEvent {}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayRoundRestartSecondsEvent {
pub seconds: u16,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayTeamReadyEvent {
pub team: u8,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayRoundWinEvent {
pub team: u8,
pub win_reason: u8,
pub flag_cap_limit: u16,
pub full_round: u16,
pub round_time: f32,
pub losing_team_num_caps: u16,
pub was_sudden_death: u8,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayUpdateTimerEvent {}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayRoundStalemateEvent {
pub reason: u8,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayOvertimeBeginEvent {}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayOvertimeEndEvent {}
#[derive(schemars::JsonSchema)]
pub struct TeamPlaySuddenDeathBeginEvent {}
#[derive(schemars::JsonSchema)]
pub struct TeamPlaySuddenDeathEndEvent {}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayGameOverEvent {
pub reason: String,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayMapTimeRemainingEvent {
pub seconds: u16,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayTimerFlashEvent {
pub time_remaining: u16,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayTimerTimeAddedEvent {
pub timer: u16,
pub seconds_added: u16,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayPointStartCaptureEvent {
pub cp: u8,
pub cp_name: String,
pub team: u8,
pub cap_team: u8,
pub cappers: String,
pub cap_time: f32,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayPointCapturedEvent {
pub cp: u8,
pub cp_name: String,
pub team: u8,
pub cappers: String,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayPointLockedEvent {
pub cp: u8,
pub cp_name: String,
pub team: u8,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayPointUnlockedEvent {
pub cp: u8,
pub cp_name: String,
pub team: u8,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayCaptureBrokenEvent {
pub cp: u8,
pub cp_name: String,
pub time_remaining: f32,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayCaptureBlockedEvent {
pub cp: u8,
pub cp_name: String,
pub blocker: u8,
pub victim: u8,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayFlagEventEvent {
pub player: u16,
pub carrier: u16,
pub event_type: u16,
pub home: u8,
pub team: u8,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayWinPanelEvent {
pub panel_style: u8,
pub winning_team: u8,
pub win_reason: u8,
pub cappers: String,
pub flag_cap_limit: u16,
pub blue_score: u16,
pub red_score: u16,
pub blue_score_prev: u16,
pub red_score_prev: u16,
pub round_complete: u16,
pub rounds_remaining: u16,
pub player_1: u16,
pub player_1_points: u16,
pub player_2: u16,
pub player_2_points: u16,
pub player_3: u16,
pub player_3_points: u16,
pub kill_stream_player_1: u16,
pub kill_stream_player_1_count: u16,
pub game_over: u8,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayTeamBalancedPlayerEvent {
pub player: u16,
pub team: u8,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlaySetupFinishedEvent {}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayAlertEvent {
pub alert_type: u16,
}
#[derive(schemars::JsonSchema)]
pub struct TrainingCompleteEvent {
pub next_map: String,
pub map: String,
pub text: String,
}
#[derive(schemars::JsonSchema)]
pub struct ShowFreezePanelEvent {
pub killer: u16,
}
#[derive(schemars::JsonSchema)]
pub struct HideFreezePanelEvent {}
#[derive(schemars::JsonSchema)]
pub struct FreezeCamStartedEvent {}
#[derive(schemars::JsonSchema)]
pub struct LocalPlayerChangeTeamEvent {}
#[derive(schemars::JsonSchema)]
pub struct LocalPlayerScoreChangedEvent {
pub score: u16,
}
#[derive(schemars::JsonSchema)]
pub struct LocalPlayerChangeClassEvent {}
#[derive(schemars::JsonSchema)]
pub struct LocalPlayerRespawnEvent {}
#[derive(schemars::JsonSchema)]
pub struct BuildingInfoChangedEvent {
pub building_type: u8,
pub object_mode: u8,
pub remove: u8,
}
#[derive(schemars::JsonSchema)]
pub struct LocalPlayerChangeDisguiseEvent {
pub disguised: bool,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerAccountChangedEvent {
pub old_value: u16,
pub new_value: u16,
}
#[derive(schemars::JsonSchema)]
pub struct SpyPdaResetEvent {}
#[derive(schemars::JsonSchema)]
pub struct FlagStatusUpdateEvent {
pub user_id: u16,
pub ent_index: u32,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerStatsUpdatedEvent {
pub force_upload: bool,
}
#[derive(schemars::JsonSchema)]
pub struct PlayingCommentaryEvent {}
#[derive(schemars::JsonSchema)]
pub struct PlayerChargeDeployedEvent {
pub user_id: u16,
pub target_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerBuiltObjectEvent {
pub user_id: u16,
pub object: u16,
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerUpgradedObjectEvent {
pub user_id: u16,
pub object: u16,
pub index: u16,
pub is_builder: bool,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerCarryObjectEvent {
pub user_id: u16,
pub object: u16,
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerDropObjectEvent {
pub user_id: u16,
pub object: u16,
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ObjectRemovedEvent {
pub user_id: u16,
pub object_type: u16,
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ObjectDestroyedEvent {
pub user_id: u16,
pub attacker: u16,
pub assister: u16,
pub weapon: String,
pub weapon_id: u16,
pub object_type: u16,
pub index: u16,
pub was_building: bool,
}
#[derive(schemars::JsonSchema)]
pub struct ObjectDetonatedEvent {
pub user_id: u16,
pub object_type: u16,
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct AchievementEarnedEvent {
pub player: u8,
pub achievement: u16,
}
#[derive(schemars::JsonSchema)]
pub struct SpecTargetUpdatedEvent {}
#[derive(schemars::JsonSchema)]
pub struct TournamentStateUpdateEvent {
pub user_id: u16,
pub name_change: bool,
pub ready_state: u16,
pub new_name: String,
}
#[derive(schemars::JsonSchema)]
pub struct TournamentEnableCountdownEvent {}
#[derive(schemars::JsonSchema)]
pub struct PlayerCalledForMedicEvent {
pub user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerAskedForBallEvent {
pub user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct LocalPlayerBecameObserverEvent {}
#[derive(schemars::JsonSchema)]
pub struct PlayerIgnitedInvEvent {
pub pyro_ent_index: u8,
pub victim_ent_index: u8,
pub medic_ent_index: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerIgnitedEvent {
pub pyro_ent_index: u8,
pub victim_ent_index: u8,
pub weapon_id: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerExtinguishedEvent {
pub victim: u8,
pub healer: u8,
pub item_definition_index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerTeleportedEvent {
pub user_id: u16,
pub builder_id: u16,
pub dist: f32,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerHealedMedicCallEvent {
pub user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct LocalPlayerChargeReadyEvent {}
#[derive(schemars::JsonSchema)]
pub struct LocalPlayerWindDownEvent {}
#[derive(schemars::JsonSchema)]
pub struct PlayerInvulnedEvent {
pub user_id: u16,
pub medic_user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct EscortSpeedEvent {
pub team: u8,
pub speed: u8,
pub players: u8,
}
#[derive(schemars::JsonSchema)]
pub struct EscortProgressEvent {
pub team: u8,
pub progress: f32,
pub reset: bool,
}
#[derive(schemars::JsonSchema)]
pub struct EscortRecedeEvent {
pub team: u8,
pub recede_time: f32,
}
#[derive(schemars::JsonSchema)]
pub struct GameUIActivatedEvent {}
#[derive(schemars::JsonSchema)]
pub struct GameUIHiddenEvent {}
#[derive(schemars::JsonSchema)]
pub struct PlayerEscortScoreEvent {
pub player: u8,
pub points: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerHealOnHitEvent {
pub amount: u16,
pub ent_index: u8,
pub weapon_def_index: u32,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerStealSandvichEvent {
pub owner: u16,
pub target: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ShowClassLayoutEvent {
pub show: bool,
}
#[derive(schemars::JsonSchema)]
pub struct ShowVsPanelEvent {
pub show: bool,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerDamagedEvent {
pub amount: u16,
pub kind: u32,
}
#[derive(schemars::JsonSchema)]
pub struct ArenaPlayerNotificationEvent {
pub player: u8,
pub message: u8,
}
#[derive(schemars::JsonSchema)]
pub struct ArenaMatchMaxStreakEvent {
pub team: u8,
pub streak: u8,
}
#[derive(schemars::JsonSchema)]
pub struct ArenaRoundStartEvent {}
#[derive(schemars::JsonSchema)]
pub struct ArenaWinPanelEvent {
pub panel_style: u8,
pub winning_team: u8,
pub win_reason: u8,
pub cappers: String,
pub flag_cap_limit: u16,
pub blue_score: u16,
pub red_score: u16,
pub blue_score_prev: u16,
pub red_score_prev: u16,
pub round_complete: u16,
pub player_1: u16,
pub player_1_damage: u16,
pub player_1_healing: u16,
pub player_1_lifetime: u16,
pub player_1_kills: u16,
pub player_2: u16,
pub player_2_damage: u16,
pub player_2_healing: u16,
pub player_2_lifetime: u16,
pub player_2_kills: u16,
pub player_3: u16,
pub player_3_damage: u16,
pub player_3_healing: u16,
pub player_3_lifetime: u16,
pub player_3_kills: u16,
pub player_4: u16,
pub player_4_damage: u16,
pub player_4_healing: u16,
pub player_4_lifetime: u16,
pub player_4_kills: u16,
pub player_5: u16,
pub player_5_damage: u16,
pub player_5_healing: u16,
pub player_5_lifetime: u16,
pub player_5_kills: u16,
pub player_6: u16,
pub player_6_damage: u16,
pub player_6_healing: u16,
pub player_6_lifetime: u16,
pub player_6_kills: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PveWinPanelEvent {
pub panel_style: u8,
pub winning_team: u8,
pub win_reason: u8,
}
#[derive(schemars::JsonSchema)]
pub struct AirDashEvent {
pub player: u8,
}
#[derive(schemars::JsonSchema)]
pub struct LandedEvent {
pub player: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerDamageDodgedEvent {
pub damage: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerStunnedEvent {
pub stunner: u16,
pub victim: u16,
pub victim_capping: bool,
pub big_stun: bool,
}
#[derive(schemars::JsonSchema)]
pub struct ScoutGrandSlamEvent {
pub scout_id: u16,
pub target_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ScoutSlamdollLandedEvent {
pub target_index: u16,
pub x: f32,
pub y: f32,
pub z: f32,
}
#[derive(schemars::JsonSchema)]
pub struct ArrowImpactEvent {
pub attached_entity: u16,
pub shooter: u16,
pub bone_index_attached: u16,
pub bone_position_x: f32,
pub bone_position_y: f32,
pub bone_position_z: f32,
pub bone_angles_x: f32,
pub bone_angles_y: f32,
pub bone_angles_z: f32,
pub projectile_type: u16,
pub is_crit: bool,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerJaratedEvent {
pub thrower_ent_index: u8,
pub victim_ent_index: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerJaratedFadeEvent {
pub thrower_ent_index: u8,
pub victim_ent_index: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerShieldBlockedEvent {
pub attacker_ent_index: u8,
pub blocker_ent_index: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerPinnedEvent {
pub pinned: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerHealedByMedicEvent {
pub medic: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerSappedObjectEvent {
pub user_id: u16,
pub owner_id: u16,
pub object: u8,
pub sapper_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ItemFoundEvent {
pub player: u8,
pub quality: u8,
pub method: u8,
pub item_def: u32,
pub is_strange: u8,
pub is_unusual: u8,
pub wear: f32,
}
#[derive(schemars::JsonSchema)]
pub struct ShowAnnotationEvent {
pub world_pos_x: f32,
pub world_pos_y: f32,
pub world_pos_z: f32,
pub world_normal_x: f32,
pub world_normal_y: f32,
pub world_normal_z: f32,
pub id: u32,
pub text: String,
pub lifetime: f32,
pub visibility_bit_field: u32,
pub follow_ent_index: u32,
pub show_distance: bool,
pub play_sound: String,
pub show_effect: bool,
}
#[derive(schemars::JsonSchema)]
pub struct HideAnnotationEvent {
pub id: u32,
}
#[derive(schemars::JsonSchema)]
pub struct PostInventoryApplicationEvent {
pub user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ControlPointUnlockUpdatedEvent {
pub index: u16,
pub time: f32,
}
#[derive(schemars::JsonSchema)]
pub struct DeployBuffBannerEvent {
pub buff_type: u8,
pub buff_owner: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerBuffEvent {
pub user_id: u16,
pub buff_owner: u16,
pub buff_type: u8,
}
#[derive(schemars::JsonSchema)]
pub struct MedicDeathEvent {
pub user_id: u16,
pub attacker: u16,
pub healing: u16,
pub charged: bool,
}
#[derive(schemars::JsonSchema)]
pub struct OvertimeNagEvent {}
#[derive(schemars::JsonSchema)]
pub struct TeamsChangedEvent {}
#[derive(schemars::JsonSchema)]
pub struct HalloweenPumpkinGrabEvent {
pub user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct RocketJumpEvent {
pub user_id: u16,
pub play_sound: bool,
}
#[derive(schemars::JsonSchema)]
pub struct RocketJumpLandedEvent {
pub user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct StickyJumpEvent {
pub user_id: u16,
pub play_sound: bool,
}
#[derive(schemars::JsonSchema)]
pub struct StickyJumpLandedEvent {
pub user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct RocketPackLaunchEvent {
pub user_id: u16,
pub play_sound: bool,
}
#[derive(schemars::JsonSchema)]
pub struct RocketPackLandedEvent {
pub user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MedicDefendedEvent {
pub user_id: u16,
pub medic: u16,
}
#[derive(schemars::JsonSchema)]
pub struct LocalPlayerHealedEvent {
pub amount: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerDestroyedPipeBombEvent {
pub user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ObjectDeflectedEvent {
pub user_id: u16,
pub owner_id: u16,
pub weapon_id: u16,
pub object_ent_index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerMvpEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct RaidSpawnMobEvent {}
#[derive(schemars::JsonSchema)]
pub struct RaidSpawnSquadEvent {}
#[derive(schemars::JsonSchema)]
pub struct NavBlockedEvent {
pub area: u32,
pub blocked: bool,
}
#[derive(schemars::JsonSchema)]
pub struct PathTrackPassedEvent {
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct NumCappersChangedEvent {
pub index: u16,
pub count: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerRegenerateEvent {}
#[derive(schemars::JsonSchema)]
pub struct UpdateStatusItemEvent {
pub index: u8,
pub object: u8,
}
#[derive(schemars::JsonSchema)]
pub struct StatsResetRoundEvent {}
#[derive(schemars::JsonSchema)]
pub struct ScoreStatsAccumulatedUpdateEvent {}
#[derive(schemars::JsonSchema)]
pub struct ScoreStatsAccumulatedResetEvent {}
#[derive(schemars::JsonSchema)]
pub struct AchievementEarnedLocalEvent {
pub achievement: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerHealedEvent {
pub patient: u16,
pub healer: u16,
pub amount: u16,
}
#[derive(schemars::JsonSchema)]
pub struct BuildingHealedEvent {
pub building: u16,
pub healer: u16,
pub amount: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ItemPickupEvent {
pub user_id: u16,
pub item: String,
}
#[derive(schemars::JsonSchema)]
pub struct DuelStatusEvent {
pub killer: u16,
pub score_type: u16,
pub initiator: u16,
pub target: u16,
pub initiator_score: u16,
pub target_score: u16,
}
#[derive(schemars::JsonSchema)]
pub struct FishNoticeEvent {
pub user_id: u16,
pub victim_ent_index: u32,
pub inflictor_ent_index: u32,
pub attacker: u16,
pub weapon: String,
pub weapon_id: u16,
pub damage_bits: u32,
pub custom_kill: u16,
pub assister: u16,
pub weapon_log_class_name: String,
pub stun_flags: u16,
pub death_flags: u16,
pub silent_kill: bool,
pub assister_fallback: String,
}
#[derive(schemars::JsonSchema)]
pub struct FishNoticeArmEvent {
pub user_id: u16,
pub victim_ent_index: u32,
pub inflictor_ent_index: u32,
pub attacker: u16,
pub weapon: String,
pub weapon_id: u16,
pub damage_bits: u32,
pub custom_kill: u16,
pub assister: u16,
pub weapon_log_class_name: String,
pub stun_flags: u16,
pub death_flags: u16,
pub silent_kill: bool,
pub assister_fallback: String,
}
#[derive(schemars::JsonSchema)]
pub struct SlapNoticeEvent {
pub user_id: u16,
pub victim_ent_index: u32,
pub inflictor_ent_index: u32,
pub attacker: u16,
pub weapon: String,
pub weapon_id: u16,
pub damage_bits: u32,
pub custom_kill: u16,
pub assister: u16,
pub weapon_log_class_name: String,
pub stun_flags: u16,
pub death_flags: u16,
pub silent_kill: bool,
pub assister_fallback: String,
}
#[derive(schemars::JsonSchema)]
pub struct ThrowableHitEvent {
pub user_id: u16,
pub victim_ent_index: u32,
pub inflictor_ent_index: u32,
pub attacker: u16,
pub weapon: String,
pub weapon_id: u16,
pub damage_bits: u32,
pub custom_kill: u16,
pub assister: u16,
pub weapon_log_class_name: String,
pub stun_flags: u16,
pub death_flags: u16,
pub silent_kill: bool,
pub assister_fallback: String,
pub total_hits: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PumpkinLordSummonedEvent {}
#[derive(schemars::JsonSchema)]
pub struct PumpkinLordKilledEvent {}
#[derive(schemars::JsonSchema)]
pub struct MerasmusSummonedEvent {
pub level: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MerasmusKilledEvent {
pub level: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MerasmusEscapeWarningEvent {
pub level: u16,
pub time_remaining: u8,
}
#[derive(schemars::JsonSchema)]
pub struct MerasmusEscapedEvent {
pub level: u16,
}
#[derive(schemars::JsonSchema)]
pub struct EyeballBossSummonedEvent {
pub level: u16,
}
#[derive(schemars::JsonSchema)]
pub struct EyeballBossStunnedEvent {
pub level: u16,
pub player_ent_index: u8,
}
#[derive(schemars::JsonSchema)]
pub struct EyeballBossKilledEvent {
pub level: u16,
}
#[derive(schemars::JsonSchema)]
pub struct EyeballBossKillerEvent {
pub level: u16,
pub player_ent_index: u8,
}
#[derive(schemars::JsonSchema)]
pub struct EyeballBossEscapeImminentEvent {
pub level: u16,
pub time_remaining: u8,
}
#[derive(schemars::JsonSchema)]
pub struct EyeballBossEscapedEvent {
pub level: u16,
}
#[derive(schemars::JsonSchema)]
pub struct NpcHurtEvent {
pub ent_index: u16,
pub health: u16,
pub attacker_player: u16,
pub weapon_id: u16,
pub damage_amount: u16,
pub crit: bool,
pub boss: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ControlPointTimerUpdatedEvent {
pub index: u16,
pub time: f32,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerHighFiveStartEvent {
pub ent_index: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerHighFiveCancelEvent {
pub ent_index: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerHighFiveSuccessEvent {
pub initiator_ent_index: u8,
pub partner_ent_index: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerBonusPointsEvent {
pub points: u16,
pub player_ent_index: u16,
pub source_ent_index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerUpgradedEvent {}
#[derive(schemars::JsonSchema)]
pub struct PlayerBuybackEvent {
pub player: u16,
pub cost: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerUsedPowerUpBottleEvent {
pub player: u16,
pub kind: u16,
pub time: f32,
}
#[derive(schemars::JsonSchema)]
pub struct ChristmasGiftGrabEvent {
pub user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerKilledAchievementZoneEvent {
pub attacker: u16,
pub victim: u16,
pub zone_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PartyUpdatedEvent {}
#[derive(schemars::JsonSchema)]
pub struct PartyPrefChangedEvent {}
#[derive(schemars::JsonSchema)]
pub struct PartyCriteriaChangedEvent {}
#[derive(schemars::JsonSchema)]
pub struct PartyInvitesChangedEvent {}
#[derive(schemars::JsonSchema)]
pub struct PartyQueueStateChangedEvent {
pub match_group: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PartyChatEvent {
pub steam_id: String,
pub text: String,
pub kind: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PartyMemberJoinEvent {
pub steam_id: String,
}
#[derive(schemars::JsonSchema)]
pub struct PartyMemberLeaveEvent {
pub steam_id: String,
}
#[derive(schemars::JsonSchema)]
pub struct MatchInvitesUpdatedEvent {}
#[derive(schemars::JsonSchema)]
pub struct LobbyUpdatedEvent {}
#[derive(schemars::JsonSchema)]
pub struct MvmMissionUpdateEvent {
pub class: u16,
pub count: u16,
}
#[derive(schemars::JsonSchema)]
pub struct RecalculateHolidaysEvent {}
#[derive(schemars::JsonSchema)]
pub struct PlayerCurrencyChangedEvent {
pub currency: u16,
}
#[derive(schemars::JsonSchema)]
pub struct DoomsdayRocketOpenEvent {
pub team: u8,
}
#[derive(schemars::JsonSchema)]
pub struct RemoveNemesisRelationshipsEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MvmCreditBonusWaveEvent {}
#[derive(schemars::JsonSchema)]
pub struct MvmCreditBonusAllEvent {}
#[derive(schemars::JsonSchema)]
pub struct MvmCreditBonusAllAdvancedEvent {}
#[derive(schemars::JsonSchema)]
pub struct MvmQuickSentryUpgradeEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MvmTankDestroyedByPlayersEvent {}
#[derive(schemars::JsonSchema)]
pub struct MvmKillRobotDeliveringBombEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MvmPickupCurrencyEvent {
pub player: u16,
pub currency: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MvmBombCarrierKilledEvent {
pub level: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MvmSentryBusterDetonateEvent {
pub player: u16,
pub det_x: f32,
pub det_y: f32,
pub det_z: f32,
}
#[derive(schemars::JsonSchema)]
pub struct MvmScoutMarkedForDeathEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MvmMedicPowerUpSharedEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MvmBeginWaveEvent {
pub wave_index: u16,
pub max_waves: u16,
pub advanced: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MvmWaveCompleteEvent {
pub advanced: bool,
}
#[derive(schemars::JsonSchema)]
pub struct MvmMissionCompleteEvent {
pub mission: String,
}
#[derive(schemars::JsonSchema)]
pub struct MvmBombResetByPlayerEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MvmBombAlarmTriggeredEvent {}
#[derive(schemars::JsonSchema)]
pub struct MvmBombDeployResetByPlayerEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MvmWaveFailedEvent {}
#[derive(schemars::JsonSchema)]
pub struct MvmResetStatsEvent {}
#[derive(schemars::JsonSchema)]
pub struct DamageResistedEvent {
pub ent_index: u8,
}
#[derive(schemars::JsonSchema)]
pub struct RevivePlayerNotifyEvent {
pub ent_index: u16,
pub marker_ent_index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct RevivePlayerStoppedEvent {
pub ent_index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct RevivePlayerCompleteEvent {
pub ent_index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerTurnedToGhostEvent {
pub user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MedigunShieldBlockedDamageEvent {
pub user_id: u16,
pub damage: f32,
}
#[derive(schemars::JsonSchema)]
pub struct MvmAdvWaveCompleteNoGatesEvent {
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MvmSniperHeadshotCurrencyEvent {
pub user_id: u16,
pub currency: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MvmMannhattanPitEvent {}
#[derive(schemars::JsonSchema)]
pub struct FlagCarriedInDetectionZoneEvent {}
#[derive(schemars::JsonSchema)]
pub struct MvmAdvWaveKilledStunRadioEvent {}
#[derive(schemars::JsonSchema)]
pub struct PlayerDirectHitStunEvent {
pub attacker: u16,
pub victim: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MvmSentryBusterKilledEvent {
pub sentry_buster: u16,
}
#[derive(schemars::JsonSchema)]
pub struct UpgradesFileChangedEvent {
pub path: String,
}
#[derive(schemars::JsonSchema)]
pub struct RdTeamPointsChangedEvent {
pub points: u16,
pub team: u8,
pub method: u8,
}
#[derive(schemars::JsonSchema)]
pub struct RdRulesStateChangedEvent {}
#[derive(schemars::JsonSchema)]
pub struct RdRobotKilledEvent {
pub user_id: u16,
pub victim_ent_index: u32,
pub inflictor_ent_index: u32,
pub attacker: u16,
pub weapon: String,
pub weapon_id: u16,
pub damage_bits: u32,
pub custom_kill: u16,
pub weapon_log_class_name: String,
}
#[derive(schemars::JsonSchema)]
pub struct RdRobotImpactEvent {
pub ent_index: u16,
pub impulse_x: f32,
pub impulse_y: f32,
pub impulse_z: f32,
}
#[derive(schemars::JsonSchema)]
pub struct TeamPlayPreRoundTimeLeftEvent {
pub time: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ParachuteDeployEvent {
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ParachuteHolsterEvent {
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct KillRefillsMeterEvent {
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct RpsTauntEventEvent {
pub winner: u16,
pub winner_rps: u8,
pub loser: u16,
pub loser_rps: u8,
}
#[derive(schemars::JsonSchema)]
pub struct CongaKillEvent {
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerInitialSpawnEvent {
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct CompetitiveVictoryEvent {}
#[derive(schemars::JsonSchema)]
pub struct CompetitiveStatsUpdateEvent {
pub index: u16,
pub kills_rank: u8,
pub score_rank: u8,
pub damage_rank: u8,
pub healing_rank: u8,
pub support_rank: u8,
}
#[derive(schemars::JsonSchema)]
pub struct MiniGameWinEvent {
pub team: u8,
pub kind: u8,
}
#[derive(schemars::JsonSchema)]
pub struct SentryOnGoActiveEvent {
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct DuckXpLevelUpEvent {
pub level: u16,
}
#[derive(schemars::JsonSchema)]
pub struct QuestLogOpenedEvent {}
#[derive(schemars::JsonSchema)]
pub struct SchemaUpdatedEvent {}
#[derive(schemars::JsonSchema)]
pub struct LocalPlayerPickupWeaponEvent {}
#[derive(schemars::JsonSchema)]
pub struct RdPlayerScorePointsEvent {
pub player: u16,
pub method: u16,
pub amount: u16,
}
#[derive(schemars::JsonSchema)]
pub struct DemomanDetStickiesEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct QuestObjectiveCompletedEvent {
pub quest_item_id_low: u32,
pub quest_item_id_hi: u32,
pub quest_objective_id: u32,
pub scorer_user_id: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerScoreChangedEvent {
pub player: u8,
pub delta: u16,
}
#[derive(schemars::JsonSchema)]
pub struct KilledCappingPlayerEvent {
pub cp: u8,
pub killer: u8,
pub victim: u8,
pub assister: u8,
}
#[derive(schemars::JsonSchema)]
pub struct EnvironmentalDeathEvent {
pub killer: u8,
pub victim: u8,
}
#[derive(schemars::JsonSchema)]
pub struct ProjectileDirectHitEvent {
pub attacker: u8,
pub victim: u8,
pub weapon_def_index: u32,
}
#[derive(schemars::JsonSchema)]
pub struct PassGetEvent {
pub owner: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PassScoreEvent {
pub scorer: u16,
pub assister: u16,
pub points: u8,
}
#[derive(schemars::JsonSchema)]
pub struct PassFreeEvent {
pub owner: u16,
pub attacker: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PassPassCaughtEvent {
pub passer: u16,
pub catcher: u16,
pub dist: f32,
pub duration: f32,
}
#[derive(schemars::JsonSchema)]
pub struct PassBallStolenEvent {
pub victim: u16,
pub attacker: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PassBallBlockedEvent {
pub owner: u16,
pub blocker: u16,
}
#[derive(schemars::JsonSchema)]
pub struct DamagePreventedEvent {
pub preventor: u16,
pub victim: u16,
pub amount: u16,
pub condition: u16,
}
#[derive(schemars::JsonSchema)]
pub struct HalloweenBossKilledEvent {
pub boss: u16,
pub killer: u16,
}
#[derive(schemars::JsonSchema)]
pub struct EscapedLootIslandEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct TaggedPlayerAsItEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MerasmusStunnedEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MerasmusPropFoundEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct HalloweenSkeletonKilledEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct SkeletonKilledQuestEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct SkeletonKingKilledQuestEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct EscapeHellEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct CrossSpectralBridgeEvent {
pub player: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MiniGameWonEvent {
pub player: u16,
pub game: u16,
}
#[derive(schemars::JsonSchema)]
pub struct RespawnGhostEvent {
pub reviver: u16,
pub ghost: u16,
}
#[derive(schemars::JsonSchema)]
pub struct KillInHellEvent {
pub killer: u16,
pub victim: u16,
}
#[derive(schemars::JsonSchema)]
pub struct HalloweenDuckCollectedEvent {
pub collector: u16,
}
#[derive(schemars::JsonSchema)]
pub struct SpecialScoreEvent {
pub player: u8,
}
#[derive(schemars::JsonSchema)]
pub struct TeamLeaderKilledEvent {
pub killer: u8,
pub victim: u8,
}
#[derive(schemars::JsonSchema)]
pub struct HalloweenSoulCollectedEvent {
pub intended_target: u8,
pub collecting_player: u8,
pub soul_count: u8,
}
#[derive(schemars::JsonSchema)]
pub struct RecalculateTruceEvent {}
#[derive(schemars::JsonSchema)]
pub struct DeadRingerCheatDeathEvent {
pub spy: u8,
pub attacker: u8,
}
#[derive(schemars::JsonSchema)]
pub struct CrossbowHealEvent {
pub healer: u8,
pub target: u8,
pub amount: u16,
}
#[derive(schemars::JsonSchema)]
pub struct DamageMitigatedEvent {
pub mitigator: u8,
pub damaged: u8,
pub amount: u16,
pub item_definition_index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PayloadPushedEvent {
pub pusher: u8,
pub distance: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerAbandonedMatchEvent {
pub game_over: bool,
}
#[derive(schemars::JsonSchema)]
pub struct ClDrawlineEvent {
pub player: u8,
pub panel: u8,
pub line: u8,
pub x: f32,
pub y: f32,
}
#[derive(schemars::JsonSchema)]
pub struct RestartTimerTimeEvent {
pub time: u8,
}
#[derive(schemars::JsonSchema)]
pub struct WinLimitChangedEvent {}
#[derive(schemars::JsonSchema)]
pub struct WinPanelShowScoresEvent {}
#[derive(schemars::JsonSchema)]
pub struct TopStreamsRequestFinishedEvent {}
#[derive(schemars::JsonSchema)]
pub struct CompetitiveStateChangedEvent {}
#[derive(schemars::JsonSchema)]
pub struct GlobalWarDataUpdatedEvent {}
#[derive(schemars::JsonSchema)]
pub struct StopWatchChangedEvent {}
#[derive(schemars::JsonSchema)]
pub struct DsStopEvent {}
#[derive(schemars::JsonSchema)]
pub struct DsScreenshotEvent {
pub delay: f32,
}
#[derive(schemars::JsonSchema)]
pub struct ShowMatchSummaryEvent {}
#[derive(schemars::JsonSchema)]
pub struct ExperienceChangedEvent {}
#[derive(schemars::JsonSchema)]
pub struct BeginXpLerpEvent {}
#[derive(schemars::JsonSchema)]
pub struct MatchmakerStatsUpdatedEvent {}
#[derive(schemars::JsonSchema)]
pub struct RematchVotePeriodOverEvent {
pub success: bool,
}
#[derive(schemars::JsonSchema)]
pub struct RematchFailedToCreateEvent {}
#[derive(schemars::JsonSchema)]
pub struct PlayerRematchChangeEvent {}
#[derive(schemars::JsonSchema)]
pub struct PingUpdatedEvent {}
#[derive(schemars::JsonSchema)]
pub struct MMStatsUpdatedEvent {}
#[derive(schemars::JsonSchema)]
pub struct PlayerNextMapVoteChangeEvent {
pub map_index: u8,
pub vote: u8,
}
#[derive(schemars::JsonSchema)]
pub struct VoteMapsChangedEvent {}
#[derive(schemars::JsonSchema)]
pub struct ProtoDefChangedEvent {
pub kind: u8,
pub definition_index: u32,
pub created: bool,
pub deleted: bool,
pub erase_history: bool,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerDominationEvent {
pub dominator: u16,
pub dominated: u16,
pub dominations: u16,
}
#[derive(schemars::JsonSchema)]
pub struct PlayerRocketPackPushedEvent {
pub pusher: u16,
pub pushed: u16,
}
#[derive(schemars::JsonSchema)]
pub struct QuestRequestEvent {
pub request: u32,
pub msg: String,
}
#[derive(schemars::JsonSchema)]
pub struct QuestResponseEvent {
pub request: u32,
pub success: bool,
pub msg: String,
}
#[derive(schemars::JsonSchema)]
pub struct QuestProgressEvent {
pub owner: u16,
pub scorer: u16,
pub kind: u8,
pub completed: bool,
pub quest_definition_index: u32,
}
#[derive(schemars::JsonSchema)]
pub struct ProjectileRemovedEvent {
pub attacker: u8,
pub weapon_def_index: u32,
pub num_hit: u8,
pub num_direct_hit: u8,
}
#[derive(schemars::JsonSchema)]
pub struct QuestMapDataChangedEvent {}
#[derive(schemars::JsonSchema)]
pub struct GasDousedPlayerIgnitedEvent {
pub igniter: u16,
pub douser: u16,
pub victim: u16,
}
#[derive(schemars::JsonSchema)]
pub struct QuestTurnInStateEvent {
pub state: u16,
}
#[derive(schemars::JsonSchema)]
pub struct ItemsAcknowledgedEvent {}
#[derive(schemars::JsonSchema)]
pub struct CapperKilledEvent {
pub blocker: u16,
pub victim: u16,
}
#[derive(schemars::JsonSchema)]
pub struct MainMenuStabilizedEvent {}
#[derive(schemars::JsonSchema)]
pub struct WorldStatusChangedEvent {}
#[derive(schemars::JsonSchema)]
pub struct HLTVStatusEvent {
pub clients: u32,
pub slots: u32,
pub proxies: u16,
pub master: String,
}
#[derive(schemars::JsonSchema)]
pub struct HLTVCameramanEvent {
pub index: u16,
}
#[derive(schemars::JsonSchema)]
pub struct HLTVRankCameraEvent {
pub index: u8,
pub rank: f32,
pub target: u16,
}
#[derive(schemars::JsonSchema)]
pub struct HLTVRankEntityEvent {
pub index: u16,
pub rank: f32,
pub target: u16,
}
#[derive(schemars::JsonSchema)]
pub struct HLTVFixedEvent {
pub pos_x: u32,
pub pos_y: u32,
pub pos_z: u32,
pub theta: u16,
pub phi: u16,
pub offset: u16,
pub fov: f32,
pub target: u16,
}
#[derive(schemars::JsonSchema)]
pub struct HLTVChaseEvent {
pub target_1: u16,
pub target_2: u16,
pub distance: u16,
pub theta: u16,
pub phi: u16,
pub inertia: u8,
pub in_eye: u8,
}
#[derive(schemars::JsonSchema)]
pub struct HLTVMessageEvent {
pub text: String,
}
#[derive(schemars::JsonSchema)]
pub struct HLTVTitleEvent {
pub text: String,
}
#[derive(schemars::JsonSchema)]
pub struct HLTVChatEvent {
pub text: String,
}
#[derive(schemars::JsonSchema)]
pub struct ReplayStartRecordEvent {}
#[derive(schemars::JsonSchema)]
pub struct ReplaySessionInfoEvent {
pub sn: String,
pub di: u8,
pub cb: u32,
pub st: u32,
}
#[derive(schemars::JsonSchema)]
pub struct ReplayEndRecordEvent {}
#[derive(schemars::JsonSchema)]
pub struct ReplayReplaysAvailableEvent {}
#[derive(schemars::JsonSchema)]
pub struct ReplayServerErrorEvent {
pub error: String,
}
#[derive(schemars::JsonSchema)]
#[serde(tag = "type")]
pub enum GameEvent {
ServerSpawn(Box<ServerSpawnEvent>),
ServerChangeLevelFailed(ServerChangeLevelFailedEvent),
ServerShutdown(ServerShutdownEvent),
ServerCvar(ServerCvarEvent),
ServerMessage(ServerMessageEvent),
ServerAddBan(Box<ServerAddBanEvent>),
ServerRemoveBan(ServerRemoveBanEvent),
PlayerConnect(PlayerConnectEvent),
PlayerConnectClient(PlayerConnectClientEvent),
PlayerInfo(PlayerInfoEvent),
PlayerDisconnect(PlayerDisconnectEvent),
PlayerActivate(PlayerActivateEvent),
PlayerSay(PlayerSayEvent),
ClientDisconnect(ClientDisconnectEvent),
ClientBeginConnect(ClientBeginConnectEvent),
ClientConnected(ClientConnectedEvent),
ClientFullConnect(ClientFullConnectEvent),
HostQuit(HostQuitEvent),
TeamInfo(TeamInfoEvent),
TeamScore(TeamScoreEvent),
TeamPlayBroadcastAudio(TeamPlayBroadcastAudioEvent),
PlayerTeam(PlayerTeamEvent),
PlayerClass(PlayerClassEvent),
PlayerDeath(Box<PlayerDeathEvent>),
PlayerHurt(PlayerHurtEvent),
PlayerChat(PlayerChatEvent),
PlayerScore(PlayerScoreEvent),
PlayerSpawn(PlayerSpawnEvent),
PlayerShoot(PlayerShootEvent),
PlayerUse(PlayerUseEvent),
PlayerChangeName(PlayerChangeNameEvent),
PlayerHintMessage(PlayerHintMessageEvent),
BasePlayerTeleported(BasePlayerTeleportedEvent),
GameInit(GameInitEvent),
GameNewMap(GameNewMapEvent),
GameStart(GameStartEvent),
GameEnd(GameEndEvent),
RoundStart(RoundStartEvent),
RoundEnd(RoundEndEvent),
GameMessage(GameMessageEvent),
BreakBreakable(BreakBreakableEvent),
BreakProp(BreakPropEvent),
EntityKilled(EntityKilledEvent),
BonusUpdated(BonusUpdatedEvent),
AchievementEvent(AchievementEventEvent),
AchievementIncrement(AchievementIncrementEvent),
PhysgunPickup(PhysgunPickupEvent),
FlareIgniteNpc(FlareIgniteNpcEvent),
HelicopterGrenadePuntMiss(HelicopterGrenadePuntMissEvent),
UserDataDownloaded(UserDataDownloadedEvent),
RagdollDissolved(RagdollDissolvedEvent),
HLTVChangedMode(HLTVChangedModeEvent),
HLTVChangedTarget(HLTVChangedTargetEvent),
VoteEnded(VoteEndedEvent),
VoteStarted(VoteStartedEvent),
VoteChanged(VoteChangedEvent),
VotePassed(VotePassedEvent),
VoteFailed(VoteFailedEvent),
VoteCast(VoteCastEvent),
VoteOptions(Box<VoteOptionsEvent>),
ReplaySaved(ReplaySavedEvent),
EnteredPerformanceMode(EnteredPerformanceModeEvent),
BrowseReplays(BrowseReplaysEvent),
ReplayYoutubeStats(ReplayYoutubeStatsEvent),
InventoryUpdated(InventoryUpdatedEvent),
CartUpdated(CartUpdatedEvent),
StorePriceSheetUpdated(StorePriceSheetUpdatedEvent),
EconInventoryConnected(EconInventoryConnectedEvent),
ItemSchemaInitialized(ItemSchemaInitializedEvent),
GcNewSession(GcNewSessionEvent),
GcLostSession(GcLostSessionEvent),
IntroFinish(IntroFinishEvent),
IntroNextCamera(IntroNextCameraEvent),
PlayerChangeClass(PlayerChangeClassEvent),
TfMapTimeRemaining(TfMapTimeRemainingEvent),
TfGameOver(TfGameOverEvent),
CtfFlagCaptured(CtfFlagCapturedEvent),
ControlPointInitialized(ControlPointInitializedEvent),
ControlPointUpdateImages(ControlPointUpdateImagesEvent),
ControlPointUpdateLayout(ControlPointUpdateLayoutEvent),
ControlPointUpdateCapping(ControlPointUpdateCappingEvent),
ControlPointUpdateOwner(ControlPointUpdateOwnerEvent),
ControlPointStartTouch(ControlPointStartTouchEvent),
ControlPointEndTouch(ControlPointEndTouchEvent),
ControlPointPulseElement(ControlPointPulseElementEvent),
ControlPointFakeCapture(ControlPointFakeCaptureEvent),
ControlPointFakeCaptureMultiplier(ControlPointFakeCaptureMultiplierEvent),
TeamPlayRoundSelected(TeamPlayRoundSelectedEvent),
TeamPlayRoundStart(TeamPlayRoundStartEvent),
TeamPlayRoundActive(TeamPlayRoundActiveEvent),
TeamPlayWaitingBegins(TeamPlayWaitingBeginsEvent),
TeamPlayWaitingEnds(TeamPlayWaitingEndsEvent),
TeamPlayWaitingAboutToEnd(TeamPlayWaitingAboutToEndEvent),
TeamPlayRestartRound(TeamPlayRestartRoundEvent),
TeamPlayReadyRestart(TeamPlayReadyRestartEvent),
TeamPlayRoundRestartSeconds(TeamPlayRoundRestartSecondsEvent),
TeamPlayTeamReady(TeamPlayTeamReadyEvent),
TeamPlayRoundWin(TeamPlayRoundWinEvent),
TeamPlayUpdateTimer(TeamPlayUpdateTimerEvent),
TeamPlayRoundStalemate(TeamPlayRoundStalemateEvent),
TeamPlayOvertimeBegin(TeamPlayOvertimeBeginEvent),
TeamPlayOvertimeEnd(TeamPlayOvertimeEndEvent),
TeamPlaySuddenDeathBegin(TeamPlaySuddenDeathBeginEvent),
TeamPlaySuddenDeathEnd(TeamPlaySuddenDeathEndEvent),
TeamPlayGameOver(TeamPlayGameOverEvent),
TeamPlayMapTimeRemaining(TeamPlayMapTimeRemainingEvent),
TeamPlayTimerFlash(TeamPlayTimerFlashEvent),
TeamPlayTimerTimeAdded(TeamPlayTimerTimeAddedEvent),
TeamPlayPointStartCapture(TeamPlayPointStartCaptureEvent),
TeamPlayPointCaptured(TeamPlayPointCapturedEvent),
TeamPlayPointLocked(TeamPlayPointLockedEvent),
TeamPlayPointUnlocked(TeamPlayPointUnlockedEvent),
TeamPlayCaptureBroken(TeamPlayCaptureBrokenEvent),
TeamPlayCaptureBlocked(TeamPlayCaptureBlockedEvent),
TeamPlayFlagEvent(TeamPlayFlagEventEvent),
TeamPlayWinPanel(TeamPlayWinPanelEvent),
TeamPlayTeamBalancedPlayer(TeamPlayTeamBalancedPlayerEvent),
TeamPlaySetupFinished(TeamPlaySetupFinishedEvent),
TeamPlayAlert(TeamPlayAlertEvent),
TrainingComplete(TrainingCompleteEvent),
ShowFreezePanel(ShowFreezePanelEvent),
HideFreezePanel(HideFreezePanelEvent),
FreezeCamStarted(FreezeCamStartedEvent),
LocalPlayerChangeTeam(LocalPlayerChangeTeamEvent),
LocalPlayerScoreChanged(LocalPlayerScoreChangedEvent),
LocalPlayerChangeClass(LocalPlayerChangeClassEvent),
LocalPlayerRespawn(LocalPlayerRespawnEvent),
BuildingInfoChanged(BuildingInfoChangedEvent),
LocalPlayerChangeDisguise(LocalPlayerChangeDisguiseEvent),
PlayerAccountChanged(PlayerAccountChangedEvent),
SpyPdaReset(SpyPdaResetEvent),
FlagStatusUpdate(FlagStatusUpdateEvent),
PlayerStatsUpdated(PlayerStatsUpdatedEvent),
PlayingCommentary(PlayingCommentaryEvent),
PlayerChargeDeployed(PlayerChargeDeployedEvent),
PlayerBuiltObject(PlayerBuiltObjectEvent),
PlayerUpgradedObject(PlayerUpgradedObjectEvent),
PlayerCarryObject(PlayerCarryObjectEvent),
PlayerDropObject(PlayerDropObjectEvent),
ObjectRemoved(ObjectRemovedEvent),
ObjectDestroyed(ObjectDestroyedEvent),
ObjectDetonated(ObjectDetonatedEvent),
AchievementEarned(AchievementEarnedEvent),
SpecTargetUpdated(SpecTargetUpdatedEvent),
TournamentStateUpdate(TournamentStateUpdateEvent),
TournamentEnableCountdown(TournamentEnableCountdownEvent),
PlayerCalledForMedic(PlayerCalledForMedicEvent),
PlayerAskedForBall(PlayerAskedForBallEvent),
LocalPlayerBecameObserver(LocalPlayerBecameObserverEvent),
PlayerIgnitedInv(PlayerIgnitedInvEvent),
PlayerIgnited(PlayerIgnitedEvent),
PlayerExtinguished(PlayerExtinguishedEvent),
PlayerTeleported(PlayerTeleportedEvent),
PlayerHealedMedicCall(PlayerHealedMedicCallEvent),
LocalPlayerChargeReady(LocalPlayerChargeReadyEvent),
LocalPlayerWindDown(LocalPlayerWindDownEvent),
PlayerInvulned(PlayerInvulnedEvent),
EscortSpeed(EscortSpeedEvent),
EscortProgress(EscortProgressEvent),
EscortRecede(EscortRecedeEvent),
GameUIActivated(GameUIActivatedEvent),
GameUIHidden(GameUIHiddenEvent),
PlayerEscortScore(PlayerEscortScoreEvent),
PlayerHealOnHit(PlayerHealOnHitEvent),
PlayerStealSandvich(PlayerStealSandvichEvent),
ShowClassLayout(ShowClassLayoutEvent),
ShowVsPanel(ShowVsPanelEvent),
PlayerDamaged(PlayerDamagedEvent),
ArenaPlayerNotification(ArenaPlayerNotificationEvent),
ArenaMatchMaxStreak(ArenaMatchMaxStreakEvent),
ArenaRoundStart(ArenaRoundStartEvent),
ArenaWinPanel(ArenaWinPanelEvent),
PveWinPanel(PveWinPanelEvent),
AirDash(AirDashEvent),
Landed(LandedEvent),
PlayerDamageDodged(PlayerDamageDodgedEvent),
PlayerStunned(PlayerStunnedEvent),
ScoutGrandSlam(ScoutGrandSlamEvent),
ScoutSlamdollLanded(ScoutSlamdollLandedEvent),
ArrowImpact(ArrowImpactEvent),
PlayerJarated(PlayerJaratedEvent),
PlayerJaratedFade(PlayerJaratedFadeEvent),
PlayerShieldBlocked(PlayerShieldBlockedEvent),
PlayerPinned(PlayerPinnedEvent),
PlayerHealedByMedic(PlayerHealedByMedicEvent),
PlayerSappedObject(PlayerSappedObjectEvent),
ItemFound(ItemFoundEvent),
ShowAnnotation(ShowAnnotationEvent),
HideAnnotation(HideAnnotationEvent),
PostInventoryApplication(PostInventoryApplicationEvent),
ControlPointUnlockUpdated(ControlPointUnlockUpdatedEvent),
DeployBuffBanner(DeployBuffBannerEvent),
PlayerBuff(PlayerBuffEvent),
MedicDeath(MedicDeathEvent),
OvertimeNag(OvertimeNagEvent),
TeamsChanged(TeamsChangedEvent),
HalloweenPumpkinGrab(HalloweenPumpkinGrabEvent),
RocketJump(RocketJumpEvent),
RocketJumpLanded(RocketJumpLandedEvent),
StickyJump(StickyJumpEvent),
StickyJumpLanded(StickyJumpLandedEvent),
RocketPackLaunch(RocketPackLaunchEvent),
RocketPackLanded(RocketPackLandedEvent),
MedicDefended(MedicDefendedEvent),
LocalPlayerHealed(LocalPlayerHealedEvent),
PlayerDestroyedPipeBomb(PlayerDestroyedPipeBombEvent),
ObjectDeflected(ObjectDeflectedEvent),
PlayerMvp(PlayerMvpEvent),
RaidSpawnMob(RaidSpawnMobEvent),
RaidSpawnSquad(RaidSpawnSquadEvent),
NavBlocked(NavBlockedEvent),
PathTrackPassed(PathTrackPassedEvent),
NumCappersChanged(NumCappersChangedEvent),
PlayerRegenerate(PlayerRegenerateEvent),
UpdateStatusItem(UpdateStatusItemEvent),
StatsResetRound(StatsResetRoundEvent),
ScoreStatsAccumulatedUpdate(ScoreStatsAccumulatedUpdateEvent),
ScoreStatsAccumulatedReset(ScoreStatsAccumulatedResetEvent),
AchievementEarnedLocal(AchievementEarnedLocalEvent),
PlayerHealed(PlayerHealedEvent),
BuildingHealed(BuildingHealedEvent),
ItemPickup(ItemPickupEvent),
DuelStatus(DuelStatusEvent),
FishNotice(Box<FishNoticeEvent>),
FishNoticeArm(Box<FishNoticeArmEvent>),
SlapNotice(Box<SlapNoticeEvent>),
ThrowableHit(Box<ThrowableHitEvent>),
PumpkinLordSummoned(PumpkinLordSummonedEvent),
PumpkinLordKilled(PumpkinLordKilledEvent),
MerasmusSummoned(MerasmusSummonedEvent),
MerasmusKilled(MerasmusKilledEvent),
MerasmusEscapeWarning(MerasmusEscapeWarningEvent),
MerasmusEscaped(MerasmusEscapedEvent),
EyeballBossSummoned(EyeballBossSummonedEvent),
EyeballBossStunned(EyeballBossStunnedEvent),
EyeballBossKilled(EyeballBossKilledEvent),
EyeballBossKiller(EyeballBossKillerEvent),
EyeballBossEscapeImminent(EyeballBossEscapeImminentEvent),
EyeballBossEscaped(EyeballBossEscapedEvent),
NpcHurt(NpcHurtEvent),
ControlPointTimerUpdated(ControlPointTimerUpdatedEvent),
PlayerHighFiveStart(PlayerHighFiveStartEvent),
PlayerHighFiveCancel(PlayerHighFiveCancelEvent),
PlayerHighFiveSuccess(PlayerHighFiveSuccessEvent),
PlayerBonusPoints(PlayerBonusPointsEvent),
PlayerUpgraded(PlayerUpgradedEvent),
PlayerBuyback(PlayerBuybackEvent),
PlayerUsedPowerUpBottle(PlayerUsedPowerUpBottleEvent),
ChristmasGiftGrab(ChristmasGiftGrabEvent),
PlayerKilledAchievementZone(PlayerKilledAchievementZoneEvent),
PartyUpdated(PartyUpdatedEvent),
PartyPrefChanged(PartyPrefChangedEvent),
PartyCriteriaChanged(PartyCriteriaChangedEvent),
PartyInvitesChanged(PartyInvitesChangedEvent),
PartyQueueStateChanged(PartyQueueStateChangedEvent),
PartyChat(PartyChatEvent),
PartyMemberJoin(PartyMemberJoinEvent),
PartyMemberLeave(PartyMemberLeaveEvent),
MatchInvitesUpdated(MatchInvitesUpdatedEvent),
LobbyUpdated(LobbyUpdatedEvent),
MvmMissionUpdate(MvmMissionUpdateEvent),
RecalculateHolidays(RecalculateHolidaysEvent),
PlayerCurrencyChanged(PlayerCurrencyChangedEvent),
DoomsdayRocketOpen(DoomsdayRocketOpenEvent),
RemoveNemesisRelationships(RemoveNemesisRelationshipsEvent),
MvmCreditBonusWave(MvmCreditBonusWaveEvent),
MvmCreditBonusAll(MvmCreditBonusAllEvent),
MvmCreditBonusAllAdvanced(MvmCreditBonusAllAdvancedEvent),
MvmQuickSentryUpgrade(MvmQuickSentryUpgradeEvent),
MvmTankDestroyedByPlayers(MvmTankDestroyedByPlayersEvent),
MvmKillRobotDeliveringBomb(MvmKillRobotDeliveringBombEvent),
MvmPickupCurrency(MvmPickupCurrencyEvent),
MvmBombCarrierKilled(MvmBombCarrierKilledEvent),
MvmSentryBusterDetonate(MvmSentryBusterDetonateEvent),
MvmScoutMarkedForDeath(MvmScoutMarkedForDeathEvent),
MvmMedicPowerUpShared(MvmMedicPowerUpSharedEvent),
MvmBeginWave(MvmBeginWaveEvent),
MvmWaveComplete(MvmWaveCompleteEvent),
MvmMissionComplete(MvmMissionCompleteEvent),
MvmBombResetByPlayer(MvmBombResetByPlayerEvent),
MvmBombAlarmTriggered(MvmBombAlarmTriggeredEvent),
MvmBombDeployResetByPlayer(MvmBombDeployResetByPlayerEvent),
MvmWaveFailed(MvmWaveFailedEvent),
MvmResetStats(MvmResetStatsEvent),
DamageResisted(DamageResistedEvent),
RevivePlayerNotify(RevivePlayerNotifyEvent),
RevivePlayerStopped(RevivePlayerStoppedEvent),
RevivePlayerComplete(RevivePlayerCompleteEvent),
PlayerTurnedToGhost(PlayerTurnedToGhostEvent),
MedigunShieldBlockedDamage(MedigunShieldBlockedDamageEvent),
MvmAdvWaveCompleteNoGates(MvmAdvWaveCompleteNoGatesEvent),
MvmSniperHeadshotCurrency(MvmSniperHeadshotCurrencyEvent),
MvmMannhattanPit(MvmMannhattanPitEvent),
FlagCarriedInDetectionZone(FlagCarriedInDetectionZoneEvent),
MvmAdvWaveKilledStunRadio(MvmAdvWaveKilledStunRadioEvent),
PlayerDirectHitStun(PlayerDirectHitStunEvent),
MvmSentryBusterKilled(MvmSentryBusterKilledEvent),
UpgradesFileChanged(UpgradesFileChangedEvent),
RdTeamPointsChanged(RdTeamPointsChangedEvent),
RdRulesStateChanged(RdRulesStateChangedEvent),
RdRobotKilled(RdRobotKilledEvent),
RdRobotImpact(RdRobotImpactEvent),
TeamPlayPreRoundTimeLeft(TeamPlayPreRoundTimeLeftEvent),
ParachuteDeploy(ParachuteDeployEvent),
ParachuteHolster(ParachuteHolsterEvent),
KillRefillsMeter(KillRefillsMeterEvent),
RpsTauntEvent(RpsTauntEventEvent),
CongaKill(CongaKillEvent),
PlayerInitialSpawn(PlayerInitialSpawnEvent),
CompetitiveVictory(CompetitiveVictoryEvent),
CompetitiveStatsUpdate(CompetitiveStatsUpdateEvent),
MiniGameWin(MiniGameWinEvent),
SentryOnGoActive(SentryOnGoActiveEvent),
DuckXpLevelUp(DuckXpLevelUpEvent),
QuestLogOpened(QuestLogOpenedEvent),
SchemaUpdated(SchemaUpdatedEvent),
LocalPlayerPickupWeapon(LocalPlayerPickupWeaponEvent),
RdPlayerScorePoints(RdPlayerScorePointsEvent),
DemomanDetStickies(DemomanDetStickiesEvent),
QuestObjectiveCompleted(QuestObjectiveCompletedEvent),
PlayerScoreChanged(PlayerScoreChangedEvent),
KilledCappingPlayer(KilledCappingPlayerEvent),
EnvironmentalDeath(EnvironmentalDeathEvent),
ProjectileDirectHit(ProjectileDirectHitEvent),
PassGet(PassGetEvent),
PassScore(PassScoreEvent),
PassFree(PassFreeEvent),
PassPassCaught(PassPassCaughtEvent),
PassBallStolen(PassBallStolenEvent),
PassBallBlocked(PassBallBlockedEvent),
DamagePrevented(DamagePreventedEvent),
HalloweenBossKilled(HalloweenBossKilledEvent),
EscapedLootIsland(EscapedLootIslandEvent),
TaggedPlayerAsIt(TaggedPlayerAsItEvent),
MerasmusStunned(MerasmusStunnedEvent),
MerasmusPropFound(MerasmusPropFoundEvent),
HalloweenSkeletonKilled(HalloweenSkeletonKilledEvent),
SkeletonKilledQuest(SkeletonKilledQuestEvent),
SkeletonKingKilledQuest(SkeletonKingKilledQuestEvent),
EscapeHell(EscapeHellEvent),
CrossSpectralBridge(CrossSpectralBridgeEvent),
MiniGameWon(MiniGameWonEvent),
RespawnGhost(RespawnGhostEvent),
KillInHell(KillInHellEvent),
HalloweenDuckCollected(HalloweenDuckCollectedEvent),
SpecialScore(SpecialScoreEvent),
TeamLeaderKilled(TeamLeaderKilledEvent),
HalloweenSoulCollected(HalloweenSoulCollectedEvent),
RecalculateTruce(RecalculateTruceEvent),
DeadRingerCheatDeath(DeadRingerCheatDeathEvent),
CrossbowHeal(CrossbowHealEvent),
DamageMitigated(DamageMitigatedEvent),
PayloadPushed(PayloadPushedEvent),
PlayerAbandonedMatch(PlayerAbandonedMatchEvent),
ClDrawline(ClDrawlineEvent),
RestartTimerTime(RestartTimerTimeEvent),
WinLimitChanged(WinLimitChangedEvent),
WinPanelShowScores(WinPanelShowScoresEvent),
TopStreamsRequestFinished(TopStreamsRequestFinishedEvent),
CompetitiveStateChanged(CompetitiveStateChangedEvent),
GlobalWarDataUpdated(GlobalWarDataUpdatedEvent),
StopWatchChanged(StopWatchChangedEvent),
DsStop(DsStopEvent),
DsScreenshot(DsScreenshotEvent),
ShowMatchSummary(ShowMatchSummaryEvent),
ExperienceChanged(ExperienceChangedEvent),
BeginXpLerp(BeginXpLerpEvent),
MatchmakerStatsUpdated(MatchmakerStatsUpdatedEvent),
RematchVotePeriodOver(RematchVotePeriodOverEvent),
RematchFailedToCreate(RematchFailedToCreateEvent),
PlayerRematchChange(PlayerRematchChangeEvent),
PingUpdated(PingUpdatedEvent),
MMStatsUpdated(MMStatsUpdatedEvent),
PlayerNextMapVoteChange(PlayerNextMapVoteChangeEvent),
VoteMapsChanged(VoteMapsChangedEvent),
ProtoDefChanged(ProtoDefChangedEvent),
PlayerDomination(PlayerDominationEvent),
PlayerRocketPackPushed(PlayerRocketPackPushedEvent),
QuestRequest(QuestRequestEvent),
QuestResponse(QuestResponseEvent),
QuestProgress(QuestProgressEvent),
ProjectileRemoved(ProjectileRemovedEvent),
QuestMapDataChanged(QuestMapDataChangedEvent),
GasDousedPlayerIgnited(GasDousedPlayerIgnitedEvent),
QuestTurnInState(QuestTurnInStateEvent),
ItemsAcknowledged(ItemsAcknowledgedEvent),
CapperKilled(CapperKilledEvent),
MainMenuStabilized(MainMenuStabilizedEvent),
WorldStatusChanged(WorldStatusChangedEvent),
HLTVStatus(HLTVStatusEvent),
HLTVCameraman(HLTVCameramanEvent),
HLTVRankCamera(HLTVRankCameraEvent),
HLTVRankEntity(HLTVRankEntityEvent),
HLTVFixed(HLTVFixedEvent),
HLTVChase(HLTVChaseEvent),
HLTVMessage(HLTVMessageEvent),
HLTVTitle(HLTVTitleEvent),
HLTVChat(HLTVChatEvent),
ReplayStartRecord(ReplayStartRecordEvent),
ReplaySessionInfo(ReplaySessionInfoEvent),
ReplayEndRecord(ReplayEndRecordEvent),
ReplayReplaysAvailable(ReplayReplaysAvailableEvent),
ReplayServerError(ReplayServerErrorEvent),
}
#[derive(schemars::JsonSchema)]
pub enum GameEventType {
ServerSpawn,
ServerChangeLevelFailed,
ServerShutdown,
ServerCvar,
ServerMessage,
ServerAddBan,
ServerRemoveBan,
PlayerConnect,
PlayerConnectClient,
PlayerInfo,
PlayerDisconnect,
PlayerActivate,
PlayerSay,
ClientDisconnect,
ClientBeginConnect,
ClientConnected,
ClientFullConnect,
HostQuit,
TeamInfo,
TeamScore,
TeamPlayBroadcastAudio,
PlayerTeam,
PlayerClass,
PlayerDeath,
PlayerHurt,
PlayerChat,
PlayerScore,
PlayerSpawn,
PlayerShoot,
PlayerUse,
PlayerChangeName,
PlayerHintMessage,
BasePlayerTeleported,
GameInit,
GameNewMap,
GameStart,
GameEnd,
RoundStart,
RoundEnd,
GameMessage,
BreakBreakable,
BreakProp,
EntityKilled,
BonusUpdated,
AchievementEvent,
AchievementIncrement,
PhysgunPickup,
FlareIgniteNpc,
HelicopterGrenadePuntMiss,
UserDataDownloaded,
RagdollDissolved,
HLTVChangedMode,
HLTVChangedTarget,
VoteEnded,
VoteStarted,
VoteChanged,
VotePassed,
VoteFailed,
VoteCast,
VoteOptions,
ReplaySaved,
EnteredPerformanceMode,
BrowseReplays,
ReplayYoutubeStats,
InventoryUpdated,
CartUpdated,
StorePriceSheetUpdated,
EconInventoryConnected,
ItemSchemaInitialized,
GcNewSession,
GcLostSession,
IntroFinish,
IntroNextCamera,
PlayerChangeClass,
TfMapTimeRemaining,
TfGameOver,
CtfFlagCaptured,
ControlPointInitialized,
ControlPointUpdateImages,
ControlPointUpdateLayout,
ControlPointUpdateCapping,
ControlPointUpdateOwner,
ControlPointStartTouch,
ControlPointEndTouch,
ControlPointPulseElement,
ControlPointFakeCapture,
ControlPointFakeCaptureMultiplier,
TeamPlayRoundSelected,
TeamPlayRoundStart,
TeamPlayRoundActive,
TeamPlayWaitingBegins,
TeamPlayWaitingEnds,
TeamPlayWaitingAboutToEnd,
TeamPlayRestartRound,
TeamPlayReadyRestart,
TeamPlayRoundRestartSeconds,
TeamPlayTeamReady,
TeamPlayRoundWin,
TeamPlayUpdateTimer,
TeamPlayRoundStalemate,
TeamPlayOvertimeBegin,
TeamPlayOvertimeEnd,
TeamPlaySuddenDeathBegin,
TeamPlaySuddenDeathEnd,
TeamPlayGameOver,
TeamPlayMapTimeRemaining,
TeamPlayTimerFlash,
TeamPlayTimerTimeAdded,
TeamPlayPointStartCapture,
TeamPlayPointCaptured,
TeamPlayPointLocked,
TeamPlayPointUnlocked,
TeamPlayCaptureBroken,
TeamPlayCaptureBlocked,
TeamPlayFlagEvent,
TeamPlayWinPanel,
TeamPlayTeamBalancedPlayer,
TeamPlaySetupFinished,
TeamPlayAlert,
TrainingComplete,
ShowFreezePanel,
HideFreezePanel,
FreezeCamStarted,
LocalPlayerChangeTeam,
LocalPlayerScoreChanged,
LocalPlayerChangeClass,
LocalPlayerRespawn,
BuildingInfoChanged,
LocalPlayerChangeDisguise,
PlayerAccountChanged,
SpyPdaReset,
FlagStatusUpdate,
PlayerStatsUpdated,
PlayingCommentary,
PlayerChargeDeployed,
PlayerBuiltObject,
PlayerUpgradedObject,
PlayerCarryObject,
PlayerDropObject,
ObjectRemoved,
ObjectDestroyed,
ObjectDetonated,
AchievementEarned,
SpecTargetUpdated,
TournamentStateUpdate,
TournamentEnableCountdown,
PlayerCalledForMedic,
PlayerAskedForBall,
LocalPlayerBecameObserver,
PlayerIgnitedInv,
PlayerIgnited,
PlayerExtinguished,
PlayerTeleported,
PlayerHealedMedicCall,
LocalPlayerChargeReady,
LocalPlayerWindDown,
PlayerInvulned,
EscortSpeed,
EscortProgress,
EscortRecede,
GameUIActivated,
GameUIHidden,
PlayerEscortScore,
PlayerHealOnHit,
PlayerStealSandvich,
ShowClassLayout,
ShowVsPanel,
PlayerDamaged,
ArenaPlayerNotification,
ArenaMatchMaxStreak,
ArenaRoundStart,
ArenaWinPanel,
PveWinPanel,
AirDash,
Landed,
PlayerDamageDodged,
PlayerStunned,
ScoutGrandSlam,
ScoutSlamdollLanded,
ArrowImpact,
PlayerJarated,
PlayerJaratedFade,
PlayerShieldBlocked,
PlayerPinned,
PlayerHealedByMedic,
PlayerSappedObject,
ItemFound,
ShowAnnotation,
HideAnnotation,
PostInventoryApplication,
ControlPointUnlockUpdated,
DeployBuffBanner,
PlayerBuff,
MedicDeath,
OvertimeNag,
TeamsChanged,
HalloweenPumpkinGrab,
RocketJump,
RocketJumpLanded,
StickyJump,
StickyJumpLanded,
RocketPackLaunch,
RocketPackLanded,
MedicDefended,
LocalPlayerHealed,
PlayerDestroyedPipeBomb,
ObjectDeflected,
PlayerMvp,
RaidSpawnMob,
RaidSpawnSquad,
NavBlocked,
PathTrackPassed,
NumCappersChanged,
PlayerRegenerate,
UpdateStatusItem,
StatsResetRound,
ScoreStatsAccumulatedUpdate,
ScoreStatsAccumulatedReset,
AchievementEarnedLocal,
PlayerHealed,
BuildingHealed,
ItemPickup,
DuelStatus,
FishNotice,
FishNoticeArm,
SlapNotice,
ThrowableHit,
PumpkinLordSummoned,
PumpkinLordKilled,
MerasmusSummoned,
MerasmusKilled,
MerasmusEscapeWarning,
MerasmusEscaped,
EyeballBossSummoned,
EyeballBossStunned,
EyeballBossKilled,
EyeballBossKiller,
EyeballBossEscapeImminent,
EyeballBossEscaped,
NpcHurt,
ControlPointTimerUpdated,
PlayerHighFiveStart,
PlayerHighFiveCancel,
PlayerHighFiveSuccess,
PlayerBonusPoints,
PlayerUpgraded,
PlayerBuyback,
PlayerUsedPowerUpBottle,
ChristmasGiftGrab,
PlayerKilledAchievementZone,
PartyUpdated,
PartyPrefChanged,
PartyCriteriaChanged,
PartyInvitesChanged,
PartyQueueStateChanged,
PartyChat,
PartyMemberJoin,
PartyMemberLeave,
MatchInvitesUpdated,
LobbyUpdated,
MvmMissionUpdate,
RecalculateHolidays,
PlayerCurrencyChanged,
DoomsdayRocketOpen,
RemoveNemesisRelationships,
MvmCreditBonusWave,
MvmCreditBonusAll,
MvmCreditBonusAllAdvanced,
MvmQuickSentryUpgrade,
MvmTankDestroyedByPlayers,
MvmKillRobotDeliveringBomb,
MvmPickupCurrency,
MvmBombCarrierKilled,
MvmSentryBusterDetonate,
MvmScoutMarkedForDeath,
MvmMedicPowerUpShared,
MvmBeginWave,
MvmWaveComplete,
MvmMissionComplete,
MvmBombResetByPlayer,
MvmBombAlarmTriggered,
MvmBombDeployResetByPlayer,
MvmWaveFailed,
MvmResetStats,
DamageResisted,
RevivePlayerNotify,
RevivePlayerStopped,
RevivePlayerComplete,
PlayerTurnedToGhost,
MedigunShieldBlockedDamage,
MvmAdvWaveCompleteNoGates,
MvmSniperHeadshotCurrency,
MvmMannhattanPit,
FlagCarriedInDetectionZone,
MvmAdvWaveKilledStunRadio,
PlayerDirectHitStun,
MvmSentryBusterKilled,
UpgradesFileChanged,
RdTeamPointsChanged,
RdRulesStateChanged,
RdRobotKilled,
RdRobotImpact,
TeamPlayPreRoundTimeLeft,
ParachuteDeploy,
ParachuteHolster,
KillRefillsMeter,
RpsTauntEvent,
CongaKill,
PlayerInitialSpawn,
CompetitiveVictory,
CompetitiveStatsUpdate,
MiniGameWin,
SentryOnGoActive,
DuckXpLevelUp,
QuestLogOpened,
SchemaUpdated,
LocalPlayerPickupWeapon,
RdPlayerScorePoints,
DemomanDetStickies,
QuestObjectiveCompleted,
PlayerScoreChanged,
KilledCappingPlayer,
EnvironmentalDeath,
ProjectileDirectHit,
PassGet,
PassScore,
PassFree,
PassPassCaught,
PassBallStolen,
PassBallBlocked,
DamagePrevented,
HalloweenBossKilled,
EscapedLootIsland,
TaggedPlayerAsIt,
MerasmusStunned,
MerasmusPropFound,
HalloweenSkeletonKilled,
SkeletonKilledQuest,
SkeletonKingKilledQuest,
EscapeHell,
CrossSpectralBridge,
MiniGameWon,
RespawnGhost,
KillInHell,
HalloweenDuckCollected,
SpecialScore,
TeamLeaderKilled,
HalloweenSoulCollected,
RecalculateTruce,
DeadRingerCheatDeath,
CrossbowHeal,
DamageMitigated,
PayloadPushed,
PlayerAbandonedMatch,
ClDrawline,
RestartTimerTime,
WinLimitChanged,
WinPanelShowScores,
TopStreamsRequestFinished,
CompetitiveStateChanged,
GlobalWarDataUpdated,
StopWatchChanged,
DsStop,
DsScreenshot,
ShowMatchSummary,
ExperienceChanged,
BeginXpLerp,
MatchmakerStatsUpdated,
RematchVotePeriodOver,
RematchFailedToCreate,
PlayerRematchChange,
PingUpdated,
MMStatsUpdated,
PlayerNextMapVoteChange,
VoteMapsChanged,
ProtoDefChanged,
PlayerDomination,
PlayerRocketPackPushed,
QuestRequest,
QuestResponse,
QuestProgress,
ProjectileRemoved,
QuestMapDataChanged,
GasDousedPlayerIgnited,
QuestTurnInState,
ItemsAcknowledged,
CapperKilled,
MainMenuStabilized,
WorldStatusChanged,
HLTVStatus,
HLTVCameraman,
HLTVRankCamera,
HLTVRankEntity,
HLTVFixed,
HLTVChase,
HLTVMessage,
HLTVTitle,
HLTVChat,
ReplayStartRecord,
ReplaySessionInfo,
ReplayEndRecord,
ReplayReplaysAvailable,
ReplayServerError,
Unknown(String),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment