Loner-StrikeReference

Reference

Events

44 Game Mode Studio nodes. Pick one for its pins, settings and limits.

eventRound StartedRuns when a round begins: freeze time is over and everyone can move.eventRound EndedRuns when a round ends.eventPlayer KilledRuns when a player dies.eventPlayer SpawnedRuns when a player comes alive (each round, or a respawn).eventPlayer JoinedRuns when a player (or bot) has joined the server.eventPlayer LeftRuns when a player leaves the server.eventBomb PlantedRuns when the bomb is planted.eventBomb DefusedRuns when the bomb is defused.eventBomb ExplodedRuns when the bomb goes off.eventPlayer UsedRuns when a player presses a button (func_button) with this name.eventPlayer TouchedRuns when a player walks into a trigger (trigger_multiple) with this name, at most once a second each.eventPlayer HurtRuns when a player takes damage, with the health it took (blocked damage doesn't count).eventTeam ChangedRuns once when a player joins a team or changes team (Spectator is No team).eventMap StartedRuns once when the map has loaded (before the first round): load map packs, set things up.eventNew RoundRuns when a new round is set up (freeze time starts), before Round Started.eventChat CommandRuns when a player says /command or !command in chat (shop for /shop and !shop); Arguments is the rest of the line ("/give 5": 5).eventPlayer SaidRuns when a player chats (anything; Team Only for team chat).eventFreeze Time EndedRuns when the freeze time ends and players can move.eventMap EndingRuns when the map ends (the scoreboard shows), just before the next map.eventWeapon FiredRuns when a player shoots (at most 10 times a second per player).eventReloadedRuns when a player starts reloading.eventHostage RescuedRuns when a player rescues a hostage.eventVIP EscapedRuns when the VIP escapes.eventPlayer About To Be HurtRuns just before a player takes damage.eventPlayer RevivedRuns when a downed player is brought back.eventDowned Player OutRuns when nobody revived a downed player in time.eventRound Time UpRuns when the mode's round clock reaches 0.eventCustom EventRuns when something calls this Custom Event (Call Custom Event, Set Timer by Event, or the map: an ls_event entity, or an info_target named lsev_<its map name>, when triggered).eventPlayer Pressed ButtonRuns when a player presses (or lets go of) a button the game knows: fire, right click, use, jump, duck, reload, walk or a move key.eventPlayer CommandRuns when a player uses a console command the mode names (ls_ and letters, like ls_dash): they can bind any key to it (bind f "ls_dash").eventPicked UpRuns when a player picks a weapon or an item up from the ground (not when they buy one or the mode gives it).eventDroppedRuns when a player drops a weapon (G, or the mode makes them).eventBegin OverlapRuns when something its filter counts goes into a trigger volume (Spawn Trigger Volume).eventEnd OverlapRuns when something leaves a trigger volume (or the volume is removed, or it died or left the server inside).eventEntity TouchedRuns when an entity touches another (props, projectiles, NPCs, creatures, players; not the world's walls and floors).eventBullet HitRuns where a shot lands: the shooter, the hit position, the surface's normal, what it hit (an entity, or World), the weapon and, on a player, where (head, chest...).eventPlayer LandedRuns when a player lands after a fall: how fast they were falling (units a second; over 580 hurts) and the fall damage the game gives for it (0 if Fall Damage Off).eventGrenade ThrownRuns when a player throws a grenade: who, the grenade (an entity: Set Grenade Fuse, Push, Remove Entity work on it), which kind and where.eventGrenade ExplodedRuns when a thrown grenade goes off (a smoke grenade when it starts smoking): who threw it, the grenade, which kind and where.eventOn Map Entity FiredRuns when a named entity of the map is triggered (by a button, a trigger, a timer or another entity) or used: its name, the entity, who set it off (a player, or nobody) and the entity that fired it.eventWeapon SwitchedRuns when a player takes out a weapon (a switch, a pick-up that goes to hand, a spawn): the player, the new weapon and the one before (short names: ak47, knife; empty when there was none), and the weapon entity.eventEntered Map ZoneRuns when a living player walks into one of the map's zones (checked four times a second).eventLeft Map ZoneRuns when a living player walks out of one of the map's zones (checked four times a second).eventOn TickRuns again and again, every Interval seconds (0.1: ten times a second; 0: as often as the mode's Limits setting lets it, 100 a second at first), all through the map.

Round Started

eventevent.round_started

Runs when a round begins: freeze time is over and everyone can move.

Outputs (1)
Then Flow
Goes on when it's done.
Notes (1)

The usual place to set a round up: give weapons, reset scores, show a message. It runs once per round for the whole server, not per player (use For Each Player for that).

Round Ended

eventevent.round_ended

Runs when a round ends. Winner is no team for a draw.

Outputs (3)
Then Flow
Goes on when it's done.
Winner Team
The team that won; no team for a draw.
Round number# Number
How many rounds have been played on this map, counting this one.

Player Killed

eventevent.player_killed

Runs when a player dies. Attacker is nobody when the world killed them (a fall, the bomb).

Outputs (10)
Then Flow
Goes on when it's done.
Victim Player
Who died.
Attacker Player
Who killed them; nobody for the world, and the victim themselves for a suicide.
Headshot Yes/No
Yes when the killing shot hit the head.
Weapon Text
The weapon's short name, as the kill feed shows it: ak47, knife, grenade, world.
Distance Number
How far apart they were, in units (a player is 72 units tall).
Team kill Yes/No
Yes when the attacker shot a teammate.
Suicide Yes/No
Yes when the victim killed themselves (a grenade, the Kill node, the kill command).
Killed by the world Yes/No
Yes when no player did it.
Weapon kind Weapon
Weapon kind: a weapon (ak47, awp, knife...). Values: none, ak47, m4a1, awp, scout, famas, galil, aug, sg552, mp5navy, p90, ump45, mac10, tmp, m3, xm1014, m249, deagle, usp, glock18, p228, fiveseven, elite, hegrenade, flashbang, smokegrenade, knife, c4, g3sg1, sg550.
Notes (1)

Runs once for every death. Attacker is nobody when the world did it (a fall, the bomb, a trigger_hurt); check with Is Valid before giving the attacker anything.

Player Spawned

eventevent.player_spawned

Runs when a player comes alive (each round, or a respawn).

Outputs (2)
Then Flow
Goes on when it's done.
Player Player
The player.
Notes (1)

Runs each time a player comes alive: every round, and after Respawn. The place for loadouts and per-player setup.

Player Joined

eventevent.player_joined

Runs when a player (or bot) has joined the server.

Outputs (2)
Then Flow
Goes on when it's done.
Player Player
The player.
Bots (1)

Runs once when someone (or a bot) has joined, before they pick a team.

Notes (1)

Runs once when someone (or a bot) has joined, before they pick a team. Per-player variables start fresh here.

Player Left

eventevent.player_left

Runs when a player leaves the server.

Outputs (2)
Then Flow
Goes on when it's done.
Player Player
The player.
Notes (1)

Runs as a player leaves. Their slot can be taken by someone else right after, so tidy up their variables here.

Player Used

eventevent.player_used

Runs when a player presses a button (func_button) with this name. Leave the name empty for any button.

Outputs (3)
Then Flow
Goes on when it's done.
Player Player
The player.
Button Entity
Button: an entity (a thing in the map).
Settings (1)
Button name
A name, as the map or the game knows it (letters, digits, _ . -).

Player Touched

eventevent.player_touched

Runs when a player walks into a trigger (trigger_multiple) with this name, at most once a second each. Empty name: any.

Outputs (3)
Then Flow
Goes on when it's done.
Player Player
The player.
Trigger Entity
Trigger: an entity (a thing in the map).
Settings (1)
Trigger name
A name, as the map or the game knows it (letters, digits, _ . -).
Notes (1)

Cost: Runs at most once a second per player, so a trigger can't flood the mode.

Player Hurt

eventevent.player_hurt

Runs when a player takes damage, with the health it took (blocked damage doesn't count). Hit Position: where a bullet or the knife struck (else the middle of the victim); Direction: which way the hit was going (from the attacker). Use Get Transform on Victim/Attacker for where they were.

Outputs (11)
Then Flow
Goes on when it's done.
Victim Player
Victim: a player.
Attacker Player
Attacker: a player.
Damage Number
Health taken by this hit.
Headshot Yes/No
Yes when a bullet or the knife hit the head.
Health left Number
Health left after it (0 or less: the hit killed them).
Hit where Text
Where a bullet hit: head, chest, stomach, arm, leg; body for anything else (grenades, falls).
Weapon Text
The weapon that did it: the attacker's gun or knife, hegrenade for a grenade, empty when no player did it.
Hit Position Vector
Hit Position: a position or direction (X, Y, Z).
Direction Vector
Direction: a position or direction (X, Y, Z).
Hit zone Hit Zone
Hit zone: where the hit landed (head, chest, stomach...). Values: generic, head, chest, stomach, left arm, right arm, left leg, right leg.
Notes (2)

Runs after the damage is done, with what was really taken: nothing when it was blocked, less when armor took some. To change the damage before it lands, use Player About To Be Hurt.

Cost: Runs on every hit, often many times a second in a firefight. Keep what follows it small.

New Round

eventevent.new_round

Runs when a new round is set up (freeze time starts), before Round Started.

Outputs (1)
Then Flow
Goes on when it's done.
Notes (1)

Runs as the new round is being set up, before freeze time. Players are respawning, so per-player work is better done in Player Spawned.

Chat Command

eventevent.chat_command

Runs when a player says /command or !command in chat (shop for /shop and !shop); Arguments is the rest of the line ("/give 5": 5).

Outputs (3)
Then Flow
Goes on when it's done.
Player Player
The player.
Arguments Text
Whatever was typed after the command: for /give 5, the text 5.
Settings (1)
Command (without /)
A name, as the map or the game knows it (letters, digits, _ . -). Default: shop.

Player Said

eventevent.player_said

Runs when a player chats (anything; Team Only for team chat).

Outputs (4)
Then Flow
Goes on when it's done.
Player Player
The player.
Text Text
The text.
Team only Yes/No
Team only: yes or no.
Notes (1)

Cost: Runs on every chat line. Fine for a few checks.

Weapon Fired

eventevent.weapon_fired

Runs when a player shoots (at most 10 times a second per player). Frequent: keep the flow short.

Outputs (3)
Then Flow
Goes on when it's done.
Player Player
The player.
Weapon Text
Weapon: text.
Notes (1)

Cost: Runs on every shot (at most ten times a second per player). Keep what follows it small, or a busy server slows down.

Player About To Be Hurt

eventevent.player_about_hurt

Runs just before a player takes damage. Block, scale or set the damage here (it happens straight after this flow).

Outputs (9)
Then Flow
Goes on when it's done.
Victim Player
Victim: a player.
Attacker Player
Attacker: a player.
Damage Number
Damage: a number.
Kind Text
Kind: text.
Headshot Yes/No
Headshot: yes or no.
Hit where Text
Hit where: text.
Hit zone Hit Zone
Hit zone: where the hit landed (head, chest, stomach...). Values: generic, head, chest, stomach, left arm, right arm, left leg, right leg.
Damage kind Damage Kind
Damage kind: the kind of damage (shot, slash, blast, burn, fall...). Values: other, shot, slash, blast, burn, fall, shock, drown, poison.
Notes (1)

Cost: Runs on every hit. Keep what follows it small.

Custom Event

eventevent.custom

Runs when something calls this Custom Event (Call Custom Event, Set Timer by Event, or the map: an ls_event entity, or an info_target named lsev_<its map name>, when triggered). Its inputs are its own (My mode, Custom events).

Outputs (1)
Then Flow
Goes on when it's done.
Settings (1)
Custom event
Picked from this mode's own pieces.

Player Pressed Button

eventin.pressed

Runs when a player presses (or lets go of) a button the game knows: fire, right click, use, jump, duck, reload, walk or a move key. It arrives with the player's ping, like everything they do. Only: wire a player (from a variable) to listen to one player only. Include bots: bots press buttons too.

Inputs (1)
Only this player Player
A player to listen to (from a variable, set when they're picked): nobody else's presses run it. Not wired: everyone's.
Outputs (3)
Then Flow
Goes on when it's done.
Player Player
Who pressed it.
Button Text
Which button, by name: attack, attack2, use, jump, duck, reload, walk, forward, back, left, right.
Settings (3)
Button
Pick one: Attack (fire), Attack 2 (right click), Use (E), Jump, Duck, Reload, Walk (Shift), Forward, Back, Move left, Move right, Any of these. Default: use.
When
Pick one: Pressed, Released. Default: pressed.
Include bots
On or off. Default: true.
Bots (1)

Include bots: bots press buttons too (on by default); untick it for something only people should set off.

Notes (2)

Works the same on your own game, a listen server and a dedicated Linux server: the server sees a button when the player's game sends it, so it arrives with their ping (a 100 ms player's press shows up about 100 ms after they pressed). Only buttons the game itself has: fire, right click, use, jump, duck, reload, walk and the move keys. For any other key, use Player Command (players bind the key to it). Include bots: bots press buttons too (on by default); untick it for something only people should set off.

Cost: A check of each player's buttons every server frame, only when a mode has this node; the flow runs only on a press.

Player Command

eventin.command

Runs when a player uses a console command the mode names (ls_ and letters, like ls_dash): they can bind any key to it (bind f "ls_dash"). Arguments is the rest of the line, as text only: it's never run. Each player can use it at most a few times a second (Player Command uses a second, in the mode's Limits settings).

Outputs (3)
Then Flow
Goes on when it's done.
Player Player
Who used the command.
Arguments Text
The rest of the line, as text (empty when there was none).
Settings (1)
Command (ls_...)
A name, as the map or the game knows it (letters, digits, _ . -). Default: ls_dash.
Limits (1)
Player Command uses a second
5 by default; hosts can raise it to 1000. Above 20 the server may slow down.
Notes (2)

A key the game has no button for (F, G, a mouse button) can still start a flow: name a command (ls_ and letters, like ls_dash), and players bind a key to it in their console (bind f "ls_dash"); Tell Player To Bind shows them the line. Arguments is whatever came after the command, as text only: the mode can read it, but it's never run as a command. Player Command uses a second (each player) keeps a held or scripted key from flooding the server: a setting in the mode's Limits group, 5 to start (the checks warn above 20).

Careful: Safe by design: the command name can only be ls_ and letters (never one of the game's own), and the arguments are never run.

Picked Up

eventitem.picked_up

Runs when a player picks a weapon or an item up from the ground (not when they buy one or the mode gives it). Item is its short name: ak47, kevlar, hegrenade...

Outputs (3)
Then Flow
Goes on when it's done.
Player Player
Who picked it up.
Item Text
Its short name: ak47, deagle, hegrenade, kevlar.
Notes (1)

Weapons and grenades from the ground (dropped ones, or a map's armoury), and armor from a map's armoury. Not what's bought, given by the mode, or handed out at spawn.

Dropped

eventitem.dropped

Runs when a player drops a weapon (G, or the mode makes them). On death: also when a dying player's weapon falls.

Outputs (3)
Then Flow
Goes on when it's done.
Player Player
Who dropped it.
Weapon Text
Its short name: ak47, deagle, c4.
Settings (1)
Also on death
On or off. Default: false.

Begin Overlap

eventvol.on_begin

Runs when something its filter counts goes into a trigger volume (Spawn Trigger Volume). Name: only volumes with this name (empty: any).

Outputs (3)
Then Flow
Goes on when it's done.
Volume Entity
Volume: an entity (a thing in the map).
Who Entity
Who: an entity (a thing in the map).
Settings (1)
Volume name
A name, as the map or the game knows it (letters, digits, _ . -).

End Overlap

eventvol.on_end

Runs when something leaves a trigger volume (or the volume is removed, or it died or left the server inside). Name: only volumes with this name (empty: any).

Outputs (3)
Then Flow
Goes on when it's done.
Volume Entity
Volume: an entity (a thing in the map).
Who Entity
Who: an entity (a thing in the map).
Settings (1)
Volume name
A name, as the map or the game knows it (letters, digits, _ . -).

Entity Touched

eventcol.on_touch

Runs when an entity touches another (props, projectiles, NPCs, creatures, players; not the world's walls and floors). Name: only an entity with this name (empty: any). The first touch per N seconds for each entity (players standing on a prop would touch it every frame).

Outputs (3)
Then Flow
Goes on when it's done.
Entity Entity
The entity.
Other Entity
Other: an entity (a thing in the map).
Settings (2)
Entity name
A name, as the map or the game knows it (letters, digits, _ . -).
Only the first touch per (seconds)
A number from 0.1 to 60. Default: 1.

Bullet Hit

eventcol.on_bullet

Runs where a shot lands: the shooter, the hit position, the surface's normal, what it hit (an entity, or World), the weapon and, on a player, where (head, chest...). At most once per shooter every N seconds (automatic weapons and shotguns would flood it).

Outputs (8)
Then Flow
Goes on when it's done.
Shooter Player
Shooter: a player.
Hit Position Vector
Hit Position: a position or direction (X, Y, Z).
Normal Vector
Normal: a position or direction (X, Y, Z).
Hit Entity Entity
Hit Entity: an entity (a thing in the map).
Hit World Yes/No
Hit World: yes or no.
Weapon Text
Weapon: text.
Hit where Text
Hit where: text.
Settings (1)
At most once per shooter every (seconds)
A number from 0.05 to 10. Default: 0.1.

Player Landed

eventcol.on_landed

Runs when a player lands after a fall: how fast they were falling (units a second; over 580 hurts) and the fall damage the game gives for it (0 if Fall Damage Off). Small hops don't count.

Outputs (4)
Then Flow
Goes on when it's done.
Player Player
The player.
Fall speed Number
Fall speed: a number.
Damage Number
Damage: a number.
Settings (1)
Only falls faster than
A number from 0 to 2000. Default: 250.

Grenade Thrown

eventevent.grenade_thrown

Runs when a player throws a grenade: who, the grenade (an entity: Set Grenade Fuse, Push, Remove Entity work on it), which kind and where. Type: only that kind.

Outputs (5)
Then Flow
Goes on when it's done.
Thrower Player
Thrower: a player.
Grenade Entity
Grenade: an entity (a thing in the map).
Kind Text
Kind: text.
Position Vector
The position.
Settings (1)
Type
Pick one: Any grenade, HE grenade, Flashbang, Smoke grenade. Default: any.

Grenade Exploded

eventevent.grenade_exploded

Runs when a thrown grenade goes off (a smoke grenade when it starts smoking): who threw it, the grenade, which kind and where. Type: only that kind.

Outputs (5)
Then Flow
Goes on when it's done.
Thrower Player
Thrower: a player.
Grenade Entity
Grenade: an entity (a thing in the map).
Kind Text
Kind: text.
Position Vector
The position.
Settings (1)
Type
Pick one: Any grenade, HE grenade, Flashbang, Smoke grenade. Default: any.

On Map Entity Fired

eventevent.map_fired

Runs when a named entity of the map is triggered (by a button, a trigger, a timer or another entity) or used: its name, the entity, who set it off (a player, or nobody) and the entity that fired it. Name: only that entity (empty: any named one). Map logic drives the mode without an ls_event.

Outputs (5)
Then Flow
Goes on when it's done.
Entity name Text
Entity name: text.
Entity Entity
The entity.
Activator Player
Activator: a player.
Caller Entity
Caller: an entity (a thing in the map).
Settings (1)
Entity name
A name, as the map or the game knows it (letters, digits, _ . -).
Limits (1)
Map entity kinds heard
96 by default; hosts can raise it to 256. Above 160 the server may slow down.

Weapon Switched

eventevent.weapon_switched

Runs when a player takes out a weapon (a switch, a pick-up that goes to hand, a spawn): the player, the new weapon and the one before (short names: ak47, knife; empty when there was none), and the weapon entity.

Outputs (5)
Then Flow
Goes on when it's done.
Player Player
The player.
New weapon Text
New weapon: text.
Old weapon Text
Old weapon: text.
Weapon entity Entity
Weapon entity: an entity (a thing in the map).

Entered Map Zone

eventevent.zone_enter

Runs when a living player walks into one of the map's zones (checked four times a second).

Outputs (2)
Then Flow
Goes on when it's done.
Player Player
The player.
Settings (1)
Zone
Pick one: Buy zone, Bomb site, Hostage rescue zone, Escape zone, VIP safety zone. Default: buy.

Left Map Zone

eventevent.zone_leave

Runs when a living player walks out of one of the map's zones (checked four times a second).

Outputs (2)
Then Flow
Goes on when it's done.
Player Player
The player.
Settings (1)
Zone
Pick one: Buy zone, Bomb site, Hostage rescue zone, Escape zone, VIP safety zone. Default: buy.

On Tick

eventevent.on_tick

Runs again and again, every Interval seconds (0.1: ten times a second; 0: as often as the mode's Limits setting lets it, 100 a second at first), all through the map. Delta is the seconds since the last time.

Outputs (2)
Then Flow
Goes on when it's done.
Delta Number
Delta: a number.
Settings (1)
Interval (seconds)
A number from 0 to 60. Default: 0.1.
Limits (1)
On Tick runs a second at most
100 by default; hosts can raise it to 1000. Above 100 the server may slow down.

Made from the app's own catalog (nodes.json, nodehelp.json, limits.ts), so it matches the app.