All pastes #596236 Raw Edit

Miscellany

public text v1 · immutable
#596236 ·published 2007-06-29 20:56 UTC
rendered paste body


if ( SERVER ) then

	AddCSLuaFile( "shared.lua" )
	
	SWEP.HoldType			= "ar2"
	
end

if ( CLIENT ) then

	SWEP.PrintName		= "M1 Carbine"		
	SWEP.Author		= "Erempiris"
	SWEP.ViewModelFOV      	= 46
	SWEP.Slot		= 3
	SWEP.SlotPos		= 1
	SWEP.IconLetter		= "b"
	
	killicon.AddFont( "weapon_ak47", "CSKillIcons", SWEP.IconLetter, Color( 255, 80, 0, 255 ) )
	
end


SWEP.Base			= "weapon_dod_base"
SWEP.ViewModelFlip		= false

SWEP.Spawnable			= true
SWEP.AdminSpawnable		= true

SWEP.ViewModel			= "models/weapons/v_m1carbine.mdl"
SWEP.WorldModel			= "models/weapons/w_m1carbine.mdl"

SWEP.Weight				= 5
SWEP.AutoSwitchTo		= true
SWEP.AutoSwitchFrom		= true
SWEP.DrawCrosshair		= 1

SWEP.Primary.Sound		= Sound( "Weapon_Carbine.shoot" )
SWEP.Primary.Recoil		= 1
SWEP.Primary.Damage		= 70
SWEP.Primary.Delay = 0.0
SWEP.Primary.NumShots		= 1
SWEP.Primary.Cone		= 0.0
SWEP.Primary.ClipSize		= 15
SWEP.Primary.Delay		= 0.1
SWEP.Primary.DefaultClip	= 301
SWEP.Primary.Automatic		= false
SWEP.Primary.Ammo		= "smg1"

SWEP.Secondary.ClipSize		= -1
SWEP.Secondary.DefaultClip	= -1
SWEP.Secondary.Automatic	= false
SWEP.Secondary.Ammo		= "none"

SWEP.IronSightsPos = Vector( -6.87, -10, 3.3 )

end

function SWEP:SecondaryAttack()

SWEP.DrawCrosshair		= 0

end

function SWEP:PrimaryAttack()

SWEP.DrawCrosshair		= 1

end