fix(hud): show damage notices for the controlled vehicle
Keep the affected unit on the native barrel and breech notification paths. Filter only the local-host notices, using the stock current-control lookup.
This commit is contained in:
1 parent
70c4ee4880
commit
b4af034756
9 files changed
+219
No files matched your search
@@ -39,6 +39,7 @@ typedef struct LmpValueSpec {
|
||||
#define EVENTS "local_mp_events"
|
||||
#define NUKE "local_mp_nuke"
|
||||
#define SUPPORT "local_mp_support"
|
||||
#define DAMAGE_NOTICES "local_mp_damage_notifications"
|
||||
|
||||
static const LmpValueSpec SPECS[] = {
|
||||
A(CORE, "do_respawn_player", do_respawn_player), O(CORE, "do_respawn_player.app_score_rules", app_score_rules),
|
||||
@@ -141,6 +142,14 @@ static const LmpValueSpec SPECS[] = {
|
||||
|
||||
A(SUPPORT, "set_controlled_unit", set_controlled_unit), O(SUPPORT, "mplayer_support_unit.eid", mp_support_unit_eid),
|
||||
O(SUPPORT, "mplayer_support_unit.unit", mp_support_unit_ptr),
|
||||
|
||||
A(DAMAGE_NOTICES, "barrel_damage", barrel_damage), O(DAMAGE_NOTICES, "barrel_damage.unit", barrel_unit_ref),
|
||||
A(DAMAGE_NOTICES, "barrel_damage_notice.deliver", barrel_notice_deliver),
|
||||
O(DAMAGE_NOTICES, "barrel_damage_notice.id", barrel_notice_id),
|
||||
A(DAMAGE_NOTICES, "breech_fire_update", breech_fire_update), O(DAMAGE_NOTICES, "breech_fire_update.unit", breech_unit),
|
||||
A(DAMAGE_NOTICES, "breech_damage_notice.deliver", breech_notice_deliver),
|
||||
O(DAMAGE_NOTICES, "breech_damage_notice.id", breech_notice_id),
|
||||
A(DAMAGE_NOTICES, "mplayer_controlled_unit", mplayer_controlled_unit),
|
||||
};
|
||||
|
||||
static void store(const LmpValueSpec *spec, int64_t value, uint8_t *base)
|
||||
|
||||
Reference in new issue
Block a user