Pending Restoring The Original TTT Viewmodels

uintancæstir

New member
Restore the CS:S/HL2 viewmodels to their originals. This can only be applied server-side.

To get the original ironsight values, we'll go to the May 26, 2013 TTT github repository (Before the before the "SWEP Hands" update on Jun 7, 2013).


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 knife, more on that later.)
-- SWEP.ViewModelFOV = 54 (Added two dashes to this)

SWEP.Icon = "vgui/ttt/icon_deagle"
end

SWEP.Base = "weapon_tttbase"

SWEP.Kind = WEAPON_PISTOL
SWEP.WeaponID = AMMO_DEAGLE

SWEP.Primary.Ammo = "AlyxGun" -- hijack an ammo type we don't use otherwise
SWEP.Primary.Recoil = 6
SWEP.Primary.Damage = 37
SWEP.Primary.Delay = 0.6
SWEP.Primary.Cone = 0.02
SWEP.Primary.ClipSize = 8
SWEP.Primary.ClipMax = 36
SWEP.Primary.DefaultClip = 8
SWEP.Primary.Automatic = true
SWEP.Primary.Sound = Sound( "Weapon_Deagle.Single" )

SWEP.HeadshotMultiplier = 4

SWEP.AutoSpawnable = true
SWEP.Spawnable = true
SWEP.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 this)
SWEP.ViewModel = "models/weapons/v_pist_deagle.mdl" (Inserted SWEP.Viewmodel = "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 this)
SWEP.IronSightsPos = Vector( 5.15, -2, 2.6 ) (Reverted the old SWEP.IronSightPos value)


Then right handed CS:S weapons (Including a custom famas and galil example)...

AddCSLuaFile()

SWEP.HoldType = "crossbow"

if CLIENT then
SWEP.PrintName = "H.U.G.E-249"
SWEP.Slot = 2

SWEP.ViewModelFlip = false (Leave this unedited)
-- SWEP.ViewModelFOV = 54 (Added two dashes to this)

SWEP.Icon = "vgui/ttt/icon_m249"
SWEP.IconLetter = "z"
end

SWEP.Base = "weapon_tttbase"

SWEP.Spawnable = true
SWEP.AutoSpawnable = true

SWEP.Kind = WEAPON_HEAVY
SWEP.WeaponID = AMMO_M249

SWEP.Primary.Damage = 7
SWEP.Primary.Delay = 0.06
SWEP.Primary.Cone = 0.09
SWEP.Primary.ClipSize = 150
SWEP.Primary.ClipMax = 150
SWEP.Primary.DefaultClip = 150
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = "AirboatGun"
SWEP.Primary.Recoil = 1.9
SWEP.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 this)
SWEP.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 this)
SWEP.IronSightsPos = Vector( -4.4, -3, 2 )


And 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"
end

SWEP.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 it

SWEP.Primary.Ammo = "AR2AltFire"
SWEP.Primary.Recoil = 4
SWEP.Primary.Damage = 7
SWEP.Primary.Delay = 1.0
SWEP.Primary.Cone = 0.01
SWEP.Primary.ClipSize = 4
SWEP.Primary.Automatic = false
SWEP.Primary.DefaultClip = 4
SWEP.Primary.ClipMax = 4
SWEP.Primary.Sound = Sound( "Weapon_USP.SilencedShot" )

SWEP.Kind = WEAPON_EQUIP
SWEP.CanBuy = {ROLE_TRAITOR} -- only traitors can buy
SWEP.LimitedStock = true -- only buyable once
SWEP.WeaponID = AMMO_FLARE

SWEP.Tracer = "AR2Tracer"

-- SWEP.UseHands = true (Added two dashes to this)
-- SWEP.ViewModel = Model("models/weapons/c_357.mdl") (Added two dashes to this)
SWEP.ViewModel = Model("models/weapons/v_357.mdl") (Inserted SWEP.Viewmodel = "models/weapons/v_pist_deagle.mdl")
SWEP.WorldModel = Model("models/weapons/w_357.mdl")

 
Last edited:
Back
Top