diff --git a/src/Application/Players/Combos/ComboSystem.cs b/src/Application/Players/Combos/ComboSystem.cs index 8f572c75..1557c98f 100644 --- a/src/Application/Players/Combos/ComboSystem.cs +++ b/src/Application/Players/Combos/ComboSystem.cs @@ -33,6 +33,15 @@ public ComboSystem( _tablistDialog.Add(combo.Name, combo.RequiredCoins.ToString()); } + [Event] + public void OnPlayerKeyStateChange(Player player, Keys newKeys, Keys oldKeys) + { + if (KeyUtils.HasPressed(newKeys, oldKeys, Keys.AnalogLeft)) + { + ShowCombos(player); + } + } + [PlayerCommand("combos")] public async void ShowCombos(Player player) { diff --git a/src/Application/Players/Weapons/WeaponSystem.cs b/src/Application/Players/Weapons/WeaponSystem.cs index 98225b75..4ca9c28f 100644 --- a/src/Application/Players/Weapons/WeaponSystem.cs +++ b/src/Application/Players/Weapons/WeaponSystem.cs @@ -25,6 +25,19 @@ public void OnPlayerRequestSpawn(Player player) ShowWeapons(player); } + [Event] + public void OnPlayerKeyStateChange(Player player, Keys newKeys, Keys oldKeys) + { + if (KeyUtils.HasPressed(newKeys, oldKeys, Keys.Yes)) + { + ShowWeapons(player); + } + else if (KeyUtils.HasPressed(newKeys,oldKeys, Keys.CtrlBack)) + { + ShowWeaponPackage(player); + } + } + [Event] public void OnPlayerSpawn(Player player) {