Compare commits

...

16 Commits

Author SHA1 Message Date
Isaac
0eb8a49ca0 Fix AutoRTD permission check (#196) 2025-12-01 19:36:25 -08:00
MSWS
496fd75ca9 +semver:patch 2025-12-01 19:33:55 -08:00
MSWS
1765a87039 fix: Ensure player has required flags for auto rtds (resolves #193) 2025-12-01 19:33:49 -08:00
Isaac
7a9ad3b053 Balance Tweaks, Fix Poison Shots (#195)
* Fixed poison shots so they work with non-pistols
* Reduced silent round weight
* Lowered camo cost from 75 to 65
* Raised armor cost from 60 to 75
2025-12-01 19:31:20 -08:00
MSWS
a66a4cb03c +semver:patch 2025-12-01 19:29:36 -08:00
MSWS
0d816facba update: Increase armor cost 60 -> 75 2025-12-01 19:26:34 -08:00
MSWS
43f550779a update: Decrease camo cost 75 -> 65 2025-12-01 19:25:52 -08:00
MSWS
6e4d957636 update: Decrease silent round probability 2025-12-01 19:23:04 -08:00
Isaac
8d9506a1cc fix: Additial special round fixes +semver:patch (#189) 2025-11-10 16:22:00 -08:00
Isaac
042c48c0a6 Fix logic of round conflicts (#188) 2025-11-10 15:34:58 -08:00
Isaac
c40c89b624 Fix Vanilla Round Inversion (#187) 2025-11-10 14:48:30 -08:00
Isaac
1df2722ce7 Force rebuild for new major 2.0.0 (#186) 2025-11-10 14:39:02 -08:00
Isaac
9079fe6c41 BREAKING CHANGES: New Special Rounds and Updates +semver:major (#185)
## Shop
- Added the ability for multiple special rounds to occur at once
- Added Rich and Low Grav Rounds
- Overhauled the Poison Gun
  - Only pistol shots count towards poison bullet usage
  - Poison bullets will be silent when shot
- Item descriptions will now be printed upon purchase

## Fixes
- Reduced the volume of the Special Round cue
- Increased the strictness of Karma
- Miscellaneous bug fixes
2025-11-10 14:15:29 -08:00
Isaac
2b04486e65 feat: Add tripwire defuse reward (#179) 2025-11-08 22:33:44 -08:00
Isaac
3b97c77065 +semver:patch (#178) 2025-11-08 22:13:00 -08:00
Isaac
83715fff1f Station Stacking and Round Start Sound Cue
- Added special round start sound cue
- Multiple Damage / Hurt Stations will now stack their effects
2025-11-08 22:04:01 -08:00
5 changed files with 9 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ namespace TTT.CS2.Configs.ShopItems;
public class CS2CamoConfig : IStorage<CamoConfig>, IPluginModule {
public static readonly FakeConVar<int> CV_PRICE = new(
"css_ttt_shop_camo_price", "Price of the Camo item", 75,
"css_ttt_shop_camo_price", "Price of the Camo item", 65,
ConVarFlags.FCVAR_NONE, new RangeValidator<int>(0, 10000));
public static readonly FakeConVar<float> CV_CAMO_VISIBILITY = new(

View File

@@ -25,6 +25,9 @@ public class AutoRTDCommand(IServiceProvider provider) : ICommand, IListener {
private readonly IMsgLocalizer localizer =
provider.GetRequiredService<IMsgLocalizer>();
private readonly IPermissionManager perms =
provider.GetRequiredService<IPermissionManager>();
private readonly Dictionary<string, bool> playerStatuses = new();
private ICookie? autoRtdCookie;
public string Id => "autortd";
@@ -75,9 +78,10 @@ public class AutoRTDCommand(IServiceProvider provider) : ICommand, IListener {
[UsedImplicitly]
[EventHandler]
public void OnRoundStart(GameInitEvent ev) {
var messenger = provider.GetRequiredService<IMessenger>();
Task.Run(async () => {
foreach (var player in finder.GetOnline()) {
if (!perms.HasFlags(player, RequiredFlags)) continue;
if (!playerStatuses.TryGetValue(player.Id, out var status)) {
await fetchCookie(player);
status = playerStatuses.GetValueOrDefault(player.Id, false);

View File

@@ -1,7 +1,7 @@
namespace ShopAPI.Configs;
public record ArmorConfig : ShopItemConfig {
public override int Price { get; init; } = 60;
public override int Price { get; init; } = 75;
public int Armor { get; init; } = 100;
public bool Helmet { get; init; } = true;
}

View File

@@ -1,6 +1,6 @@
namespace ShopAPI.Configs;
public record CamoConfig : ShopItemConfig {
public override int Price { get; init; } = 75;
public override int Price { get; init; } = 65;
public float CamoVisibility { get; init; } = 0.6f;
}

View File

@@ -1,5 +1,5 @@
namespace SpecialRoundAPI.Configs;
public record SilentRoundConfig : SpecialRoundConfig {
public override float Weight { get; init; } = 0.5f;
public override float Weight { get; init; } = 0.2f;
}