Public feed #380504

Mine

public lua v1 · immutable
Raw Edit
·published 2007-03-04 03:18 UTC
rendered paste body
if (SERVER) then	AddCSLuaFile( "shared.lua" )	SWEP.Weight				= 5	SWEP.AutoSwitchTo		= false	SWEP.AutoSwitchFrom		= falseendif ( CLIENT ) then	SWEP.PrintName      = "Paintball Gun"	SWEP.DrawAmmo			= true	SWEP.DrawCrosshair		= false	SWEP.ViewModelFOV		= 70	SWEP.ViewModelFlip		= true	SWEP.CSMuzzleFlashes	= trueendSWEP.Author   = "Panda X"SWEP.Contact        = "thepanda@impulse55.net" SWEP.Spawnable      = trueSWEP.AdminSpawnable  = true SWEP.ViewModel      = "models/weapons/v_rif_sg552.mdl"SWEP.WorldModel   = "models/weapons/w_rif_sg552.mdl"SWEP.Primary.Sound = "weapons/pistol/pistol_empty.wav"SWEP.Primary.ClipSize      = 100SWEP.Primary.DefaultClip    = 100SWEP.Primary.Automatic    = falseSWEP.Primary.Ammo         = "pistol"SWEP.Primary.Delay			= 0.2SWEP.Primary.Recoil			= 0.2SWEP.Secondary.ClipSize      = 100SWEP.Secondary.DefaultClip    = 100SWEP.Secondary.Automatic    = falseSWEP.Secondary.Ammo         = "none"SWEP.Secondary.Delay			= 1SWEP.Secondary.Recoil			= 0.2function SWEP:Reload()	endfunction SWEP:Think()   endfunction SWEP:PrimaryAttack()	self.Weapon:EmitSound( self.Primary.Sound )	local ang = self.Owner:GetAimVector()	local pos = self.Owner:GetShootPos()	pos = pos + Vector(7,5,-5)	util.PrecacheSound(self.Primary.Sound)	local pb = ents.Create("paintball")	pb:SetPos(pos)	pb:SetOwner(self.Owner)	pb:SetModel("models/Softair/ball.mdl")	pb:Spawn()	pb:Activate()	pb:Fire("kill","",10)		local physobj = pb:GetPhysicsObject()	local force = ang * 100000	physobj:ApplyForceCenter(force)	end