Initial Commit

This commit is contained in:
2026-01-04 18:21:33 -06:00
commit 1d676526fe
133 changed files with 10359 additions and 0 deletions

View File

@@ -0,0 +1,79 @@
-- ####################################################################################
-- ## ##
-- ## ##
-- ## 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 ##
-- ## ##
-- ## ##
-- ####################################################################################
DEFINE_BASECLASS( "player_default" )
local PLAYER = {}
PLAYER.DisplayName = "Guard"
PLAYER.WalkSpeed = 260
PLAYER.RunSpeed = 325
PLAYER.CrouchedWalkSpeed = 0.4
PLAYER.DuckSpeed = 0.3
PLAYER.UnDuckSpeed = 0.3
PLAYER.JumpPower = 200
PLAYER.CanUseFlashlight = true
PLAYER.MaxHealth = 100
PLAYER.StartHealth = 100
PLAYER.StartArmor = 50
PLAYER.DropWeaponOnDie = true
PLAYER.AvoidPlayers = false
function PLAYER:Spawn()
self.Player:SetPlayerColor(Vector(.6,.9,1));
self.Player:SetWeaponColor(Vector(.6,.9,1));
end
local randomGuardSidearms = {"weapon_jb_deagle","weapon_jb_usp","weapon_jb_fiveseven"};
local randomGuardPrimary = {"weapon_jb_ak47","weapon_jb_aug","weapon_jb_galil","weapon_jb_m4a1","weapon_jb_mac10","weapon_jb_mp5navy","weapon_jb_p90","weapon_jb_scout","weapon_jb_sg552","weapon_jb_ump"};
function PLAYER:Loadout()
self.Player:Give("weapon_jb_fists");
self.Player:Give( table.Random( randomGuardSidearms ) )
self.Player:Give( table.Random( randomGuardPrimary ) );
self.Player:GiveAmmo( 255, "Pistol", true )
self.Player:GiveAmmo( 512, "SMG1", true )
end
function PLAYER:SetupDataTables()
self.Player:NetworkVar( "Bool", 1, "InGuardZone" );
end
util.PrecacheModel( "models/player/police.mdl" )
function PLAYER:SetModel()
self.Player:SetModel( "models/player/police.mdl" )
end
player_manager.RegisterClass( "player_guard", PLAYER, "player_default" )

View File

