uintancæstir
Active member
Restoring the CS:S/HL2 viewmodels to their originals. This can only be applied server-side.
To get the original ironsight values, go to the May 26, 2013 TTT github repository (Before the before the "SWEP Hands" update on Jun 7, 2013).
garrysmod/garrysmod/gamemodes/terrortown/entities/weapons at ee2640833511c5115a8896ec3a9b63d6ff40c864 · Facepunch/garrysmod
Sandbox mod for the Source Engine. Contribute to Facepunch/garrysmod development by creating an account on GitHub.
Be sure to make a backup...
Using CS:S weapons as an example...
AddCSLuaFile()SWEP.HoldType = "revolver"SWEP.ReloadHoldType = "pistol"if CLIENT then SWEP.PrintName = "Deagle" SWEP.Slot = 1-- SWEP.ViewModelFlip = false -- added two dashes to this unless we're using the Galil, Famas, C4, M249, or the Knife, more on that later.-- SWEP.ViewModelFOV = 54 -- added two dashes to this SWEP.Icon = "vgui/ttt/icon_deagle"endSWEP.Base = "weapon_tttbase"SWEP.Kind = WEAPON_PISTOLSWEP.WeaponID = AMMO_DEAGLESWEP.Primary.Ammo = "AlyxGun" -- hijack an ammo type we don't use otherwiseSWEP.Primary.Recoil = 6SWEP.Primary.Damage = 37SWEP.Primary.Delay = 0.6SWEP.Primary.Cone = 0.02SWEP.Primary.ClipSize = 8SWEP.Primary.ClipMax = 36SWEP.Primary.DefaultClip = 8SWEP.Primary.Automatic = trueSWEP.Primary.Sound = Sound( "Weapon_Deagle.Single" )SWEP.HeadshotMultiplier = 4SWEP.AutoSpawnable = trueSWEP.Spawnable = trueSWEP.AmmoEnt = "item_ammo_revolver_ttt"-- SWEP.UseHands = true -- added two dashes to this-- SWEP.ViewModel = "models/weapons/cstrike/c_pist_deagle.mdl" -- added two dashes to thisSWEP.ViewModel = "models/weapons/v_pist_deagle.mdl" -- inserted "models/weapons/v_pist_deagle.mdl"SWEP.WorldModel = "models/weapons/w_pist_deagle.mdl"-- SWEP.IronSightsPos = Vector(-6.361, -3.701, 2.15) -- added two dashes to this-- SWEP.IronSightsAng = Vector(0, 0, 0) -- added two dashes to thisSWEP.IronSightsPos = Vector( 5.15, -2, 2.6 ) -- restored the old SWEP.IronSightPos valueThen a right handed CS:S weapon (Galil, Famas, C4, M249 or knife)...
AddCSLuaFile()SWEP.HoldType = "crossbow"if CLIENT then SWEP.PrintName = "H.U.G.E-249" SWEP.Slot = 2 SWEP.ViewModelFlip = false -- left this unedited-- SWEP.ViewModelFOV = 54 -- added two dashes to this SWEP.Icon = "vgui/ttt/icon_m249" SWEP.IconLetter = "z"endSWEP.Base = "weapon_tttbase"SWEP.Spawnable = trueSWEP.AutoSpawnable = trueSWEP.Kind = WEAPON_HEAVYSWEP.WeaponID = AMMO_M249SWEP.Primary.Damage = 7SWEP.Primary.Delay = 0.06SWEP.Primary.Cone = 0.09SWEP.Primary.ClipSize = 150SWEP.Primary.ClipMax = 150SWEP.Primary.DefaultClip = 150SWEP.Primary.Automatic = trueSWEP.Primary.Ammo = "AirboatGun"SWEP.Primary.Recoil = 1.9SWEP.Primary.Sound = Sound("Weapon_m249.Single")-- SWEP.UseHands = true --added two dashes to this-- SWEP.ViewModel = "models/weapons/cstrike/c_mach_m249para.mdl" --added two dashes to thisSWEP.ViewModel = "models/weapons/v_mach_m249para.mdl"SWEP.WorldModel = "models/weapons/w_mach_m249para.mdl"SWEP.HeadshotMultiplier = 2.2-- SWEP.IronSightsPos = Vector(-5.96, -5.119, 2.349) -- added two dashes to this-- SWEP.IronSightsAng = Vector(0, 0, 0) -- added two dashes to thisSWEP.IronSightsPos = Vector( -4.4, -3, 2 ) -- restored the old SWEP.IronSightPos valueAnd finally the HL2 viewmodels.
AddCSLuaFile()SWEP.HoldType = "revolver"if CLIENT then SWEP.PrintName = "flare_name" SWEP.Slot = 6 SWEP.ViewModelFOV = 54 SWEP.ViewModelFlip = false SWEP.EquipMenuData = { type = "item_weapon", desc = "flare_desc" }; SWEP.Icon = "vgui/ttt/icon_flare"endSWEP.Base = "weapon_tttbase"-- if I run out of ammo types, this weapon is one I could move to a custom ammo-- handling strategy, because you never need to pick up ammo for itSWEP.Primary.Ammo = "AR2AltFire"SWEP.Primary.Recoil = 4SWEP.Primary.Damage = 7SWEP.Primary.Delay = 1.0SWEP.Primary.Cone = 0.01SWEP.Primary.ClipSize = 4SWEP.Primary.Automatic = falseSWEP.Primary.DefaultClip = 4SWEP.Primary.ClipMax = 4SWEP.Primary.Sound = Sound( "Weapon_USP.SilencedShot" )SWEP.Kind = WEAPON_EQUIPSWEP.CanBuy = {ROLE_TRAITOR} -- only traitors can buySWEP.LimitedStock = true -- only buyable onceSWEP.WeaponID = AMMO_FLARESWEP.Tracer = "AR2Tracer"-- SWEP.UseHands = true -- added two dashes to this-- SWEP.ViewModel = Model("models/weapons/c_357.mdl") -- added two dashes to thisSWEP.ViewModel = Model("models/weapons/v_357.mdl") -- inserted "models/weapons/v_pist_deagle.mdl"SWEP.WorldModel = Model("models/weapons/w_357.mdl")Feedback & questions are appreciated.
Update (Jan 27, 2026): Added video with SWEP pack in description.
Last edited: