Revision Difference
Structures/PLAYER#517019
<cat>struct</cat>
<structure>
<description>This page describes all **default** fields for a [player class](/gmod/Player_Classes).</description>
<fields>{{StructureField|string|DisplayName|The 'nice' name of the player class for display in User Interface and such.</fields>⤶
<fields>⤶
<item name="DisplayName" type="string">The 'nice' name of the player class for display in User Interface and such.</item>⤶
{{StructureField|number|WalkSpeed|How fast to move when not running|400⤶
</fields>⤶
</structure>
{{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}}
{{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}}
}}