ls_player_class
componentPlayer classA player class: health, speed, weapons, model. Players pick one with say /class, or a mode gives it.
A point entity. Needs Loner-Strike's components plugin, which comes with the app.
Keys (10)
- Team team
- Which team this is for. Default: 0. Choices: 0 Anyone, 1 Terrorists, 2 Counter-Terrorists.
- Class name name
- What the class is called in menus and in mode code. Default: Soldier.
- Health hp
- Health at spawn. Default: 100.
- Helmet helmet
- With a helmet when armor is given. Default: 1. Choices: 1 Yes.
- Speed speed
- Running speed (250 is normal with a knife). 0 keeps the weapon's own speed. Default: 0.
- Weapons weapons
- Given at spawn, separated by spaces: knife deagle ak47 vesthelm he hp:50 ... Default: knife.
- Player model model
- A model folder under models/player (terror, vip). Empty keeps the team's.
- In the class menu menu
- Players can pick it from say /class. Default: 1. Choices: 1 Yes.
- Given to everyone default
- Players of the team without a class get this one. Default: 0. Choices: 0 No.
- Bot behavior bot_profile
- A behavior profile for bots with this class (botprofiles.ini: hunter, defender ...).