Skip to main content

game_player_settings

game_player_settings icon
Point entityPorted from Featureful

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.

KeyDescriptionDefault
Nametargetname

Triggering the entity changes the player who started the chain of triggers. See Common keys.

Fire on equiptarget

Names the entities to trigger after the change, and passes on the player as the activator.

Mastermaster

Names a master, and while the master is off, triggering the entity does nothing.

Set healthhealth

Sets 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 OverHealallow_overheal

Sets 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
Default No (0)
Set max healthmax_health

Sets the maximum health, with the same signs.

Set armorarmorvalue

Sets the armor, with the same signs.

Allow armor above 100allow_overcharge

Sets 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
Default No (0)
Long jumplongjump

Gives 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
Default No change (0)
Set Co-op levellevel

Sets 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.

Set Co-op XPxp

Sets 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.

Grenade launcher grenadesARgrenades

Sets 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 grenadesHand_Grenade

Sets how many hand grenades to give the player, up to the most a player can carry. A negative number takes that many away.

SatchelsSatchel_Charge

Sets how many satchels to give the player, up to the most a player can carry. A negative number takes that many away.

Trip minesTrip_Mine

Sets how many mines to give the player, up to the most a player can carry. A negative number takes that many away.

SnarksSnarks

Sets how many Pitbulls (weapon_snark) to give the player, up to the most a player can carry. A negative number takes that many away.

K444 ammoK444m

Sets 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.

Ben ammobenm

Sets 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.

Canon ammocanonm

Sets 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.

Chaingun ammochainm

Sets 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.

FA18 ammofa18m

Sets 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.

Federal ammofederalm

Sets 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.

NM33 ammonm33m

Sets 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.

PM66 ammopm66m

Sets 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.

RC28 ammorc28m

Sets 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.

SPA ammospam

Sets 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.

SW ammoswm

Sets 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_benweapon_ben

Gives 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
Default No change (0)
weapon_canonweapon_canon

Gives 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
Default No change (0)
weapon_chaingunweapon_chaingun

Gives 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
Default No change (0)
weapon_chainsawweapon_chainsaw

Gives 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
Default No change (0)
weapon_fa18weapon_fa18

Gives 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
Default No change (0)
weapon_federalweapon_federal

Gives 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
Default No change (0)
weapon_glauncherweapon_glauncher

Gives 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
Default No change (0)
weapon_handgrenadeweapon_handgrenade

Gives 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
Default No change (0)
weapon_k444weapon_k444

Gives 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
Default No change (0)
weapon_medikitweapon_medikit

Gives 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
Default No change (0)
weapon_nm33weapon_nm33

Gives 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
Default No change (0)
weapon_pm66weapon_pm66

Gives 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
Default No change (0)
weapon_rc28weapon_rc28

Gives 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
Default No change (0)
weapon_rpgweapon_rpg

Gives 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
Default No change (0)
weapon_satchelweapon_satchel

Gives 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
Default No change (0)
weapon_snarkweapon_snark

Gives 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
Default No change (0)
weapon_spaweapon_spa

Gives 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
Default No change (0)
weapon_swweapon_sw

Gives 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
Default No change (0)
weapon_swordweapon_sword

Gives 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
Default No change (0)
weapon_tripmineweapon_tripmine

Gives 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
Default No change (0)
weapon_warhammerweapon_warhammer

Gives 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
Default No change (0)
weapon_wongweapon_wong

Gives 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
Default 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 1 set in the console, the server console reports any other weapon name
  • The long jump module is lost when the player respawns

See also​

Changes since 1.38​

  • game_player_settings is new in SBO 2.0.0
  • New in SBO 2.1.0: the keys Set Co-op level and Set Co-op XP