mirror of
https://github.com/edgegamers/Jailbreak.git
synced 2025-12-06 04:42:57 -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,
|
public override bool PreventEquip(CCSPlayerController player,
|
||||||
CCSWeaponBaseVData weapon) {
|
CCSWeaponBaseVData weapon) {
|
||||||
if (weapon.Name != "weapon_deagle") return false;
|
|
||||||
if (State != LRState.ACTIVE) return false;
|
if (State != LRState.ACTIVE) return false;
|
||||||
|
|
||||||
if (player.Slot != Prisoner.Slot && player.Slot != Guard.Slot) {
|
if (player.Slot != Prisoner.Slot && player.Slot != Guard.Slot) {
|
||||||
|
if (weapon.Name != "weapon_deagle") return false;
|
||||||
var guardGunDist = guardWeapon == null ?
|
var guardGunDist = guardWeapon == null ?
|
||||||
float.MaxValue :
|
float.MaxValue :
|
||||||
guardWeapon.AbsOrigin!.DistanceSquared(
|
guardWeapon.AbsOrigin!.DistanceSquared(
|
||||||
|
|||||||
Reference in New Issue
Block a user