game_player_settings

A game_player_settings changes the player who triggers it: it gives or takes weapons and ammo, sets their health,
maximum health and armor, and changes their Co-op level and XP, and then it fires its target. It only works for an
alive player, and for anyone else it changes nothing and fires nothing.
Attributes
The ammo keys, such as Hand grenades or K444 ammo, give the player that much ammo, up to the most the player
can carry, and a negative value takes ammo away. The weapon keys, such as weapon_ben, give or take a weapon.
targetnameTriggering the entity changes the player who started the chain of triggers. See Common keys.
targetNames the entities to trigger after the change, and passes on the player as the activator.
masterNames a master, and while the master is off, triggering the entity does nothing.
healthSets the player's health to this value when it is above 0. A value can also start with a sign: see Values with a sign for more details.
allow_overhealSets whether the health can go above the maximum health.
- No (0) - The health this entity sets stays at most the maximum health
- Yes (1) - The health can go above the maximum health, and a lower maximum doesn't cut it
No (0)max_healthSets the maximum health, with the same signs.
armorvalueSets the armor, with the same signs.
allow_overchargeSets whether the armor can go above 100.
- No (0) - The armor this entity sets stays at most 100
- Yes (1) - The armor can go above 100
No (0)longjumpGives or takes the long jump module, which makes the player jump far when they jump while they duck.
- Remove (-1) - Takes the module away
- No change (0) - Changes nothing
- Give (1) - Gives the module
No change (0)levelSets the Co-op level of the player, with the same signs: =5 sets 5, +2 adds two levels, -2 takes two away, <10 makes it at most 10 and >0 at least 0. A value with no sign is set, 0 too, but a value that starts with - takes levels away, so to set a negative level, write =-3. Each level gained works like a normal level-up, with more speed and more health at spawn. Each level taken works the other way, like the penalty for killing a teammate, and the scoreboard shows the change at once.
xpSets the XP toward the next level, with the same signs. Each full 5000 XP is a level-up and the rest stays, so +12000 at 0 XP gives two levels and 2000 XP. Taking XP stops at 0 and never takes a level away.
ARgrenadesSets how many grenades for the Vindico Grenade Launcher (weapon_glauncher) to give the player, up to the most a player can carry. A negative number takes that many away.
Hand_GrenadeSets how many hand grenades to give the player, up to the most a player can carry. A negative number takes that many away.
Satchel_ChargeSets how many satchels to give the player, up to the most a player can carry. A negative number takes that many away.
Trip_MineSets how many mines to give the player, up to the most a player can carry. A negative number takes that many away.
SnarksSets how many Pitbulls (weapon_snark) to give the player, up to the most a player can carry. A negative number takes that many away.
K444mSets how much ammo for weapon_k444 to give the player, up to the most a player can carry. A negative number takes that much away.
benmSets how much ammo for weapon_ben to give the player, up to the most a player can carry. A negative number takes that much away.
canonmSets how much ammo for weapon_canon to give the player, up to the most a player can carry. A negative number takes that much away.
chainmSets how much ammo for weapon_chaingun to give the player, up to the most a player can carry. A negative number takes that much away.
fa18mSets how much ammo for weapon_fa18 to give the player, up to the most a player can carry. A negative number takes that much away.
federalmSets how much ammo for weapon_federal to give the player, up to the most a player can carry. A negative number takes that much away.
nm33mSets how much ammo for weapon_nm33 to give the player, up to the most a player can carry. A negative number takes that much away.
pm66mSets how much ammo for weapon_pm66 to give the player, up to the most a player can carry. A negative number takes that much away.
rc28mSets how much ammo for weapon_rc28 to give the player, up to the most a player can carry. A negative number takes that much away.
spamSets how much ammo for weapon_spa to give the player, up to the most a player can carry. A negative number takes that much away.
swmSets how much ammo for weapon_sw to give the player, up to the most a player can carry. A negative number takes that much away.
weapon_benGives the player the Benelli, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it, so a player who already has it gets more ammo for it
No change (0)weapon_canonGives the player the Canon of Terror, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it, so a player who already has it gets more ammo for it
No change (0)weapon_chaingunGives the player the Vindico Avenger Minigun, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it, so a player who already has it gets more ammo for it
No change (0)weapon_chainsawGives the player the Chainsaw Sword, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it
No change (0)weapon_fa18Gives the player the Croon FA 18, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it, so a player who already has it gets more ammo for it
No change (0)weapon_federalGives the player the Vindico Federal, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it, so a player who already has it gets more ammo for it
No change (0)weapon_glauncherGives the player the Vindico Grenade Launcher, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it, so a player who already has it gets more ammo for it
No change (0)weapon_handgrenadeGives the player hand grenades, or takes them away.
- Remove (-1) - Takes them away
- No change (0) - Changes nothing
- Give (1) - Gives them if the player doesn't have them yet
- Give (allow duplicate) (2) - Always gives them, so a player who already has them gets more
No change (0)weapon_k444Gives the player the .444k Bear Killer, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it, so a player who already has it gets more ammo for it
No change (0)weapon_medikitGives the player the Medikit, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it
No change (0)weapon_nm33Gives the player the Croon NM 33 Sniper Rifle, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it, so a player who already has it gets more ammo for it
No change (0)weapon_pm66Gives the player the Croon PM 66, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it, so a player who already has it gets more ammo for it
No change (0)weapon_rc28Gives the player the Croon RC 28, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it, so a player who already has it gets more ammo for it
No change (0)weapon_rpgGives the player the Nuclear RPG, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it, so a player who already has it gets more ammo for it
No change (0)weapon_satchelGives the player satchel charges, or takes them away.
- Remove (-1) - Takes them away
- No change (0) - Changes nothing
- Give (1) - Gives them if the player doesn't have them yet
- Give (allow duplicate) (2) - Always gives them, so a player who already has them gets more
No change (0)weapon_snarkGives the player Pitbulls, or takes them away.
- Remove (-1) - Takes them away
- No change (0) - Changes nothing
- Give (1) - Gives them if the player doesn't have them yet
- Give (allow duplicate) (2) - Always gives them, so a player who already has them gets more
No change (0)weapon_spaGives the player the Saan Auto-Shotgun, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it, so a player who already has it gets more ammo for it
No change (0)weapon_swGives the player the Vindico Plasma Sniper Rifle, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it, so a player who already has it gets more ammo for it
No change (0)weapon_swordGives the player the Energy Sword, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it
No change (0)weapon_tripmineGives the player mines, or takes them away.
- Remove (-1) - Takes them away
- No change (0) - Changes nothing
- Give (1) - Gives them if the player doesn't have them yet
- Give (allow duplicate) (2) - Always gives them, so a player who already has them gets more
No change (0)weapon_warhammerGives the player the Fusion Warhammer, or takes it away.
- Remove (-1) - Takes it away
- No change (0) - Changes nothing
- Give (1) - Gives it if the player doesn't have it yet
- Give (allow duplicate) (2) - Always gives it
No change (0)weapon_wongGives the player Fists, or takes them away.
- Remove (-1) - Takes them away
- No change (0) - Changes nothing
- Give (1) - Gives them if the player doesn't have them yet
- Give (allow duplicate) (2) - Always gives them
No change (0)Values with a sign
A value of Set health, Set max health, Set armor, Set Co-op level or Set Co-op XP can start with one of these signs:
=- Sets the value+- Adds to the value-- Takes away from the value<- Sets the value if the current one is higher>- Sets the value if the current one is lower
Notes
- Taking health with
-can kill the player, but setting the health never does, because the lowest result is 1 - When the weapon in the player's hands is taken away, they switch to their best other weapon
- Only the game's own weapons and ammo work, and with
developer 1set in the console, the server console reports any other weapon name - The long jump module is lost when the player respawns
See also
game_player_equip- gives weapons and items to playersplayer_weaponstrip- takes the weapons of a player awayplayer_hasweapon- checks whether a player has a weapon
Changes since 1.38
game_player_settingsis new in SBO 2.0.0- New in SBO 2.1.0: the keys Set Co-op level and Set Co-op XP
