Unable to modify ZS for my server
-
One day I decided to try to USE A PROGRAM TO TAKE FILES OUT OF A GMA FILE SO I COULD MODIFY THEM FOR USE ON MY SERVER ZS to customize it for me and my friends (only 4 of us)
and it didn’t workSo today I tried again, I tried to modify existing weapons, add a custom weapon, or just add a weapon to the worth menu, but nothing worked at all.
I tested a duplicate of owens handgun and changed nearly everything on it and tried adding it, but nothing.Under the worth area of sh_options:
GM:AddStartingItem(“shootthing”, “‘Test’ Pistol”, nil, ITEMCAT_GUNS, 40, “weapon_zs_shootthing”)weapon_zs_shootthing.lua
AddCSLuaFile() if CLIENT then SWEP.PrintName = "'Test' Pistol" SWEP.Slot = 1 SWEP.SlotPos = 0 SWEP.ViewModelFlip = false SWEP.ViewModelFOV = 60 SWEP.HUD3DBone = "ValveBiped.square" SWEP.HUD3DPos = Vector(1.1, 0.25, -2) SWEP.HUD3DScale = 0.015 end SWEP.Base = "weapon_zs_base" SWEP.HoldType = "pistol" SWEP.ViewModel = "models/weapons/c_pistol.mdl" SWEP.WorldModel = "models/weapons/w_pistol.mdl" SWEP.UseHands = true SWEP.ReloadSound = Sound("Weapon_Pistol.Reload") SWEP.Primary.Sound = Sound("Weapon_Pistol.NPC_Single") SWEP.Primary.Damage = 12 SWEP.Primary.NumShots = 2 SWEP.Primary.Delay = 0.01 SWEP.Primary.ClipSize = 14 SWEP.Primary.Automatic = true SWEP.Primary.Ammo = "pistol" GAMEMODE:SetupDefaultClip(SWEP.Primary) SWEP.ConeMax = 0.08 SWEP.ConeMin = 0.04 SWEP.IronSightsPos = Vector(-5.95, 3, 2.75) SWEP.IronSightsAng = Vector(-0.15, -1, 2)
If anyone can give me a pointer I’d be glad.
(What I’m thinking is that there is some weird thing where it stuffs every file in the weapons directory into to run every weapon lua there is and I’m missing it somewhere)
-
One day I decided to try to USE A PROGRAM TO TAKE FILES OUT OF A GMA FILE SO I COULD MODIFY THEM FOR USE ON MY SERVER ZS to customize it for me and my friends (only 4 of us)
and it didn’t workSo today I tried again, I tried to modify existing weapons, add a custom weapon, or just add a weapon to the worth menu, but nothing worked at all.
I tested a duplicate of owens handgun and changed nearly everything on it and tried adding it, but nothing.Under the worth area of sh_options:
GM:AddStartingItem(“shootthing”, “‘Test’ Pistol”, nil, ITEMCAT_GUNS, 40, “weapon_zs_shootthing”)weapon_zs_shootthing.lua
AddCSLuaFile() if CLIENT then SWEP.PrintName = "'Test' Pistol" SWEP.Slot = 1 SWEP.SlotPos = 0 SWEP.ViewModelFlip = false SWEP.ViewModelFOV = 60 SWEP.HUD3DBone = "ValveBiped.square" SWEP.HUD3DPos = Vector(1.1, 0.25, -2) SWEP.HUD3DScale = 0.015 end SWEP.Base = "weapon_zs_base" SWEP.HoldType = "pistol" SWEP.ViewModel = "models/weapons/c_pistol.mdl" SWEP.WorldModel = "models/weapons/w_pistol.mdl" SWEP.UseHands = true SWEP.ReloadSound = Sound("Weapon_Pistol.Reload") SWEP.Primary.Sound = Sound("Weapon_Pistol.NPC_Single") SWEP.Primary.Damage = 12 SWEP.Primary.NumShots = 2 SWEP.Primary.Delay = 0.01 SWEP.Primary.ClipSize = 14 SWEP.Primary.Automatic = true SWEP.Primary.Ammo = "pistol" GAMEMODE:SetupDefaultClip(SWEP.Primary) SWEP.ConeMax = 0.08 SWEP.ConeMin = 0.04 SWEP.IronSightsPos = Vector(-5.95, 3, 2.75) SWEP.IronSightsAng = Vector(-0.15, -1, 2)
If anyone can give me a pointer I’d be glad.
(What I’m thinking is that there is some weird thing where it stuffs every file in the weapons directory into to run every weapon lua there is and I’m missing it somewhere)
-
-
-
“Decompile”
-
Do you also extract .rar files?
-
-
A GMA file is a steam workshop file that combines all of the gamemode files into one nice compact file. If you download ZS through SVN you can get the gamemode files themselves and you don’t have to use a program to decompile the GMA file. The gamemode files are mostly .lua files which can be edited with wordpad.
Are you running the workshop ZS version (GMA) or are you running it from the gamemode files extracted from the GMA file?
-
A GMA file is a steam workshop file that combines all of the gamemode files into one nice compact file. If you download ZS through SVN you can get the gamemode files themselves and you don’t have to use a program to decompile the GMA file. The gamemode files are mostly .lua files which can be edited with wordpad.
Are you running the workshop ZS version (GMA) or are you running it from the gamemode files extracted from the GMA file?
the files extracted from the GMA
I’m now guessing I should probably be using the SVN
-