60 lines
1.6 KiB
Lua
60 lines
1.6 KiB
Lua
|
|
AddCSLuaFile()
|
|
|
|
local PLAYER = {}
|
|
|
|
PLAYER.DisplayName = "Benny Player Class"
|
|
|
|
PLAYER.SlowWalkSpeed = 200
|
|
PLAYER.WalkSpeed = 250
|
|
PLAYER.RunSpeed = 280
|
|
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:Init()
|
|
self.Player:AddEFlags( EFL_NO_DAMAGE_FORCES )
|
|
end
|
|
|
|
STANCE_STAND = 0
|
|
STANCE_DUCK = 1
|
|
STANCE_PRONE = 2
|
|
|
|
function PLAYER:SetupDataTables()
|
|
self.Player:NetworkVar( "Bool", "Shoulder" )
|
|
self.Player:NetworkVar( "Bool", "InDive" )
|
|
|
|
self.Player:NetworkVar( "Int", "JumpBoost" )
|
|
self.Player:NetworkVar( "Int", "Health_Blood" )
|
|
self.Player:NetworkVar( "Int", "Health_Stamina" )
|
|
self.Player:NetworkVar( "Int", "Stance" )
|
|
self.Player:NetworkVar( "Int", "Level" )
|
|
self.Player:NetworkVar( "Int", "Level_XP" )
|
|
|
|
self.Player:NetworkVar( "Float", "VaultDebuff" )
|
|
self.Player:NetworkVar( "Float", "VaultTransition" )
|
|
self.Player:NetworkVar( "Float", "Stamina" )
|
|
self.Player:NetworkVar( "Float", "DivedAt" )
|
|
self.Player:NetworkVar( "Float", "TouchedObjectiveTime" )
|
|
|
|
self.Player:NetworkVar( "Entity", "TouchedObjective" )
|
|
|
|
self.Player:NetworkVar( "Vector", "VaultPos1")
|
|
self.Player:NetworkVar( "Vector", "VaultPos2")
|
|
|
|
self.Player:NetworkVar( "String", "ReqID1")
|
|
self.Player:NetworkVar( "String", "ReqID2")
|
|
end
|
|
|
|
player_manager.RegisterClass( "player_benny", PLAYER, "player_default" )
|