Garry's Mod Wiki

PLAYER

Description

This page describes all default fields for a player class.

Parameters

DisplayName [string]

The 'nice' name of the player class for display in User Interface and such.

WalkSpeed [number]

How fast to move when not running

Default: 400

RunSpeed [number]

How fast to move when running/sprinting

Default: 600

CrouchedWalkSpeed [number]

Multiply walk speed by this when crouching

Default: 0.3

DuckSpeed [number]

How fast to go from not ducking, to ducking

Default: 0.3

UnDuckSpeed [number]

How fast to go from ducking, to not ducking

Default: 0.3

JumpPower [number]

How powerful a jump should be

Default: 200

CanUseFlashlight [boolean]

Can the player use the flashlight

Default: true

MaxHealth [number]

Max health we can have

Default: 100

StartHealth [number]

How much health we start with

Default: 100

StartArmor [number]

How much armour we start with

Default: 0

DropWeaponOnDie [boolean]

Do we drop our weapon when we die

Default: false

TeammateNoCollide [boolean]

Do we collide with teammates or run straight through them

Default: true

AvoidPlayers [boolean]

Automatically swerves around other players

Default: true

UseVMHands [boolean]

Uses viewmodel hands

Default: true

Page Links


Special Pages


Wikis

?

Render Time: 48ms

DB GetPage 4
Generate Html 19
SaveChanges (1) 11
Render Body 0
Render Sidebar 11