Making The CS:S Weapons Use Their Original Viewmodels

Discussion in 'Weapons' started by kingsaib0t, Feb 27, 2017.

  1. https://github.com/garrynewman/garr...rrysmod/gamemodes/terrortown/entities/weapons (FOR OLD IRON SIGHT ANGLE AND/OR POSITION NUMBERS)

    I'll use the Desert Eagle as an example


    (Be sure to make a backup.)


    AddCSLuaFile()

    SWEP.HoldType = "pistol"

    if CLIENT then
    SWEP.PrintName = "Deagle"
    SWEP.Slot = 1

    SWEP.ViewModelFlip = false (REMOVE THIS UNLESS YOU'RE USING THE GALIL, FAMAS, C4, M249 OR KNIFE FOR A VIEWMODEL)
    SWEP.ViewModelFOV = 54 (REMOVE 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 (REMOVE THIS)
    SWEP.ViewModel = "models/weapons/cstrike/c_pist_deagle.mdl" (REPLACE WITH "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) (REMOVE THIS UNLESS IT HAS AN OLD "SWEP.IronSightsPos" VALUE)
    SWEP.IronSightsAng = Vector(0, 0, 0) (REPLACE WITH "SWEP.IronSightsPos = Vector( 5.15, -2, 2.6 )")



    What it will look like after:

    [​IMG]
     
    Last edited: Mar 2, 2017
    • Like Like x 2