This commit is contained in:
lifestorm
2024-08-05 18:40:29 +03:00
parent 9f505a0646
commit c6d9b6f580
8044 changed files with 1853472 additions and 21 deletions

View 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

View 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

View 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")

View 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

View 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