Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (SERVER) then
- AddCSLuaFile ("shared.lua");
- SWEP.Weight = 5;
- SWEP.AutoSwitchTo = false;
- SWEP.AutoSwitchFrom = false;
- end
- if (CLIENT) then
- SWEP.PrintName = "Ekrem Abi SWEP";
- SWEP.Slot = 1;
- SWEP.SlotPos = 4;
- SWEP.DrawAmmo = false;
- SWEP.DrawCrosshair = true;
- end
- SWEP.Author = "brooks";
- SWEP.Contact = "Steam Workshop Page";
- SWEP.Purpose = "Ekrem abinin sözleri";
- SWEP.Instructions = "Mouse 1 ateş eder mouse 2 replik söyler R tuşu değiştirir.";
- SWEP.Category = "brooks' SWEPs"
- SWEP.Base = "cs_base"
- SWEP.Spawnable = true;
- SWEP.AdminSpawnable = true;
- SWEP.ViewModelFOV = 50
- SWEP.ViewModel = "models/weapons/cstrike/c_pist_fiveseven.mdl"
- SWEP.WorldModel = "models/weapons/cstrike/w_pist_fiveseven.mdl"
- SWEP.ViewModelFlip = false
- SWEP.UseHands = true
- SWEP.HoldType = "pistol"
- SWEP.Primary.Sound = "weapons/fiveseven/fiveseven-1.wav"
- SWEP.Primary.Damage = 15
- SWEP.Primary.NumShots = 1
- SWEP.Primary.Recoil = 0.5
- SWEP.Primary.Cone = 0.007
- SWEP.Primary.Delay = 0.17
- SWEP.Primary.ClipSize = 15
- SWEP.Primary.DefaultClip = 15
- SWEP.Primary.Tracer = 1
- SWEP.Primary.Force = 1
- SWEP.Primary.Automatic = false
- SWEP.Primary.Ammo = "pistol"
- SWEP.Secondary.ClipSize = -1;
- SWEP.Secondary.DefaultClip = -1;
- SWEP.Secondary.Automatic = false;
- SWEP.Secondary.Ammo = "none";
- SWEP.Secondary.Delay = 1
- SWEP.boots_sounds = 0
- SWEP.NextReload = 0
- function SWEP:Reload()
- if self.NextReload < CurTime() then
- self.Weapon:SendWeaponAnim( ACT_VM_IDLE )
- if self.boots_sounds == 0 then
- self.boots_sounds = self.boots_sounds + 1
- self:GetOwner():ChatPrint("[Ekrem Abi] Akiyo bu aksam masallah.")
- elseif self.boots_sounds == 1 then
- self.boots_sounds = self.boots_sounds + 1
- self:GetOwner():ChatPrint("[Ekrem Abi] Hayirdir senin bir sikintinmi var?")
- elseif self.boots_sounds == 2 then
- self.boots_sounds = self.boots_sounds + 1
- self:GetOwner():ChatPrint("[Ekrem Abi] Herkes kendi parasiyla oynuyor burda!")
- elseif self.boots_sounds == 3 then
- self.boots_sounds = self.boots_sounds + 1
- self:GetOwner():ChatPrint("[Ekrem Abi] Sen bize ismi yapiyosun lan!")
- elseif self.boots_sounds == 4 then
- self.boots_sounds = self.boots_sounds + 1
- self:GetOwner():ChatPrint("[Ekrem Abi] Isteyene atarim beyler.")
- elseif self.boots_sounds == 5 then
- self.boots_sounds = self.boots_sounds + 1
- self:GetOwner():ChatPrint("[Ekrem Abi] Kacicagim Huseyin kardes isim var.")
- elseif self.boots_sounds == 6 then
- self.boots_sounds = self.boots_sounds + 1
- self:GetOwner():ChatPrint("[Ekrem Abi] Kim kimi kopariyor kendi payinin amk!")
- elseif self.boots_sounds == 7 then
- self.boots_sounds = self.boots_sounds + 1
- self:GetOwner():ChatPrint("[Ekrem Abi] Evet beyler benim kumarim biter.")
- elseif self.boots_sounds == 8 then
- self.boots_sounds = self.boots_sounds + 1
- self:GetOwner():ChatPrint("[Ekrem Abi] Kumarin ayibi olmaz Huseyin kardes.")
- elseif self.boots_sounds == 9 then
- self.boots_sounds = 0
- self:GetOwner():ChatPrint("[Ekrem Abi] Ne zaman kalkacagimi sanami soracagim aslanim!")
- end
- self.NextReload=CurTime()+1
- end
- end
- function SWEP:Think()
- return false
- end
- function SWEP:PrimaryAttack()
- if ( !self:CanPrimaryAttack() ) then return end
- local bullet = {}
- bullet.Num = self.Primary.NumShots
- bullet.Src = self.Owner:GetShootPos()
- bullet.Dir = self.Owner:GetAimVector()
- bullet.Spread = Vector( self.Primary.Cone / 90, self.Primary.Cone / 90, 0 )
- bullet.Tracer = self.Primary.Tracer
- bullet.Force = self.Primary.Force
- bullet.Damage = self.Primary.Damage
- bullet.AmmoType = self.Primary.Ammo
- self.Owner:FireBullets( bullet )
- self.Weapon:SendWeaponAnim( ACT_VM_PRIMARYATTACK )
- self.Owner:MuzzleFlash()
- self.Owner:SetAnimation( PLAYER_ATTACK1 )
- self.Weapon:EmitSound(Sound(self.Primary.Sound))
- self.Owner:ViewPunch(Angle( -self.Primary.Recoil, 0, 0 ))
- if (self.Primary.TakeAmmoPerBullet) then
- self:TakePrimaryAmmo(self.Primary.NumShots)
- else
- self:TakePrimaryAmmo(0)
- end
- self:SetNextPrimaryFire( CurTime() + self.Primary.Delay )
- end
- function SWEP:SecondaryAttack()
- self.Weapon:SetNextSecondaryFire(CurTime() + self.Secondary.Delay)
- if self.boots_sounds == 1 then
- self.Weapon:EmitSound( "weapons/ekremabi/0.wav" )
- elseif self.boots_sounds == 2 then
- self.Weapon:EmitSound( "weapons/ekremabi/1.wav" )
- elseif self.boots_sounds == 3 then
- self.Weapon:EmitSound( "weapons/ekremabi/2.wav" )
- elseif self.boots_sounds == 4 then
- self.Weapon:EmitSound( "weapons/ekremabi/3.wav" )
- elseif self.boots_sounds == 5 then
- self.Weapon:EmitSound( "weapons/ekremabi/4.wav" )
- elseif self.boots_sounds == 6 then
- self.Weapon:EmitSound( "weapons/ekremabi/5.wav" )
- elseif self.boots_sounds == 7 then
- self.Weapon:EmitSound( "weapons/ekremabi/6.wav" )
- elseif self.boots_sounds == 8 then
- self.Weapon:EmitSound( "weapons/ekremabi/7.wav" )
- elseif self.boots_sounds == 9 then
- self.Weapon:EmitSound( "weapons/ekremabi/8.wav" )
- elseif self.boots_sounds == 0 then
- self.Weapon:EmitSound( "weapons/ekremabi/9.wav" )
- end
- end
- function SWEP:Initialize()
- end
- function SWEP:CanPrimaryAttack()
- return true
- end
- function SWEP:Deploy()
- self.Weapon:SendWeaponAnim(ACT_VM_DRAW);
- return true
- end
- function SWEP:CustomAmmoDisplay()
- self.AmmoDisplay = self.AmmoDisplay or {}
- self.AmmoDisplay.Draw = false //draw the display?
- if self.Primary.ClipSize > 0 then
- self.AmmoDisplay.PrimaryClip = self:Clip1() //amount in clip
- self.AmmoDisplay.PrimaryAmmo = self:Ammo1() //amount in reserve
- end
- if self.Secondary.ClipSize > 0 then
- self.AmmoDisplay.SecondaryClip = self:Clip2()
- self.AmmoDisplay.SecondaryAmmo = self:Ammo2()
- end
- return self.AmmoDisplay //return the table
- end
Add Comment
Please, Sign In to add comment