Advertisement
Guest User

schockstarre_swep

a guest
Jan 26th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. SWEP.PrintName = "Yuri Lock"
  2. SWEP.Author = "Yuri"
  3. SWEP.Contact = ""
  4. //SWEP.Purpose = ""
  5. SWEP.Instructions = ""
  6.  
  7. SWEP.Spawnable = true
  8. SWEP.AdminOnly = false
  9. SWEP.WorldModel = ""
  10. SWEP.UseHands = true
  11. SWEP.Category = "Yuris Sweps"
  12.  
  13. SWEP.Slot = 3
  14. SWEP.SlotPos = 2
  15.  
  16. SWEP.Primary.ClipSize = -1
  17. SWEP.Primary.DefaultClip = 0
  18. SWEP.Primary.Automatic = false
  19. SWEP.Primary.Ammo = ""
  20.  
  21. SWEP.Secondary.ClipSize = -1
  22. SWEP.Secondary.DefaultClip = 0
  23. SWEP.Secondary.Automatic = false
  24. SWEP.Secondary.Ammo = ""
  25.  
  26. function SWEP:Initialize()
  27. self:SetHoldType("normal")
  28.  
  29. self:SetRenderMode(4)
  30. self:SetColor(Color(255,255,255,0))
  31. end
  32.  
  33. function SWEP:Deploy()
  34.  
  35. end
  36.  
  37. function SWEP:PreDrawViewModel()
  38. return true
  39. end
  40.  
  41. function SWEP:Holster()
  42. return true
  43. end
  44.  
  45.  
  46. function SWEP:PrimaryAttack()
  47. is player check:
  48. local target = self:GetOwner():GetEyeTrace().Entity
  49. local ply = self:GetOwner()
  50. if not IsValid(target) or target:IsWorld() or not target:IsPlayer() then return end
  51.  
  52. target:Lock()
  53. Player:ChatPrint("Du hast dein Ziel in Schockstarre versetzt!")
  54.  
  55. end
  56.  
  57. function SWEP:SecondaryAttack()
  58. is player check:
  59. local target = self:GetOwner():GetEyeTrace().Entity
  60. local ply = self:GetOwner()
  61. if not IsValid(target) or target:IsWorld() or not target:IsPlayer() then return end
  62.  
  63. target:UnLock()
  64. Player:ChatPrint("Dein Ziel ist nun nicht mehr in der Schockstarre!")
  65.  
  66. end
  67.  
  68.  
  69.  
  70.  
  71. end
  72.  
  73. function SWEP:Reload()
  74.  
  75. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement