-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
76 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using CounterStrikeSharp.API; | ||
using CounterStrikeSharp.API.Core; | ||
using Jailbreak.Public.Extensions; | ||
using Jailbreak.Public.Mod.RTD; | ||
|
||
namespace Jailbreak.RTD.Rewards; | ||
|
||
public class CannotLeftKnife(BasePlugin plugin) | ||
: AbstractOnTickReward(plugin) { | ||
private readonly HashSet<int> blockedPlayerIDs = []; | ||
|
||
public override string Name => "Cannot Left-Knife"; | ||
|
||
public override string Description | ||
=> "You will not be able to left-click knife next round."; | ||
|
||
override protected void tick(CCSPlayerController player) { | ||
if (!player.IsReal()) return; | ||
var pawn = player.PlayerPawn.Value; | ||
if (pawn == null || !pawn.IsValid) return; | ||
var weaponServices = pawn.WeaponServices; | ||
if (weaponServices == null) return; | ||
var activeWeapon = weaponServices.ActiveWeapon.Value; | ||
if (activeWeapon == null || !activeWeapon.IsValid) return; | ||
if (activeWeapon.DesignerName != "weapon_knife") return; | ||
activeWeapon.NextPrimaryAttackTick = Server.TickCount + 500; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using CounterStrikeSharp.API.Modules.Utils; | ||
using Jailbreak.Public.Mod.RTD; | ||
|
||
namespace Jailbreak.RTD.Rewards; | ||
|
||
public class FakeBombReward() : WeaponReward("weapon_c4") { | ||
public override string Name => "Fake Bomb"; | ||
|
||
public override string Description | ||
=> "You will spawn with a fake bomb next round."; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters