30 lines
683 B
Lua
30 lines
683 B
Lua
|
|
AddCSLuaFile()
|
|
|
|
local PLAYER = {}
|
|
|
|
PLAYER.DisplayName = "Benny Player Class"
|
|
|
|
PLAYER.SlowWalkSpeed = 200
|
|
PLAYER.WalkSpeed = 400
|
|
PLAYER.RunSpeed = 600
|
|
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()
|
|
self.Player:NetworkVar( "Bool", 0, "Shoulder" )
|
|
end
|
|
|
|
player_manager.RegisterClass( "player_benny", PLAYER, "player_default" )
|