From 2b94a164b53d15ab2f65cdde8e0f16c1e69ab340 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Wed, 12 Jan 2022 01:58:51 +0700 Subject: [PATCH] Add `GetTeamColor()` method to `EPlayer` --- sources/Players/EPlayer.uc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sources/Players/EPlayer.uc b/sources/Players/EPlayer.uc index 7b0217d..b098478 100644 --- a/sources/Players/EPlayer.uc +++ b/sources/Players/EPlayer.uc @@ -141,6 +141,18 @@ public function bool SameAs(EInterface other) return (controller.Get() == otherController.Get()); } +/** + * Returns color of the caller `EPlayer`'s current team. + * + * Such color is supposed to be defined even for a single-team modes. + * + * @return `Color` structure with the `EPlayer`'s current color. + */ +public final function Color GetTeamColor() +{ + return _.color.Red; +} + /** * Returns location of the caller `EPlayer`. *