Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if SERVER then // This is where the init.lua stuff goes.
- //This makes sure clients download the file
- AddCSLuaFile ("shared.lua")
- //How heavy the SWep is
- SWEP.Weight = 0
- //Allow automatic switching to/from this weapon when weapons are picked up
- SWEP.AutoSwitchTo = false
- SWEP.AutoSwitchFrom = false
- elseif CLIENT then // This is where the cl_init.lua stuff goes
- //The name of the SWep, as appears in the weapons tab in the spawn menu(Q Menu)
- SWEP.PrintName = "ProPain"
- //Sets the position of the weapon in the switching menu
- //(appears when you use the scroll wheel or keys 1-6 by default)
- SWEP.Slot = 1
- SWEP.SlotPos = 1
- //Sets drawing the ammuntion levels for this weapon
- SWEP.DrawAmmo = false
- //Sets the drawing of the crosshair when this weapon is deployed
- SWEP.DrawCrosshair = true
- end
- SWEP.Author = "-Rebound-"
- SWEP.Contact = "reboundws@outlook.com"
- SWEP.Purpose = "it seems like you lost your crowbar"
- SWEP.Instructions = "Mouse1= melee attack Mouse2= explode(like a jihad bomb)"
- //The category that you SWep will be shown in, in the Spawn (Q) Menu
- //(This can be anything, GMod will create the categories for you)
- SWEP.Category = "ProPain"
- SWEP.Spawnable = true -- Whether regular players can see it
- SWEP.AdminSpawnable = true -- Whether Admins/Super Admins can see it
- SWEP.ViewModel = "models/weapons/v_stunbaton.mdl" -- This is the model used for clients to see in first person.
- SWEP.WorldModel = "models/weapons/w_stunbaton.mdl" -- This is the model shown to all other clients and in third-person.
- //This determins how big each clip/magazine for the gun is. You can
- //set it to -1 to disable the ammo system, meaning primary ammo will
- //not be displayed and will not be affected.
- SWEP.Primary.ClipSize = -1
- //This sets the number of rounds in the clip when you first get the gun. Again it can be set to -1.
- SWEP.Primary.DefaultClip = -1
- //Obvious. Determines whether the primary fire is automatic. This should be true/false
- SWEP.Primary.Automatic = false
- //Sets the ammunition type the gun uses, see below for a list of types.
- SWEP.Primary.Ammo = "none"
- SWEP.Secondary.ClipSize = -1
- SWEP.Secondary.DefaultClip = -1
- SWEP.Secondary.Automatic = false
- SWEP.Secondary.Ammo = "none"
- function SWEP:Reload()
- end
- function SWEP:Think()
- end
- SoundData
- {
- "single_shot" "Weapon_Crowbar.Single"
- "melee_hit" "Weapon_Crowbar.Melee_Hit"
- "melee_hit_world" "Weapon_Crowbar.Melee_HitWorld"
- }
- function SWEP:PrimaryAttack()
- end
- function SWEP:SecondaryAttack()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement