From c858db7ca76dede2db1993f208082c1a80465877 Mon Sep 17 00:00:00 2001 From: Leonheart <33399712+bleonheart@users.noreply.github.com> Date: Mon, 20 May 2024 18:14:59 +0100 Subject: [PATCH] Updated Ammo & TXT --- skeleton/schema/items/universalammo.lua | 8 +++----- skeleton/skeleton.txt | 5 ++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/skeleton/schema/items/universalammo.lua b/skeleton/schema/items/universalammo.lua index 3472ce5..2b3e216 100644 --- a/skeleton/schema/items/universalammo.lua +++ b/skeleton/schema/items/universalammo.lua @@ -1,6 +1,4 @@ - - ---- Structure of UniversalAmmunition Item. +--- Structure of UniversalAmmunition Item. -- @items UniversalAmmunition --- This table defines the fields of the universal ammo item. @@ -20,7 +18,7 @@ ITEM.desc = "A box that contains sixty bullets.\nUse items with the gun you want ITEM.model = "models/Items/BoxSRounds.mdl" ITEM.ammoAmount = 60 ITEM.category = "Ammunition" -ITEM.blacklistedWeapons = {""} +ITEM.blacklistedWeapons = {"weapon_crowbar", "weapon_stunstick", "weapon_physcannon", "weapon_physgun", "weapon_bugbait", "gmod_tool", "gmod_camera", "weapon_extinguisher", "swep_flamethrower", "weapon_gascan", "weapon_midascannon", "riotshield", "spiderman_swep", "m_cyclonetrap", "m_electrobolt", "m_incinerate", "m_insectswarm", "m_winterblast", "bb_css_knife", "weapon_axe", "weapon_bat", "weapon_keyboard", "weapon_shovel", "weapon_sledgehammer", "weapon_fists", "cutter", "weapon_glowstick", "weapon_glowstick_blu", "weapon_glowstick_lblu", "weapon_glowstick_rng", "weapon_glowstick_pnk", "weapon_glowstick_red", "weapon_glowstick_wht", "weapon_glowstick_ylw", "m9k_ied_detonator", "lia_hands", "lia_keys", "super_aug"} ITEM.functions.use = { name = "Load", tip = "useTip", @@ -34,7 +32,7 @@ ITEM.functions.use = { return false end - if table.hasvalue(item.allowedWeapons, weapon:GetClass()) then + if table.hasvalue(item.blacklistedWeapons, weapon:GetClass()) then client:PrintMessage(HUD_PRINTTALK, "This weapon may not be resupplied.") client:EmitSound("Player.DenyWeaponSelection") return false diff --git a/skeleton/skeleton.txt b/skeleton/skeleton.txt index 4d1e3c8..02796e5 100644 --- a/skeleton/skeleton.txt +++ b/skeleton/skeleton.txt @@ -1,7 +1,6 @@ -"skeleton" +"skeleton" { "base" "lilia" - "title" "skeleton" + "title" "Skeleton" "author" "Leonheart" - "category" "rp" } \ No newline at end of file