Skip to content

Instantly share code, notes, and snippets.

//----------------------------------------------
//Author Info
//----------------------------------------------
SWEP.Author = "SeveredSkullz"
SWEP.Contact = "Severed_skullz@hotmail.com"
SWEP.Purpose = "Blow Shit Up!"
SWEP.Instructions = "A Multi-Function Grenade Launcher"
SWEP.Category = "A35 Multi-Launcher"
//----------------------------------------------
PrimarySpawnAmount = 25
SecondarySpawnAmount = 35
SupportSpawnAmount = 10
local PrimaryWeapons = {
"weapon_twitch_mp5"
--"weapon_twitch_ak47"
--"weapon_twitch_mp5"
--"weapon_twitch_p90"
--"weapon_twitch_mac10"
function WeaponCheck (ply, wep)
PickupCat = string.sub(wep:GetClass(), 7 , 11)
for k, v in pairs(Player:GetWeapons()) do
v = sting.sub(v:GetClass(), 7 , 11)
if v == PickupCat then
return false
end
end
return true
hook.Add("PlayerCanPickupWeapon", "WeaponCheckHook", WeaponCheck)
if (SERVER) then
AddCSLuaFile("shared.lua")
SWEP.Weight = 5
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
end
if (CLIENT) then
SWEP.PrintName = "C4"
SWEP.DrawAmmo = false
function DropActiveWeapon(ply)
local ent = ply:GetActiveWeapon()
if not ValidEntity(ent) then return "" end
ply:DropWeapon(ply:GetActiveWeapon())
return ""
end
concommand.Add("DropActiveWeapon", DropActiveWeapon)
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( 'shared.lua' )
local models = {
"models/player/Group03/female_01.mdl",
"models/player/Group03/female_02.mdl",
"models/player/Group03/female_03.mdl",
"models/player/Group03/female_04.mdl",