Structures/PLAYER

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{Structure
 
{{Structure
 
|Description=This page describes all '''default''' fields for a [[Player_Classes|player class]].
 
|Description=This page describes all '''default''' fields for a [[Player_Classes|player class]].
|Fields={{StructureField|string|DisplayName|The 'nice' name of the player class for display in User Interface and such.}}{{StructureField|number|WalkSpeed|How fast to move when not running|400}}
+
|Fields=
 +
{{StructureField|string|DisplayName|The 'nice' name of the player class for display in User Interface and such.}}
 +
{{StructureField|number|WalkSpeed|How fast to move when not running|400}}
 +
{{StructureField|number|RunSpeed|How fast to move when running/sprinting|600}}
 +
{{StructureField|number|CrouchedWalkSpeed|Multiply walk speed by this when crouching|0.3}}
 +
{{StructureField|number|DuckSpeed|How fast to go from not ducking, to ducking|0.3}}
 +
{{StructureField|number|UnDuckSpeed|How fast to go from ducking, to not ducking|0.3}}
 +
{{StructureField|number|JumpPower|How powerful a jump should be|200}}
 +
{{StructureField|boolean|CanUseFlashlight|Can the player use the flashlight|true}}
 +
 
 +
{{StructureField|number|MaxHealth|Max health we can have|100}}
 +
{{StructureField|number|StartHealth|How much health we start with|100}}
 +
{{StructureField|number|StartArmor|How much armour we start with|0}}
 +
{{StructureField|boolean|DropWeaponOnDie|Do we drop our weapon when we die|false}}
 +
{{StructureField|boolean|TeammateNoCollide|Do we collide with teammates or run straight through them|true}}
 +
{{StructureField|boolean|AvoidPlayers|Automatically swerves around other players|true}}
 +
{{StructureField|boolean|UseVMHands|Uses viewmodel hands|true}}
 
}}
 
}}

Revision as of 16:32, 30 September 2019

This page describes all default fields for a player class.



Type Name Description
string DisplayName

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

number WalkSpeed

How fast to move when not running

Default: 400

number RunSpeed

How fast to move when running/sprinting

Default: 600

number CrouchedWalkSpeed

Multiply walk speed by this when crouching

Default: 0.3

number DuckSpeed

How fast to go from not ducking, to ducking

Default: 0.3

number UnDuckSpeed

How fast to go from ducking, to not ducking

Default: 0.3

number JumpPower

How powerful a jump should be

Default: 200

boolean CanUseFlashlight

Can the player use the flashlight

Default: true


number MaxHealth

Max health we can have

Default: 100

number StartHealth

How much health we start with

Default: 100

number StartArmor

How much armour we start with

Default: 0

boolean DropWeaponOnDie

Do we drop our weapon when we die

Default: false

boolean TeammateNoCollide

Do we collide with teammates or run straight through them

Default: true

boolean AvoidPlayers

Automatically swerves around other players

Default: true

boolean UseVMHands

Uses viewmodel hands

Default: true

Personal tools
Navigation