mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
17
gamemodes/darkrp/plugins/stalkers/cl_plugin.lua
Normal file
17
gamemodes/darkrp/plugins/stalkers/cl_plugin.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/
|
||||
--]]
|
||||
|
||||
local PLUGIN = PLUGIN
|
||||
|
||||
function PLUGIN:PlayerFootstep(client, position, foot, soundName, volume)
|
||||
if (client:Team() == FACTION_STALKER) then
|
||||
client:EmitSound("npc/stalker/stalker_footstep_" .. (foot == 0 and "left" or "right") .. math.random(1, 2) .. ".wav")
|
||||
end
|
||||
end
|
||||
78
gamemodes/darkrp/plugins/stalkers/factions/sh_stalker.lua
Normal file
78
gamemodes/darkrp/plugins/stalkers/factions/sh_stalker.lua
Normal file
@@ -0,0 +1,78 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
FACTION.name = "Stalker"
|
||||
FACTION.description = ""
|
||||
FACTION.color = Color(92, 92, 92)
|
||||
FACTION.models = {"models/stalker.mdl"}
|
||||
FACTION.maxHealth = 70
|
||||
FACTION.armor = 0
|
||||
|
||||
FACTION.isDefault = false
|
||||
FACTION.noAppearances = true
|
||||
FACTION.noBackground = true
|
||||
FACTION.noBeard = true
|
||||
FACTION.noGender = true
|
||||
FACTION.noNeeds = true
|
||||
FACTION.noGenetics = true
|
||||
FACTION.ReadOptionDisabled = true
|
||||
FACTION.noAttributes = true
|
||||
FACTION.noNeeds = true
|
||||
FACTION.noGas = true
|
||||
FACTION.noTBC = true
|
||||
FACTION.isCombineFaction = true
|
||||
|
||||
FACTION.allowForcefieldControl = true
|
||||
FACTION.allowCombineDoors = true
|
||||
FACTION.allowCombineLock = true
|
||||
FACTION.alwaysFlashlight = true
|
||||
|
||||
FACTION.factionImage = "willardnetworks/faction_imgs/stalker.png"
|
||||
FACTION.selectImage = "willardnetworks/faction_imgs/stalker.png"
|
||||
FACTION.inventoryImage = "materials/willardnetworks/tabmenu/inventory/backgrounds/nexus.png"
|
||||
|
||||
FACTION.npcRelations = {
|
||||
["npc_combine_camera"] = D_LI,
|
||||
["npc_turret_ceiling"] = D_LI,
|
||||
["npc_cscanner"] = D_LI,
|
||||
["npc_manhack"] = D_LI,
|
||||
["npc_rollermine"] = D_LI,
|
||||
["npc_clawscanner"] = D_LI,
|
||||
["npc_turret_floor"] = D_LI,
|
||||
|
||||
["npc_combinedropship"] = D_LI,
|
||||
["CombineElite"] = D_LI,
|
||||
["npc_combinegunship"] = D_LI,
|
||||
["npc_combine_s"] = D_LI,
|
||||
["npc_hunter"] = D_LI,
|
||||
["npc_helicopter"] = D_LI,
|
||||
["CombinePrison"] = D_LI,
|
||||
["PrisonShotgunner"] = D_LI,
|
||||
["ShotgunSoldier"] = D_LI,
|
||||
["npc_stalker"] = D_LI,
|
||||
["npc_strider"] = D_LI,
|
||||
}
|
||||
|
||||
function FACTION:OnSpawn(client)
|
||||
timer.Simple(0.1, function()
|
||||
client:SetRunSpeed(ix.config.Get("walkSpeed") * 0.5)
|
||||
client:SetWalkSpeed(ix.config.Get("walkSpeed") * 0.5)
|
||||
client:SetArmor(self.armor)
|
||||
client:SetMaxArmor(self.armor)
|
||||
|
||||
-- client:StripWeapons()
|
||||
end)
|
||||
end
|
||||
|
||||
function FACTION:GetDefaultName(client)
|
||||
return "CMB:STALKER-" .. Schema:ZeroNumber(math.random(1, 99), 2), true
|
||||
end
|
||||
|
||||
FACTION_STALKER = FACTION.index
|
||||
34
gamemodes/darkrp/plugins/stalkers/sh_anims.lua
Normal file
34
gamemodes/darkrp/plugins/stalkers/sh_anims.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
local PLUGIN = PLUGIN
|
||||
|
||||
ix.anim.stalker = {
|
||||
normal = {
|
||||
[ACT_MP_STAND_IDLE] = {ACT_IDLE, ACT_IDLE},
|
||||
[ACT_MP_CROUCH_IDLE] = {ACT_IDLE, ACT_IDLE},
|
||||
[ACT_MP_WALK] = {ACT_WALK, ACT_WALK},
|
||||
[ACT_MP_CROUCHWALK] = {ACT_WALK, ACT_WALK},
|
||||
[ACT_MP_RUN] = {ACT_WALK, ACT_WALK},
|
||||
[ACT_LAND] = {ACT_IDLE, ACT_IDLE},
|
||||
attack = ACT_MELEE_ATTACK1
|
||||
},
|
||||
smg = {
|
||||
[ACT_MP_STAND_IDLE] = {ACT_IDLE, ACT_IDLE},
|
||||
[ACT_MP_CROUCH_IDLE] = {ACT_IDLE, ACT_IDLE},
|
||||
[ACT_MP_WALK] = {ACT_WALK, ACT_WALK},
|
||||
[ACT_MP_CROUCHWALK] = {ACT_WALK, ACT_WALK},
|
||||
[ACT_MP_RUN] = {ACT_WALK, ACT_WALK},
|
||||
[ACT_LAND] = {ACT_IDLE, ACT_IDLE},
|
||||
attack = ACT_MELEE_ATTACK1
|
||||
},
|
||||
}
|
||||
|
||||
ix.anim.SetModelClass("models/stalker.mdl", "stalker")
|
||||
25
gamemodes/darkrp/plugins/stalkers/sh_plugin.lua
Normal file
25
gamemodes/darkrp/plugins/stalkers/sh_plugin.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/
|
||||
--]]
|
||||
|
||||
local PLUGIN = PLUGIN
|
||||
|
||||
PLUGIN.name = "Stalkers Faction"
|
||||
PLUGIN.author = "Syn"
|
||||
PLUGIN.description = "Adds Half-Life 2 stalkers faction"
|
||||
|
||||
ix.util.Include("cl_plugin.lua")
|
||||
ix.util.Include("sv_hooks.lua")
|
||||
ix.util.Include("sh_anims.lua")
|
||||
|
||||
function PLUGIN:InitializedPlugins()
|
||||
if (ix.plugin.list.inventoryslosts and FACTION_STALKER) then
|
||||
ix.plugin.list.inventoryslots.noEquipFactions[FACTION_STALKER] = true
|
||||
end
|
||||
end
|
||||
32
gamemodes/darkrp/plugins/stalkers/sv_hooks.lua
Normal file
32
gamemodes/darkrp/plugins/stalkers/sv_hooks.lua
Normal file
@@ -0,0 +1,32 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
local PLUGIN = PLUGIN
|
||||
|
||||
function PLUGIN:PlayerTick(client)
|
||||
if (client:Team() == FACTION_STALKER) then
|
||||
if (!client.nextSound or (CurTime() >= client.nextSound)) then
|
||||
client.nextSound = CurTime() + math.random(60, 180)
|
||||
client:EmitSound("npc/stalker/breathing3.wav", 65)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function PLUGIN:GetPlayerPainSound(client)
|
||||
if (client:Team() == FACTION_STALKER) then
|
||||
return ""
|
||||
end
|
||||
end
|
||||
|
||||
function PLUGIN:GetPlayerDeathSound(client)
|
||||
if (client:Team() == FACTION_STALKER) then
|
||||
return ""
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user