@@ -0,0 +1,144 @@
-- ####################################################################################
-- ## ##
-- ## ##
-- ## 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 ##
-- ## ##
-- ## ##
-- ####################################################################################
DEFINE_BASECLASS( "player_default" )
local PLAYER = {}
PLAYER.DisplayName = "Prisoner"
PLAYER.WalkSpeed = 260
PLAYER.RunSpeed = 310
PLAYER.CrouchedWalkSpeed = 0.4
PLAYER.DuckSpeed = 0.3
PLAYER.UnDuckSpeed = 0.3
PLAYER.JumpPower = 200
PLAYER.CanUseFlashlight = false
PLAYER.MaxHealth = 100
PLAYER.StartHealth = 100
PLAYER.StartArmor = 50
PLAYER.DropWeaponOnDie = false
PLAYER.AvoidPlayers = false
function PLAYER:Spawn()
self.Player:SetPlayerColor(Vector(.9,.9,.9));
self.Player:SetWeaponColor(Vector(.9,.9,.9));
self.Player:SetRebel(false);
self.Player:GiveAmmo( 50, "Pistol", true )
self.Player:GiveAmmo( 100, "SMG1", true )
end
local randomSpecialWeapon = {
"weapon_jb_knife",
}
function PLAYER:Loadout()
self.Player:Give("weapon_jb_fists");
if math.random(1,JB.Config.prisonerSpecialChance) == 1 then
self.Player:Give(table.Random(randomSpecialWeapon)); -- give the player a rando waeapon from our table.
end
end
function PLAYER:SetupDataTables()
self.Player:NetworkVar( "Bool", 0, "Rebel" );
self.Player:NetworkVar( "Bool", 1, "InGuardZone" );
end
local prisonerModels = {
Model("models/player/Group01/female_03.mdl"),
Model("models/player/Group01/female_05.mdl"),
Model("models/player/Group01/male_01.mdl"),
Model("models/player/Group01/male_03.mdl"),
Model("models/player/Group01/female_03.mdl"),
Model("models/player/Group01/female_05.mdl"),
Model("models/player/Group01/male_01.mdl"),
Model("models/player/Group01/male_03.mdl"),
Model("models/player/Group01/female_03.mdl"),
Model("models/player/Group01/female_05.mdl"),
Model("models/player/Group01/male_01.mdl"),
Model("models/player/Group01/male_03.mdl"),
Model("models/player/Group01/female_03.mdl"),
Model("models/player/Group01/female_05.mdl"),
Model("models/player/Group01/male_01.mdl"),
Model("models/player/Group01/male_03.mdl"),
Model("models/player/Group01/female_03.mdl"),
Model("models/player/Group01/female_05.mdl"),
Model("models/player/Group01/male_01.mdl"),
Model("models/player/Group01/male_03.mdl"),
Model("models/player/Group01/female_03.mdl"),
Model("models/player/Group01/female_05.mdl"),
Model("models/player/Group01/male_01.mdl"),
Model("models/player/Group01/male_03.mdl"),
Model("models/player/Group01/female_03.mdl"),
Model("models/player/Group01/female_05.mdl"),
Model("models/player/Group01/male_01.mdl"),
Model("models/player/Group01/male_03.mdl"),
Model("models/player/Group01/female_03.mdl"),
Model("models/player/Group01/female_05.mdl"),
Model("models/player/Group01/male_01.mdl"),
Model("models/player/Group01/male_03.mdl"),
Model("models/player/Group01/female_03.mdl"),
Model("models/player/Group01/female_05.mdl"),
Model("models/player/Group01/male_01.mdl"),
Model("models/player/Group01/male_03.mdl"),
Model("models/player/Group01/female_03.mdl"),
Model("models/player/Group01/female_05.mdl"),
Model("models/player/Group01/male_01.mdl"),
Model("models/player/Group01/male_03.mdl"),
Model("models/player/Group01/female_03.mdl"),
Model("models/player/Group01/female_05.mdl"),
Model("models/player/Group01/male_01.mdl"),
Model("models/player/Group01/male_03.mdl"),
Model("models/player/Group01/female_03.mdl"),
Model("models/player/Group01/female_05.mdl"),
Model("models/player/Group01/male_01.mdl"),
Model("models/player/Group01/male_03.mdl"),
Model("models/player/Group01/female_02.mdl"),
Model("models/player/Group01/female_01.mdl"),
Model("models/player/Group01/female_04.mdl"),
Model("models/player/Group01/female_06.mdl"),
Model("models/player/Group01/male_02.mdl"),
Model("models/player/Group01/male_04.mdl"),
Model("models/player/Group01/male_05.mdl"),
Model("models/player/Group01/male_06.mdl"),
Model("models/player/Group01/male_07.mdl"),
Model("models/player/Group01/male_08.mdl"),
Model("models/player/Group01/male_09.mdl"),
}
function PLAYER:SetModel()
self.Player:SetModel( string.lower(table.Random(prisonerModels)) )
end
player_manager.RegisterClass( "player_prisoner", PLAYER, "player_default" )

View File

@@ -0,0 +1,42 @@
-- ####################################################################################
-- ## ##
-- ## ##
-- ## 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 ##
-- ## ##
-- ## ##
-- ####################################################################################
DEFINE_BASECLASS( "player_default" )
local PLAYER = {}
PLAYER.DisplayName = "Spectator"
PLAYER.WalkSpeed = 260
PLAYER.RunSpeed = 260
PLAYER.DuckSpeed = 1
player_manager.RegisterClass( "player_spectator", PLAYER, "player_default" )