mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
16
gamemodes/darkrp/schema/items/ammo/sh_357ammo.lua
Normal file
16
gamemodes/darkrp/schema/items/ammo/sh_357ammo.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = ".357 Magnum Bullets"
|
||||
ITEM.model = "models/items/357ammo.mdl"
|
||||
ITEM.ammo = "357" -- type of the ammo
|
||||
ITEM.ammoAmount = 12 -- amount of the ammo
|
||||
ITEM.description = "A Box that contains %s of .357 Ammo"
|
||||
ITEM.classes = {CLASS_EOW}
|
||||
15
gamemodes/darkrp/schema/items/ammo/sh_ar2ammo.lua
Normal file
15
gamemodes/darkrp/schema/items/ammo/sh_ar2ammo.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Pulse-Rifle Energy"
|
||||
ITEM.model = "models/items/combine_rifle_cartridge01.mdl"
|
||||
ITEM.ammo = "StriderMinigun" -- type of the ammo
|
||||
ITEM.ammoAmount = 30 -- amount of the ammo
|
||||
ITEM.description = "A Cartridge that contains %s of AR2 Ammo"
|
||||
15
gamemodes/darkrp/schema/items/ammo/sh_assaultammo.lua
Normal file
15
gamemodes/darkrp/schema/items/ammo/sh_assaultammo.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Assault Rifle Ammo"
|
||||
ITEM.model = "models/Items/BoxMRounds.mdl"
|
||||
ITEM.ammo = "ar2" -- type of the ammo
|
||||
ITEM.ammoAmount = 30 -- amount of the ammo
|
||||
ITEM.description = "A box that contains %s of assault rifle Ammo"
|
||||
15
gamemodes/darkrp/schema/items/ammo/sh_crossbowammo.lua
Normal file
15
gamemodes/darkrp/schema/items/ammo/sh_crossbowammo.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Crossbow Bolts"
|
||||
ITEM.model = "models/Items/BoxBuckshot.mdl"
|
||||
ITEM.ammo = "XBowBolt" -- type of the ammo
|
||||
ITEM.ammoAmount = 5 -- amount of the ammo
|
||||
ITEM.description = "A Bundle of %s Crossbow Bolts"
|
||||
16
gamemodes/darkrp/schema/items/ammo/sh_pistolammo.lua
Normal file
16
gamemodes/darkrp/schema/items/ammo/sh_pistolammo.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = "9mm Pistol Bullets"
|
||||
ITEM.model = "models/items/boxsrounds.mdl"
|
||||
ITEM.ammo = "pistol" -- type of the ammo
|
||||
ITEM.ammoAmount = 30 -- amount of the ammo
|
||||
ITEM.description = "A Box that contains %s of Pistol Ammo"
|
||||
ITEM.classes = {CLASS_EMP, CLASS_EOW}
|
||||
21
gamemodes/darkrp/schema/items/ammo/sh_rocketammo.lua
Normal file
21
gamemodes/darkrp/schema/items/ammo/sh_rocketammo.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = "RPG Missile"
|
||||
ITEM.model = "models/weapons/w_missile_closed.mdl"
|
||||
ITEM.ammo = "rpg_round" -- type of the ammo
|
||||
ITEM.ammoAmount = 1 -- amount of the ammo
|
||||
ITEM.width = 2
|
||||
ITEM.description = "A Package of %s Rockets"
|
||||
ITEM.iconCam = {
|
||||
ang = Angle(-0.70499622821808, 268.25439453125, 0),
|
||||
fov = 12.085652091515,
|
||||
pos = Vector(7, 200, -2)
|
||||
}
|
||||
15
gamemodes/darkrp/schema/items/ammo/sh_shotgunammo.lua
Normal file
15
gamemodes/darkrp/schema/items/ammo/sh_shotgunammo.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Shotgun Shells"
|
||||
ITEM.model = "models/Items/BoxBuckshot.mdl"
|
||||
ITEM.ammo = "buckshot" -- type of the ammo
|
||||
ITEM.ammoAmount = 15 -- amount of the ammo
|
||||
ITEM.description = "A Box of %s Shotgun Shells"
|
||||
16
gamemodes/darkrp/schema/items/ammo/sh_smg1ammo.lua
Normal file
16
gamemodes/darkrp/schema/items/ammo/sh_smg1ammo.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = "SMG Bullets"
|
||||
ITEM.model = "models/Items/BoxSRounds.mdl"
|
||||
ITEM.ammo = "smg1" -- type of the ammo
|
||||
ITEM.ammoAmount = 45 -- amount of the ammo
|
||||
ITEM.description = "A Box that contains %s of SMG Ammo"
|
||||
ITEM.classes = {CLASS_EMP, CLASS_EOW}
|
||||
16
gamemodes/darkrp/schema/items/ammo/sh_sniperammo.lua
Normal file
16
gamemodes/darkrp/schema/items/ammo/sh_sniperammo.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Sniper Ammo"
|
||||
ITEM.model = "models/items/sniper_round_box.mdl"
|
||||
ITEM.ammo = "sniperpenetratedround" -- type of the ammo
|
||||
ITEM.ammoAmount = 15 -- amount of the ammo
|
||||
ITEM.description = "A Box that contains %s of Sniper Ammo"
|
||||
ITEM.classes = {CLASS_EMP, CLASS_EOW}
|
||||
57
gamemodes/darkrp/schema/items/base/sh_armor_clothes.lua
Normal file
57
gamemodes/darkrp/schema/items/base/sh_armor_clothes.lua
Normal file
@@ -0,0 +1,57 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.base = "base_outfit"
|
||||
ITEM.name = "Armored Clothes"
|
||||
ITEM.description = "A suitcase full of clothes."
|
||||
ITEM.model = Model("models/props_c17/suitcase_passenger_physics.mdl")
|
||||
ITEM.category = "Armored Clothing"
|
||||
ITEM.width = 2
|
||||
ITEM.height = 2
|
||||
ITEM.maxArmor = 0
|
||||
|
||||
if (CLIENT) then
|
||||
function ITEM:PopulateTooltip(tooltip)
|
||||
local panel = tooltip:AddRowAfter("name", "armor")
|
||||
panel:SetBackgroundColor(derma.GetColor("Warning", tooltip))
|
||||
panel:SetText("Armor: " .. (self:GetData("equip") and LocalPlayer():Armor() or self:GetData("armor", self.maxArmor)))
|
||||
panel:SizeToContents()
|
||||
end
|
||||
end
|
||||
|
||||
function ITEM:OnEquipped()
|
||||
self.player:SetArmor(self:GetData("armor", self.maxArmor))
|
||||
end
|
||||
|
||||
function ITEM:OnUnequipped()
|
||||
self:SetData("armor", math.Clamp(self.player:Armor(), 0, self.maxArmor))
|
||||
self.player:SetArmor(0)
|
||||
end
|
||||
|
||||
function ITEM:Repair(amount)
|
||||
self:SetData("armor", math.Clamp(self:GetData("armor") + amount, 0, self.maxArmor))
|
||||
end
|
||||
|
||||
function ITEM:OnLoadout()
|
||||
if (self:GetData("equip")) then
|
||||
self.player:SetArmor(self:GetData("armor", self.maxArmor))
|
||||
end
|
||||
end
|
||||
|
||||
function ITEM:OnSave()
|
||||
if (self:GetData("equip")) then
|
||||
local armor = math.Clamp(self.player:Armor(), 0, self.maxArmor)
|
||||
self:SetData("armor", armor)
|
||||
if (armor != self.player:Armor()) then
|
||||
self.player:SetArmor(armor)
|
||||
end
|
||||
end
|
||||
end
|
||||
128
gamemodes/darkrp/schema/items/base/sh_genericequipable.lua
Normal file
128
gamemodes/darkrp/schema/items/base/sh_genericequipable.lua
Normal file
@@ -0,0 +1,128 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "Generic Equipable Item"
|
||||
ITEM.description = "An item that can be equipped."
|
||||
ITEM.category = "Equipable"
|
||||
ITEM.model = "models/props_lab/box01a.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
|
||||
-- Inventory drawing
|
||||
if (CLIENT) then
|
||||
function ITEM:PaintOver(item, w, h)
|
||||
if (item:GetData("equip")) then
|
||||
surface.SetDrawColor(110, 255, 110, 100)
|
||||
surface.DrawOutlinedRect(1, 1, w - 2, h - 2)
|
||||
end
|
||||
end
|
||||
|
||||
function ITEM:PopulateTooltip(tooltip)
|
||||
if (self:GetData("equip")) then
|
||||
local name = tooltip:GetRow("name")
|
||||
name:SetBackgroundColor(derma.GetColor("Success", tooltip))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function ITEM:Equip(client)
|
||||
self:SetData("equip", true)
|
||||
self:OnEquipped(client)
|
||||
end
|
||||
|
||||
function ITEM:Unequip(client)
|
||||
self:SetData("equip", false)
|
||||
self:OnUnequipped(client)
|
||||
end
|
||||
|
||||
|
||||
ITEM:Hook("drop", function(item)
|
||||
if (item:GetData("equip")) then
|
||||
local character = ix.char.loaded[item.owner]
|
||||
local client = character and character:GetPlayer() or item:GetOwner()
|
||||
|
||||
item.player = client
|
||||
item:Unequip(item:GetOwner())
|
||||
end
|
||||
end)
|
||||
|
||||
ITEM.functions.EquipUn = { -- sorry, for name order.
|
||||
name = "Unequip",
|
||||
icon = "icon16/cross.png",
|
||||
OnRun = function(item)
|
||||
item:Unequip(item.player)
|
||||
|
||||
return false
|
||||
end,
|
||||
OnCanRun = function(item)
|
||||
local client = item.player
|
||||
|
||||
return !IsValid(item.entity) and IsValid(client) and item:GetData("equip") == true and hook.Run("CanPlayerUnequipItem", client, item) != false
|
||||
end
|
||||
}
|
||||
|
||||
ITEM.functions.Equip = {
|
||||
name = "Equip",
|
||||
icon = "icon16/tick.png",
|
||||
OnRun = function(item)
|
||||
local client = item.player
|
||||
local char = client:GetCharacter()
|
||||
local items = char:GetInventory():GetItems()
|
||||
|
||||
if (item.equipableCategory) then
|
||||
for _, v in pairs(items) do
|
||||
if (v.id != item.id) then
|
||||
local itemTable = ix.item.instances[v.id]
|
||||
|
||||
if (v.equipableCategory == item.equipableCategory and itemTable:GetData("equip")) then
|
||||
client:NotifyLocalized(item.equippedNotify or "itemAlreadyEquipped")
|
||||
|
||||
return false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
item:Equip(item.player)
|
||||
|
||||
return false
|
||||
end,
|
||||
OnCanRun = function(item)
|
||||
local client = item.player
|
||||
|
||||
return !IsValid(item.entity) and IsValid(client) and item:GetData("equip") != true and item:CanEquip(client) and hook.Run("CanPlayerEquipItem", client, item) != false
|
||||
end
|
||||
}
|
||||
|
||||
function ITEM:CanTransfer(oldInventory, newInventory)
|
||||
if (newInventory and self:GetData("equip")) then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
function ITEM:OnRemoved()
|
||||
if (self.invID != 0 and self:GetData("equip")) then
|
||||
self.player = self:GetOwner()
|
||||
self:Unequip(self.player)
|
||||
|
||||
self.player = nil
|
||||
end
|
||||
end
|
||||
|
||||
function ITEM:OnEquipped(client) end
|
||||
|
||||
function ITEM:OnUnequipped(client) end
|
||||
|
||||
function ITEM:CanEquip(client)
|
||||
return client:GetCharacter():GetInventory():GetID() == self.invID
|
||||
end
|
||||
15
gamemodes/darkrp/schema/items/base/sh_permits.lua
Normal file
15
gamemodes/darkrp/schema/items/base/sh_permits.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Permit Base"
|
||||
ITEM.model = "models/props_lab/clipboard.mdl"
|
||||
ITEM.description = "A permit for purchasing goods."
|
||||
ITEM.category = "Permits"
|
||||
ITEM.permit = "none"
|
||||
142
gamemodes/darkrp/schema/items/base/sh_tools.lua
Normal file
142
gamemodes/darkrp/schema/items/base/sh_tools.lua
Normal file
@@ -0,0 +1,142 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Tools Base"
|
||||
ITEM.description = "Breakable tools for crafting purposes"
|
||||
ITEM.category = "Tools"
|
||||
ITEM.maxDurability = 8
|
||||
ITEM.isTool = true
|
||||
|
||||
local color_green = Color(100, 255, 100)
|
||||
local color_red = Color(200, 25, 25)
|
||||
|
||||
if (CLIENT) then
|
||||
function ITEM:PaintOver(item, w, h)
|
||||
local maxDurability = item:GetMaxDurability()
|
||||
local durability = item:GetDurability()
|
||||
local width = w - 8
|
||||
local cellWidth = math.Round(width / maxDurability)
|
||||
local color = ix.util.ColorLerp(1 - durability / maxDurability, color_green, color_red)
|
||||
surface.SetDrawColor(color)
|
||||
|
||||
for i = 0, durability - 1 do
|
||||
surface.DrawRect(5 + i * cellWidth, h - 8, cellWidth - 1, 4)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
ITEM.functions.SetMaxDurability = {
|
||||
name = "Set Max Durability",
|
||||
icon = "icon16/wrench.png",
|
||||
OnClick = function(itemTable)
|
||||
local client = itemTable.player
|
||||
Derma_StringRequest("Set Durability", "Enter new maximum durability value", itemTable:GetMaxDurability(), function(text)
|
||||
local amount = tonumber(text)
|
||||
|
||||
if (amount and amount > 0) then
|
||||
netstream.Start("ixSetToolMaxDurability", itemTable:GetID(), math.floor(amount))
|
||||
else
|
||||
client:Notify("Geçersiz sayı")
|
||||
end
|
||||
end)
|
||||
end,
|
||||
OnRun = function(itemTable)
|
||||
return false
|
||||
end,
|
||||
OnCanRun = function(itemTable)
|
||||
if (IsValid(itemTable.entity)) then
|
||||
return false
|
||||
end
|
||||
|
||||
if (!CAMI.PlayerHasAccess(itemTable.player, "Helix - Basic Admin Commands")) then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
}
|
||||
|
||||
ITEM.functions.SetDurability = {
|
||||
name = "Set Durability",
|
||||
icon = "icon16/wrench.png",
|
||||
OnClick = function(itemTable)
|
||||
local client = itemTable.player
|
||||
Derma_StringRequest("Set Durability", "Enter new durability value", itemTable:GetDurability(), function(text)
|
||||
local amount = tonumber(text)
|
||||
|
||||
if (amount and amount > 0 and amount <= itemTable:GetMaxDurability()) then
|
||||
netstream.Start("ixSetToolDurability", itemTable:GetID(), math.floor(amount))
|
||||
else
|
||||
client:Notify("Geçersiz sayı")
|
||||
end
|
||||
end)
|
||||
end,
|
||||
OnRun = function(itemTable)
|
||||
return false
|
||||
end,
|
||||
OnCanRun = function(itemTable)
|
||||
if (IsValid(itemTable.entity)) then
|
||||
return false
|
||||
end
|
||||
|
||||
if (!CAMI.PlayerHasAccess(itemTable.player, "Helix - Basic Admin Commands")) then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
}
|
||||
|
||||
function ITEM:GetDescription()
|
||||
local maxDurability = self:GetMaxDurability()
|
||||
local durability = self:GetDurability()
|
||||
return self.description .. "\n\nDayanıklılık: " .. durability .. "/" .. maxDurability
|
||||
end
|
||||
|
||||
function ITEM:OnInstanced(index, x, y, item)
|
||||
self:SetData("durability", self:GetMaxDurability())
|
||||
end
|
||||
|
||||
function ITEM:DamageDurability(amount)
|
||||
self:SetData("durability", math.max(0, self:GetDurability() - 1))
|
||||
|
||||
if (self:GetDurability() == 0) then
|
||||
local name = self.name
|
||||
if IsValid(self:GetOwner()) then
|
||||
ix.log.Add(self, "itemBreakageDurability", name, self:GetOwner())
|
||||
end
|
||||
|
||||
self:OnBreak()
|
||||
end
|
||||
end
|
||||
|
||||
function ITEM:GetBreakSound()
|
||||
return "weapons/crowbar/crowbar_impact"..math.random(1, 2)..".wav"
|
||||
end
|
||||
|
||||
function ITEM:OnBreak()
|
||||
local breakSound = self:GetBreakSound()
|
||||
|
||||
if (IsValid(self.player)) then
|
||||
self.player:EmitSound(breakSound, 65)
|
||||
elseif (IsValid(self.entity)) then
|
||||
self.entity:EmitSound(breakSound, 65)
|
||||
end
|
||||
|
||||
self:Remove()
|
||||
end
|
||||
|
||||
function ITEM:GetDurability()
|
||||
return self:GetData("durability", self:GetMaxDurability())
|
||||
end
|
||||
|
||||
function ITEM:GetMaxDurability()
|
||||
return self:GetData("maxDurability", self.maxDurability)
|
||||
end
|
||||
@@ -0,0 +1,19 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "Endüstriyel Üniforma MI"
|
||||
ITEM.model = Model("models/props_c17/BriefCase001a.mdl")
|
||||
ITEM.description = "Mark I ağır sanayi giysisi, fabrika işleri için eski Sovyet tasarımlarından türetilmiştir. Kirli dumanlara karşı korunmak için kullanılmasının faydalı olduğu kanıtlanmıştır."
|
||||
ITEM.category = "Clothing - Worker"
|
||||
ITEM.replacement = "models/industrial_uniforms/industrial_uniform.mdl"
|
||||
ITEM.isGasmask = true
|
||||
ITEM.isPPE = true
|
||||
ITEM.isMask = true
|
||||
@@ -0,0 +1,19 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "Endüstriyel Üniforma MII"
|
||||
ITEM.model = Model("models/props_c17/BriefCase001a.mdl")
|
||||
ITEM.description = "Kıyafet aynı kalırken, Mark II genel olarak ek koruyucu katmanları ve çok daha az klostrofobik maskesi için daha uygundur. Hem sporlara hem de zehirlere karşı daha yüksek korumaya sahiptir."
|
||||
ITEM.category = "Clothing - Worker"
|
||||
ITEM.replacement = "models/industrial_uniforms/industrial_uniform2.mdl"
|
||||
ITEM.isGasmask = true
|
||||
ITEM.isPPE = true
|
||||
ITEM.isMask = true
|
||||
18
gamemodes/darkrp/schema/items/outfit/sh_worker_uniform.lua
Normal file
18
gamemodes/darkrp/schema/items/outfit/sh_worker_uniform.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "İşçi Üniforması"
|
||||
ITEM.model = Model("models/props_c17/BriefCase001a.mdl")
|
||||
ITEM.description = "Combine işçi üniforması."
|
||||
ITEM.category = "Clothing - Worker"
|
||||
ITEM.replacement = "models/hlvr/characters/worker/npc/worker_citizen.mdl"
|
||||
ITEM.isGasmask = true
|
||||
ITEM.isPPE = true
|
||||
21
gamemodes/darkrp/schema/items/outfit/sh_worker_uniform2.lua
Normal file
21
gamemodes/darkrp/schema/items/outfit/sh_worker_uniform2.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "Turuncu İşçi Üniforması"
|
||||
ITEM.model = Model("models/props_c17/BriefCase001a.mdl")
|
||||
ITEM.description = "Turuncu Combine işçi üniforması."
|
||||
ITEM.category = "Clothing - Worker"
|
||||
ITEM.replacement = "models/hlvr/characters/worker/npc/worker_citizen.mdl"
|
||||
ITEM.bodyGroups = {
|
||||
["Uniform Variant"] = 1
|
||||
}
|
||||
ITEM.isGasmask = true
|
||||
ITEM.isPPE = true
|
||||
18
gamemodes/darkrp/schema/items/radio/sh_ccr_radio.lua
Normal file
18
gamemodes/darkrp/schema/items/radio/sh_ccr_radio.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "CCR Radio"
|
||||
ITEM.model = Model("models/willardnetworks/skills/handheld_radio.mdl")
|
||||
ITEM.description = "A radio designed to solely tune in with the Combine Conscripted Reserve tactical frequency."
|
||||
ITEM.channel = "ccr-tac"
|
||||
ITEM.category = "Combine"
|
||||
ITEM.KeepOnDeath = true
|
||||
ITEM.colorAppendix = {["red"] = "You need permission from CCR Management to drop or hand this radio to other players."}
|
||||
17
gamemodes/darkrp/schema/items/radio/sh_cmru_radio.lua
Normal file
17
gamemodes/darkrp/schema/items/radio/sh_cmru_radio.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = "CMRU Radyosu"
|
||||
ITEM.model = Model("models/willardnetworks/skills/handheld_radio.mdl")
|
||||
ITEM.description = "Sivil Medikal ve Araştırma Birliği frekansına ayarlanmış bir radyo."
|
||||
ITEM.channel = "cmru"
|
||||
ITEM.category = "Combine"
|
||||
ITEM.KeepOnDeath = true
|
||||
ITEM.colorAppendix = {["red"] = "Bu eşyayı taşımak için CMRU Yönetiminin iznine ihtiyacınız vardır, düşürmeyin veya başka oyunculara vermeyin."}
|
||||
18
gamemodes/darkrp/schema/items/radio/sh_cwu_radio.lua
Normal file
18
gamemodes/darkrp/schema/items/radio/sh_cwu_radio.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "CWU Radio"
|
||||
ITEM.model = Model("models/willardnetworks/skills/handheld_radio.mdl")
|
||||
ITEM.description = "A radio tuned in to the Civil Workers Union Radio Channel."
|
||||
ITEM.channel = "cwu"
|
||||
ITEM.category = "Combine"
|
||||
ITEM.KeepOnDeath = true
|
||||
ITEM.colorAppendix = {["red"] = "You need permission from the CWU Management to carry this item, do not drop or hand it to other players."}
|
||||
24
gamemodes/darkrp/schema/items/sh_broadcasting_device.lua
Normal file
24
gamemodes/darkrp/schema/items/sh_broadcasting_device.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "Yayın Cihazı"
|
||||
ITEM.model = Model("models/props_lab/reciever01b.mdl")
|
||||
ITEM.description = "Şehre mesaj yayınlamak için kullanılan bir cihaz."
|
||||
ITEM.KeepOnDeath = true
|
||||
ITEM.category = "Combine"
|
||||
ITEM.colorAppendix = {["red"] = "Bu öğeyi taşımak için personel izni gereklidir, düşürmeyin veya diğer oyunculara vermek için kullanmayın."}
|
||||
|
||||
if (CLIENT) then
|
||||
function ITEM:PaintOver(item, w, h)
|
||||
surface.SetDrawColor(255, 0, 0, 100)
|
||||
surface.DrawOutlinedRect(1, 1, w - 2, h - 2)
|
||||
end
|
||||
end
|
||||
42
gamemodes/darkrp/schema/items/sh_cmrulock.lua
Normal file
42
gamemodes/darkrp/schema/items/sh_cmrulock.lua
Normal file
@@ -0,0 +1,42 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "CMRU Lock"
|
||||
ITEM.description = "A metal apparatus applied to doors, used by the CMRU."
|
||||
ITEM.model = Model("models/willardnetworks/props_combine/wn_combine_lock.mdl")
|
||||
ITEM.category = "Combine"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 2
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(-0.5, 50, 2),
|
||||
ang = Angle(0, 270, 0),
|
||||
fov = 25.29
|
||||
}
|
||||
|
||||
ITEM.functions.Place = {
|
||||
OnRun = function(itemTable)
|
||||
local client = itemTable.player
|
||||
local data = {}
|
||||
data.start = client:GetShootPos()
|
||||
data.endpos = data.start + client:GetAimVector() * 96
|
||||
data.filter = client
|
||||
|
||||
local lock = scripted_ents.Get("ix_combinelock_cmru"):SpawnFunction(client, util.TraceLine(data))
|
||||
|
||||
if (IsValid(lock)) then
|
||||
client:EmitSound("physics/metal/weapon_impact_soft2.wav", 75, 80)
|
||||
|
||||
ix.combineNotify:AddNotification("NTC:// CMRU Bio-Restrictor deployed", nil, client)
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
}
|
||||
19
gamemodes/darkrp/schema/items/sh_combine_card.lua
Normal file
19
gamemodes/darkrp/schema/items/sh_combine_card.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Combine Kartı"
|
||||
ITEM.model = Model("models/n7/props/n7_cid_card.mdl")
|
||||
ITEM.description = "Combine kilitlerini açmaya olanak sağlayan bir anahtar kartı."
|
||||
ITEM.category = "Combine"
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(-509.64, -427.61, 310.24),
|
||||
ang = Angle(25, 400, 0),
|
||||
fov = 0.59
|
||||
}
|
||||
42
gamemodes/darkrp/schema/items/sh_combinelock.lua
Normal file
42
gamemodes/darkrp/schema/items/sh_combinelock.lua
Normal file
@@ -0,0 +1,42 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "Combine Lock"
|
||||
ITEM.description = "A metal apparatus applied to doors."
|
||||
ITEM.model = Model("models/willardnetworks/props_combine/wn_combine_lock.mdl")
|
||||
ITEM.category = "Combine"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 2
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(-0.5, 50, 2),
|
||||
ang = Angle(0, 270, 0),
|
||||
fov = 25.29
|
||||
}
|
||||
|
||||
ITEM.functions.Place = {
|
||||
OnRun = function(itemTable)
|
||||
local client = itemTable.player
|
||||
local data = {}
|
||||
data.start = client:GetShootPos()
|
||||
data.endpos = data.start + client:GetAimVector() * 96
|
||||
data.filter = client
|
||||
|
||||
local lock = scripted_ents.Get("ix_combinelock"):SpawnFunction(client, util.TraceLine(data))
|
||||
|
||||
if (IsValid(lock)) then
|
||||
client:EmitSound("physics/metal/weapon_impact_soft2.wav", 75, 80)
|
||||
|
||||
ix.combineNotify:AddNotification("NTC:// Bio-Restrictor deployed", nil, client)
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
}
|
||||
42
gamemodes/darkrp/schema/items/sh_conlock.lua
Normal file
42
gamemodes/darkrp/schema/items/sh_conlock.lua
Normal file
@@ -0,0 +1,42 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "Conscript Lock"
|
||||
ITEM.description = "A metal apparatus applied to doors, used by the Conscripts."
|
||||
ITEM.model = Model("models/willardnetworks/props_combine/wn_combine_lock.mdl")
|
||||
ITEM.category = "Combine"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 2
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(-0.5, 50, 2),
|
||||
ang = Angle(0, 270, 0),
|
||||
fov = 25.29
|
||||
}
|
||||
|
||||
ITEM.functions.Place = {
|
||||
OnRun = function(itemTable)
|
||||
local client = itemTable.player
|
||||
local data = {}
|
||||
data.start = client:GetShootPos()
|
||||
data.endpos = data.start + client:GetAimVector() * 96
|
||||
data.filter = client
|
||||
|
||||
local lock = scripted_ents.Get("ix_combinelock_con"):SpawnFunction(client, util.TraceLine(data))
|
||||
|
||||
if (IsValid(lock)) then
|
||||
client:EmitSound("physics/metal/weapon_impact_soft2.wav", 75, 80)
|
||||
|
||||
ix.combineNotify:AddNotification("NTC:// Conscript Bio-Restrictor deployed", nil, client)
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
}
|
||||
42
gamemodes/darkrp/schema/items/sh_cwulock.lua
Normal file
42
gamemodes/darkrp/schema/items/sh_cwulock.lua
Normal file
@@ -0,0 +1,42 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "CWU Lock"
|
||||
ITEM.description = "A metal apparatus applied to doors, used by the CWU."
|
||||
ITEM.model = Model("models/willardnetworks/props_combine/wn_combine_lock.mdl")
|
||||
ITEM.category = "Combine"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 2
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(-0.5, 50, 2),
|
||||
ang = Angle(0, 270, 0),
|
||||
fov = 25.29
|
||||
}
|
||||
|
||||
ITEM.functions.Place = {
|
||||
OnRun = function(itemTable)
|
||||
local client = itemTable.player
|
||||
local data = {}
|
||||
data.start = client:GetShootPos()
|
||||
data.endpos = data.start + client:GetAimVector() * 96
|
||||
data.filter = client
|
||||
|
||||
local lock = scripted_ents.Get("ix_combinelock_cwu"):SpawnFunction(client, util.TraceLine(data))
|
||||
|
||||
if (IsValid(lock)) then
|
||||
client:EmitSound("physics/metal/weapon_impact_soft2.wav", 75, 80)
|
||||
|
||||
ix.combineNotify:AddNotification("NTC:// CWU Bio-Restrictor deployed", nil, client)
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
}
|
||||
42
gamemodes/darkrp/schema/items/sh_doblock.lua
Normal file
42
gamemodes/darkrp/schema/items/sh_doblock.lua
Normal file
@@ -0,0 +1,42 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "DOB Lock"
|
||||
ITEM.description = "A metal apparatus applied to doors, used by the DOB."
|
||||
ITEM.model = Model("models/willardnetworks/props_combine/wn_combine_lock.mdl")
|
||||
ITEM.category = "Combine"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 2
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(-0.5, 50, 2),
|
||||
ang = Angle(0, 270, 0),
|
||||
fov = 25.29
|
||||
}
|
||||
|
||||
ITEM.functions.Place = {
|
||||
OnRun = function(itemTable)
|
||||
local client = itemTable.player
|
||||
local data = {}
|
||||
data.start = client:GetShootPos()
|
||||
data.endpos = data.start + client:GetAimVector() * 96
|
||||
data.filter = client
|
||||
|
||||
local lock = scripted_ents.Get("ix_combinelock_dob"):SpawnFunction(client, util.TraceLine(data))
|
||||
|
||||
if (IsValid(lock)) then
|
||||
client:EmitSound("physics/metal/weapon_impact_soft2.wav", 75, 80)
|
||||
|
||||
ix.combineNotify:AddNotification("NTC:// DOB Bio-Restrictor deployed", nil, client)
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
}
|
||||
42
gamemodes/darkrp/schema/items/sh_moelock.lua
Normal file
42
gamemodes/darkrp/schema/items/sh_moelock.lua
Normal file
@@ -0,0 +1,42 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "MOE Lock"
|
||||
ITEM.description = "A metal apparatus applied to doors, used by the MOE."
|
||||
ITEM.model = Model("models/willardnetworks/props_combine/wn_combine_lock.mdl")
|
||||
ITEM.category = "Combine"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 2
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(-0.5, 50, 2),
|
||||
ang = Angle(0, 270, 0),
|
||||
fov = 25.29
|
||||
}
|
||||
|
||||
ITEM.functions.Place = {
|
||||
OnRun = function(itemTable)
|
||||
local client = itemTable.player
|
||||
local data = {}
|
||||
data.start = client:GetShootPos()
|
||||
data.endpos = data.start + client:GetAimVector() * 96
|
||||
data.filter = client
|
||||
|
||||
local lock = scripted_ents.Get("ix_combinelock_moe"):SpawnFunction(client, util.TraceLine(data))
|
||||
|
||||
if (IsValid(lock)) then
|
||||
client:EmitSound("physics/metal/weapon_impact_soft2.wav", 75, 80)
|
||||
|
||||
ix.combineNotify:AddNotification("NTC:// MOE Bio-Restrictor deployed", nil, client)
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
}
|
||||
21
gamemodes/darkrp/schema/items/sh_relocation_coupon.lua
Normal file
21
gamemodes/darkrp/schema/items/sh_relocation_coupon.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Yeniden Konumlandırma Kuponu"
|
||||
ITEM.description = "Taşınma kuponu. Yeni bir eve biletiniz."
|
||||
ITEM.category = "Junk"
|
||||
ITEM.model = Model("models/willardnetworks/props/rationcoupon.mdl")
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(-0.5, 50, 2),
|
||||
ang = Angle(0, 270, 0),
|
||||
fov = 25.29
|
||||
}
|
||||
21
gamemodes/darkrp/schema/items/sh_trash_biolock.lua
Normal file
21
gamemodes/darkrp/schema/items/sh_trash_biolock.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Kırık Biyokilit"
|
||||
ITEM.description = "Kırılmış bir biyokilit. Ne utanç verici."
|
||||
ITEM.category = "Junk"
|
||||
ITEM.model = Model("models/willardnetworks/props_combine/wn_combine_lock.mdl")
|
||||
ITEM.width = 1
|
||||
ITEM.height = 2
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(-0.5, 50, 2),
|
||||
ang = Angle(0, 270, 0),
|
||||
fov = 25.29
|
||||
}
|
||||
24
gamemodes/darkrp/schema/items/sh_wireless_microphone.lua
Normal file
24
gamemodes/darkrp/schema/items/sh_wireless_microphone.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "Wireless Microphone"
|
||||
ITEM.model = Model("models/props_junk/cardboard_box004a.mdl")
|
||||
ITEM.description = "A microphone that is wirelessly connected to nearby broadcasting systems."
|
||||
ITEM.KeepOnDeath = true
|
||||
ITEM.category = "Combine"
|
||||
ITEM.colorAppendix = {["red"] = "You need permission from staff to carry this item, do not drop or hand it to other players."}
|
||||
|
||||
if (CLIENT) then
|
||||
function ITEM:PaintOver(item, w, h)
|
||||
surface.SetDrawColor(255, 0, 0, 100)
|
||||
surface.DrawOutlinedRect(1, 1, w - 2, h - 2)
|
||||
end
|
||||
end
|
||||
77
gamemodes/darkrp/schema/items/stackable/sh_zip_tie.lua
Normal file
77
gamemodes/darkrp/schema/items/stackable/sh_zip_tie.lua
Normal file
@@ -0,0 +1,77 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "Lastik Kelepçe"
|
||||
ITEM.description = "İnsanları kısıtlamak için kullanılan turuncu bir lastik kelepçe."
|
||||
ITEM.price = 80
|
||||
ITEM.model = "models/items/crossbowrounds.mdl"
|
||||
ITEM.category = "Combine"
|
||||
ITEM.maxStackSize = 10
|
||||
ITEM.factions = {FACTION_CP, FACTION_OTA, FACTION_RESISTANCE}
|
||||
ITEM.functions.Use = {
|
||||
OnRun = function(itemTable)
|
||||
local client = itemTable.player
|
||||
local data = {}
|
||||
data.start = client:GetShootPos()
|
||||
data.endpos = data.start + client:GetAimVector() * 96
|
||||
data.filter = client
|
||||
local target = util.TraceLine(data).Entity
|
||||
local ragdoll = nil
|
||||
|
||||
if (target:IsRagdoll() and target.ixPlayer) then
|
||||
ragdoll = target
|
||||
target = target.ixPlayer
|
||||
end
|
||||
|
||||
if (IsValid(target) and target:IsPlayer() and target:GetCharacter() and !target:GetNetVar("tying") and !target:IsRestricted()) then
|
||||
itemTable.bBeingUsed = true
|
||||
|
||||
client:SetAction("@tying", 5)
|
||||
|
||||
client:DoStaredAction(ragdoll or target, function()
|
||||
itemTable.bBeingUsed = false
|
||||
|
||||
if (!(ix.fights and target:GetFight())) then
|
||||
target:SetRestricted(true)
|
||||
target:SetNetVar("tying")
|
||||
target:NotifyLocalized("fTiedUp")
|
||||
client:NotifyLocalized("Hedefe başarıyla bağlandı.")
|
||||
target:SetWalkSpeed(target:GetWalkSpeed()/3)
|
||||
itemTable:Remove()
|
||||
else
|
||||
target:SetAction()
|
||||
target:SetNetVar("tying")
|
||||
end
|
||||
end, 5, function()
|
||||
client:SetAction()
|
||||
|
||||
target:SetAction()
|
||||
target:SetNetVar("tying")
|
||||
|
||||
itemTable.bBeingUsed = false
|
||||
end)
|
||||
|
||||
target:SetNetVar("tying", true)
|
||||
target:SetAction("@fBeingTied", 5)
|
||||
else
|
||||
itemTable.player:NotifyLocalized("plyNotValid")
|
||||
end
|
||||
|
||||
return false
|
||||
end,
|
||||
OnCanRun = function(itemTable)
|
||||
return !IsValid(itemTable.entity) or itemTable.bBeingUsed
|
||||
end
|
||||
}
|
||||
|
||||
function ITEM:CanTransfer(inventory, newInventory)
|
||||
return !self.bBeingUsed
|
||||
end
|
||||
24
gamemodes/darkrp/schema/items/weapons/sh_rpg.lua
Normal file
24
gamemodes/darkrp/schema/items/weapons/sh_rpg.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "RPG-7"
|
||||
ITEM.description = "A un-guided rocket launcher capable of blowing up vehicles... as one might guess. Just try to aim better without a laser guide to help your bad aim."
|
||||
ITEM.model = "models/vj_weapons/w_ins_rpg7.mdl"
|
||||
ITEM.class = "weapon_rpg"
|
||||
ITEM.weaponCategory = "primary"
|
||||
ITEM.exRender = true
|
||||
ITEM.width = 5
|
||||
ITEM.height = 2
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(5.22, -0.11, 199.93),
|
||||
ang = Angle(88.2, -183.11, 0),
|
||||
fov = 2.29
|
||||
}
|
||||
25
gamemodes/darkrp/schema/items/weapons/sh_stunstick.lua
Normal file
25
gamemodes/darkrp/schema/items/weapons/sh_stunstick.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "CV-2000 Şok Çubuğu"
|
||||
ITEM.description = "Koyu gri renkte kaplanmış, üst kısmında birkaç bobin bulunan kısa bir çubuk."
|
||||
ITEM.model = "models/weapons/w_stunbaton.mdl"
|
||||
ITEM.class = "ix_stunstick"
|
||||
ITEM.weaponCategory = "melee"
|
||||
ITEM.exRender = true
|
||||
ITEM.colorAppendix = {["red"] = "Elektrik ayarını PVP'de açmak yasaktır!"}
|
||||
ITEM.width = 1
|
||||
ITEM.height = 3
|
||||
ITEM.iconCam = {
|
||||
pos = Vector(5.22, -0.11, 199.93),
|
||||
ang = Angle(88.2, -183.11, 0),
|
||||
fov = 2.29
|
||||
}
|
||||
Reference in New Issue
Block a user