Benny/gamemodes/benny/gamemode/player_class.lua

55 lines
1.5 KiB
Lua
Raw Normal View History

2024-03-07 21:19:30 -05:00
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
2024-04-06 09:30:09 -04:00
STANCE_STAND = 0
STANCE_DUCK = 1
STANCE_PRONE = 2
2024-03-07 21:19:30 -05:00
function PLAYER:SetupDataTables()
self.Player:NetworkVar( "Bool", 0, "Shoulder" )
2024-04-06 09:30:09 -04:00
self.Player:NetworkVar( "Bool", 1, "InDive" )
2024-03-07 21:19:30 -05:00
self.Player:NetworkVar( "Int", 0, "JumpBoost" )
2024-04-06 09:30:09 -04:00
self.Player:NetworkVar( "Int", 1, "Health_Blood" )
self.Player:NetworkVar( "Int", 2, "Health_Stamina" )
self.Player:NetworkVar( "Int", 3, "Stance" )
2024-03-07 21:19:30 -05:00
self.Player:NetworkVar( "Float", 0, "VaultDebuff" )
self.Player:NetworkVar( "Float", 1, "VaultTransition" )
self.Player:NetworkVar( "Float", 2, "Stamina" )
2024-04-06 09:30:09 -04:00
self.Player:NetworkVar( "Float", 3, "DivedAt" )
2024-03-07 21:19:30 -05:00
self.Player:NetworkVar( "Vector", 0, "VaultPos1")
self.Player:NetworkVar( "Vector", 1, "VaultPos2")
self.Player:NetworkVar( "String", 0, "ReqID1")
self.Player:NetworkVar( "String", 1, "ReqID2")
end
player_manager.RegisterClass( "player_benny", PLAYER, "player_default" )