

Desc: Called when the player changes their weapon to another one causing their viewmodel model to change TranslatePlayerModel( cl_playermodel )įunction PLAYER:Death( inflictor, attacker )įunction PLAYER:CalcView( view ) end - Setup the player's viewįunction PLAYER:CreateMove( cmd ) end - Creates the user command on the clientįunction PLAYER:ShouldDrawLocal() end - Return true if we should draw the local playerįunction PLAYER:StartMove( cmd, mv ) end - Copies from the user command to the moveįunction PLAYER:Move( mv ) end - Runs the move (can run multiple times for the same client)įunction PLAYER:FinishMove( mv ) end - Copy the results of the move back to the Player Desc: Called on spawn to give the player their default loadout Desc: Called serverside only when the player spawns Desc: Called when the class object is created (shared) Desc: Set up the network table accessors AvoidPlayers = true - Automatically swerves around other players TeammateNoCollide = true - Do we collide with teammates or run straight through them DropWeaponOnDie = false - Do we drop our weapon when we die StartArmor = 0 - How much armour we start with

StartHealth = 100 - How much health we start with CanUseFlashlight = true - Can we use the flashlight JumpPower = 200 - How powerful our jump should be

UnDuckSpeed = 0.3 - How fast to go from ducking, to not ducking DuckSpeed = 0.3 - How fast to go from not ducking, to ducking CrouchedWalkSpeed = 0.3 - Multiply move speed by this when crouching RunSpeed = 600 - How fast to move when running WalkSpeed = 400 - How fast to move when not running SlowWalkSpeed = 200 - How fast to move when slow-walking (+WALK) Learn more about bidirectional Unicode characters To review, open the file in an editor that reveals hidden Unicode characters. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below.
