2023-09-23 22:51:35 -04:00
|
|
|
|
|
|
|
AddCSLuaFile()
|
|
|
|
|
|
|
|
local PLAYER = {}
|
|
|
|
|
|
|
|
PLAYER.DisplayName = "Benny Player Class"
|
|
|
|
|
|
|
|
PLAYER.SlowWalkSpeed = 200
|
2023-10-31 19:06:20 -04:00
|
|
|
PLAYER.WalkSpeed = 250
|
|
|
|
PLAYER.RunSpeed = 280
|
2023-09-23 22:51:35 -04:00
|
|
|
PLAYER.CrouchedWalkSpeed = 0.3
|
|
|
|
PLAYER.DuckSpeed = 0.3
|
|
|
|
PLAYER.UnDuckSpeed = 0.3
|
|
|
|
PLAYER.JumpPower = 200
|
|
|
|
PLAYER.CanUseFlashlight = false
|
|
|
|
PLAYER.MaxHealth = 100
|
|
|
|
PLAYER.MaxArmor = 100
|
|
|
|
PLAYER.StartHealth = 100
|
|
|
|
PLAYER.StartArmor = 0
|
|
|
|
PLAYER.DropWeaponOnDie = false
|
|
|
|
PLAYER.TeammateNoCollide = true
|
|
|
|
PLAYER.AvoidPlayers = true
|
|
|
|
PLAYER.UseVMHands = true
|
|
|
|
|
|
|
|
function PLAYER:SetupDataTables()
|
2023-10-22 00:38:39 -04:00
|
|
|
self.Player:NetworkVar( "Bool", 0, "Shoulder" )
|
2023-11-12 06:10:03 -05:00
|
|
|
self.Player:NetworkVar( "Float", 0, "VaultDebuff" )
|
2023-11-14 02:45:34 -05:00
|
|
|
|
|
|
|
self.Player:NetworkVar( "Float", 1, "VaultTransition" )
|
|
|
|
self.Player:NetworkVar( "Vector", 0, "VaultPos1")
|
|
|
|
self.Player:NetworkVar( "Vector", 1, "VaultPos2")
|
2023-11-28 22:52:37 -05:00
|
|
|
|
|
|
|
self.Player:NetworkVar( "Float", 2, "Stamina" )
|
2023-09-23 22:51:35 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
player_manager.RegisterClass( "player_benny", PLAYER, "player_default" )
|