Files
jailbreakplusplus/gamemode/core/sh_weapon_extend.lua

48 lines
3.1 KiB
Lua
Raw Permalink Normal View History

2026-01-04 18:21:33 -06:00
-- ####################################################################################
-- ## ##
-- ## ##
-- ## CASUAL BANANAS CONFIDENTIAL ##
-- ## ##
-- ## __________________________ ##
-- ## ##
-- ## ##
-- ## Copyright 2014 (c) Casual Bananas ##
-- ## All Rights Reserved. ##
-- ## ##
-- ## NOTICE: All information contained herein is, and remains ##
-- ## the property of Casual Bananas. The intellectual and technical ##
-- ## concepts contained herein are proprietary to Casual Bananas and may be ##
-- ## covered by U.S. and Foreign Patents, patents in process, and are ##
-- ## protected by trade secret or copyright law. ##
-- ## Dissemination of this information or reproduction of this material ##
-- ## is strictly forbidden unless prior written permission is obtained ##
-- ## from Casual Bananas ##
-- ## ##
-- ## _________________________ ##
-- ## ##
-- ## ##
-- ## Casual Bananas is registered with the "Kamer van Koophandel" (Dutch ##
-- ## chamber of commerce) in The Netherlands. ##
-- ## ##
-- ## Company (KVK) number : 59449837 ##
-- ## Email : info@casualbananas.com ##
-- ## ##
-- ## ##
-- ####################################################################################
// Weapon types, used to determine range.
WEAPON_NONE=0;
WEAPON_SMG=1;
WEAPON_RIFLE = 2;
WEAPON_SNIPER=3;
WEAPON_PISTOL=4;
// Quick hack to fix pickup bug.
local oldRegister = weapons.Register;
function weapons.Register(tab,class)
if tab and tab.Primary and tab.Base and tab.Base == "weapon_jb_base" then
tab.Primary.DefaultClip = tab.Primary.ClipSize or 0;
JB:DebugPrint("Registered JailBreak weapon: "..class);
end
return oldRegister(tab,class);
end