Advertisement
rebounded

ProPain Shared.lua WIP

Aug 3rd, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. if SERVER then // This is where the init.lua stuff goes.
  2.  
  3. //This makes sure clients download the file
  4. AddCSLuaFile ("shared.lua")
  5.  
  6. //How heavy the SWep is
  7. SWEP.Weight = 0
  8.  
  9. //Allow automatic switching to/from this weapon when weapons are picked up
  10. SWEP.AutoSwitchTo = false
  11. SWEP.AutoSwitchFrom = false
  12.  
  13. elseif CLIENT then // This is where the cl_init.lua stuff goes
  14.  
  15. //The name of the SWep, as appears in the weapons tab in the spawn menu(Q Menu)
  16. SWEP.PrintName = "ProPain"
  17.  
  18. //Sets the position of the weapon in the switching menu
  19. //(appears when you use the scroll wheel or keys 1-6 by default)
  20. SWEP.Slot = 1
  21. SWEP.SlotPos = 1
  22.  
  23. //Sets drawing the ammuntion levels for this weapon
  24. SWEP.DrawAmmo = false
  25.  
  26. //Sets the drawing of the crosshair when this weapon is deployed
  27. SWEP.DrawCrosshair = true
  28.  
  29. end
  30. SWEP.Author = "-Rebound-"
  31. SWEP.Contact = "reboundws@outlook.com"
  32. SWEP.Purpose = "it seems like you lost your crowbar"
  33. SWEP.Instructions = "Mouse1= melee attack Mouse2= explode(like a jihad bomb)"
  34.  
  35. //The category that you SWep will be shown in, in the Spawn (Q) Menu
  36. //(This can be anything, GMod will create the categories for you)
  37. SWEP.Category = "ProPain"
  38.  
  39. SWEP.Spawnable = true -- Whether regular players can see it
  40. SWEP.AdminSpawnable = true -- Whether Admins/Super Admins can see it
  41.  
  42. SWEP.ViewModel = "models/weapons/v_stunbaton.mdl" -- This is the model used for clients to see in first person.
  43. SWEP.WorldModel = "models/weapons/w_stunbaton.mdl" -- This is the model shown to all other clients and in third-person.
  44.  
  45. //This determins how big each clip/magazine for the gun is. You can
  46. //set it to -1 to disable the ammo system, meaning primary ammo will
  47. //not be displayed and will not be affected.
  48. SWEP.Primary.ClipSize = -1
  49.  
  50. //This sets the number of rounds in the clip when you first get the gun. Again it can be set to -1.
  51. SWEP.Primary.DefaultClip = -1
  52.  
  53. //Obvious. Determines whether the primary fire is automatic. This should be true/false
  54. SWEP.Primary.Automatic = false
  55.  
  56. //Sets the ammunition type the gun uses, see below for a list of types.
  57. SWEP.Primary.Ammo = "none"
  58.  
  59. SWEP.Secondary.ClipSize = -1
  60. SWEP.Secondary.DefaultClip = -1
  61. SWEP.Secondary.Automatic = false
  62. SWEP.Secondary.Ammo = "none"
  63.  
  64. function SWEP:Reload()
  65. end
  66.  
  67. function SWEP:Think()
  68. end
  69.  
  70. SoundData
  71. {
  72.  
  73. "single_shot" "Weapon_Crowbar.Single"
  74. "melee_hit" "Weapon_Crowbar.Melee_Hit"
  75. "melee_hit_world" "Weapon_Crowbar.Melee_HitWorld"
  76. }
  77.  
  78. function SWEP:PrimaryAttack()
  79.  
  80. end
  81.  
  82.  
  83. function SWEP:SecondaryAttack()
  84.  
  85. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement