mirror of
https://github.com/edgegamers/Jailbreak.git
synced 2025-12-05 20:40:29 -08:00
Still restrict other weapons in guntoss (#349)
This commit is contained in:
@@ -244,10 +244,10 @@ public class GunToss(BasePlugin plugin, ILastRequestManager manager,
|
||||
|
||||
public override bool PreventEquip(CCSPlayerController player,
|
||||
CCSWeaponBaseVData weapon) {
|
||||
if (weapon.Name != "weapon_deagle") return false;
|
||||
if (State != LRState.ACTIVE) return false;
|
||||
|
||||
if (player.Slot != Prisoner.Slot && player.Slot != Guard.Slot) {
|
||||
if (weapon.Name != "weapon_deagle") return false;
|
||||
var guardGunDist = guardWeapon == null ?
|
||||
float.MaxValue :
|
||||
guardWeapon.AbsOrigin!.DistanceSquared(
|
||||
|
||||
Reference in New Issue
Block a user