Loner-StrikeReference

Reference

Flow

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

flowFor Each PlayerRuns Each once for every player who fits, then Then.flowFor Each EntityRuns Each once for every entity of a kind or with a name (at most 512), then Then.flowPick Random PlayerPicks one player who fits at random (Found), or runs None.flowPick Random EntityPicks one entity of a kind or with a name at random (Found), or runs None.flowSequenceRuns each output in turn, top to bottom.flowDo OnceLets the flow through the first time only, until Reset.flowDo NLets the flow through N times, until Reset.flowGateFlow coming into Enter goes through only while the gate is open.flowFlip FlopGoes to A, then B, then A again...flowFor LoopRuns Loop Body once for each number from First to Last (at most 10000 times), then Completed.flowFor Loop with BreakA For Loop that stops early when flow comes into Break.flowWhile LoopRuns Loop Body while the condition is true (checked each time; at most Limit times), then Completed.flowSwitch on NumberGoes to the output whose case is the number (cases split by commas), or Default.flowSwitch on TextGoes to the output whose case is the text (capitals don't matter; cases split by commas), or Default.flowCall Custom EventRuns a Custom Event now, with these values (every Custom Event node for it, in the graphs' order).flowRerouteA bend in a wire, to keep the graph tidy.flowMulti GateEach time flow comes in, goes out the next output (in order, or random); after the last it stops, or starts over with Loop.flowDo Once Per PlayerLets the flow through once for each player, until Reset (everyone) or Reset Player (the player wired in then).

For Each Player

flowflow.for_each_player

Runs Each once for every player who fits, then Then. Who and Team can be wired (a variable, a Select); Only these goes through a list of players instead (Players In Radius...). Break stops early. For any list of your own, use Arrays > For Each.

Inputs (5)
Run Flow
Runs this node.
Break Flow
Stops the loop after the current player (Then still runs).
Who Who
Which players, as the built-in Who enum (wire a variable or a Select). Not wired: the Who setting. Values: Everyone in the game, Everyone alive, Everyone dead, Terrorists, Counter-Terrorists, Living Terrorists, Living Counter-Terrorists, Bots, People (not bots).
Team (overrides Who) Team
Only this team's players (connected, alive or not). Wired, it decides instead of Who.
Only these Array of Player
Go through these players instead of searching (from Players In Radius, a variable...). Players who left are skipped.
Outputs (4)
Each Flow
Runs once for every item.
Player Player
The player.
Index# Number
How many players came before this one (0 for the first).
Then Flow
Goes on when it's done.
Settings (1)
Who
Pick one: Everyone in the game, Everyone alive, Everyone dead, Terrorists, Counter-Terrorists, Living Terrorists, Living Counter-Terrorists, Bots, People (not bots). Default: alive.
Limits (2)
Loop steps a frame
20000 by default; hosts can raise it to 2000000. Above 200000 the server may slow down.
Loop steps in a Function
1000000 by default; hosts can raise it to 10000000. Above 2000000 the server may slow down.
Notes (2)

Runs Each once for every player that matches, then Then. The Player pin is the current one inside Each. Who is the setting until something is wired into it (a variable of the Who enum, a Select); Team, when wired, decides instead. For a list you made yourself, use Arrays > For Each.

Cost: At most 32 players, so it's cheap. Inside a Repeat that ticks often, it adds up.

For Each Entity

flowflow.for_each_entity

Runs Each once for every entity of a kind or with a name (at most 512), then Then. The kind or name can be wired; Only these goes through a list of entities instead. Break stops early. For any list of your own, use Arrays > For Each.

Inputs (4)
Run Flow
Runs this node.
Break Flow
Stops the loop after the current entity (Then still runs).
Kind or name Text
The kind (classname) or name to look for, by the Which setting. Not wired: the Kind or name setting.
Only these Array of Entity
Go through these entities instead of searching (from Find Entities, Entities In Radius...). Removed ones are skipped.
Outputs (4)
Each Flow
Runs once for every item.
Entity Entity
The entity.
Index# Number
How many entities came before this one (0 for the first).
Then Flow
Goes on when it's done.
Settings (2)
Which
Pick one: Of this kind (classname), With this name. Default: class.
Kind or name
A name, as the map or the game knows it (letters, digits, _ . -). Default: ls_respawn_point.
Limits (2)
Loop steps a frame
20000 by default; hosts can raise it to 2000000. Above 200000 the server may slow down.
Loop steps in a Function
1000000 by default; hosts can raise it to 10000000. Above 2000000 the server may slow down.
Notes (1)

Cost: Searches the whole map each time it runs. Fine at a round's start; in a fast Repeat it can slow the server.

Pick Random Player

flowflow.pick_player

Picks one player who fits at random (Found), or runs None. Who and Team can be wired; Only these picks from a list of players instead.

Inputs (4)
Run Flow
Runs this node.
Who Who
Which players, as the built-in Who enum (wire a variable or a Select). Not wired: the Who setting. Values: Everyone in the game, Everyone alive, Everyone dead, Terrorists, Counter-Terrorists, Living Terrorists, Living Counter-Terrorists, Bots, People (not bots).
Team (overrides Who) Team
Only this team's players. Wired, it decides instead of Who.
Only these Array of Player
Pick from these players instead of searching (players who left are skipped).
Outputs (3)
Found Flow
Goes on when it's done.
None Flow
Runs when nothing was found.
Player Player
The player.
Settings (1)
Who
Pick one: Everyone in the game, Everyone alive, Everyone dead, Terrorists, Counter-Terrorists, Living Terrorists, Living Counter-Terrorists, Bots, People (not bots). Default: alive.

Pick Random Entity

flowflow.pick_entity

Picks one entity of a kind or with a name at random (Found), or runs None. The kind or name can be wired; Only these picks from a list of entities instead.

Inputs (3)
Run Flow
Runs this node.
Kind or name Text
The kind (classname) or name to look for, by the Which setting. Not wired: the Kind or name setting.
Only these Array of Entity
Pick from these entities instead of searching.
Outputs (3)
Found Flow
Goes on when it's done.
None Flow
Runs when nothing was found.
Entity Entity
The entity.
Settings (2)
Which
Pick one: Of this kind (classname), With this name. Default: class.
Kind or name
A name, as the map or the game knows it (letters, digits, _ . -). Default: info_player_deathmatch.

Sequence

flowflow.sequence

Runs each output in turn, top to bottom.

2 shown; add up to 32 with + Add pin.

Inputs (1)
Run Flow
Runs this node.
Outputs (2)
Then 0 Flow
Runs on Then 0.
Then 1 Flow
Runs on Then 1.
Settings (1)
Outputs#
A number from 1 to 32. Default: 2.
Notes (1)

Up to 32 outputs: press + Add pin on the node (or set Outputs in Details); the minus by it takes the last one off when nothing is wired to it.

Do Once

flowflow.do_once

Lets the flow through the first time only, until Reset.

Inputs (2)
Run Flow
Runs this node.
Reset Flow
Lets it run again.
Outputs (1)
Completed Flow
Goes on when it's done.
Settings (1)
Start closed
On or off. Default: false.

Do N

flowflow.do_n

Lets the flow through N times, until Reset.

Inputs (3)
Run Flow
Runs this node.
Reset Flow
Lets it run again.
N# Number
The n. Leave it empty to use the setting.
Outputs (2)
Exit Flow
Goes on when it's done.
Counter Number
Counter: a number.
Settings (1)
N#
A number from 1 to 10000. A wire into the pin of the same name is used instead. Default: 3.

Gate

flowflow.gate

Flow coming into Enter goes through only while the gate is open.

Inputs (4)
Enter Flow
Runs this node.
Open Flow
Opens the gate.
Close Flow
Closes the gate.
Toggle Flow
Opens or closes the gate.
Outputs (1)
Exit Flow
Goes on when it's done.
Settings (1)
Start closed
On or off. Default: true.

Flip Flop

flowflow.flipflop

Goes to A, then B, then A again... Is A says which it just did.

Inputs (1)
Run Flow
Runs this node.
Outputs (3)
A Flow
Runs on A.
B Flow
Runs on B.
Is A Yes/No
Is A: yes or no.

For Loop

flowflow.for_loop

Runs Loop Body once for each number from First to Last (at most 10000 times), then Completed.

Inputs (3)
Run Flow
Runs this node.
First Number
First: a number. Leave it empty to use the setting.
Last Number
Last: a number. Leave it empty to use the setting.
Outputs (3)
Loop Body Flow
Runs once for every step.
Index# Number
Index: a number.
Completed Flow
Goes on when it's done.
Settings (2)
First
A number from -100000 to 100000. A wire into the pin of the same name is used instead. Default: 0.
Last
A number from -100000 to 100000. A wire into the pin of the same name is used instead. Default: 9.
Limits (2)
Loop steps a frame
20000 by default; hosts can raise it to 2000000. Above 200000 the server may slow down.
Loop steps in a Function
1000000 by default; hosts can raise it to 10000000. Above 2000000 the server may slow down.
Notes (1)

Cost: Each step runs everything wired to Body. Thousands of steps in one go can stall the server for a moment.

For Loop with Break

flowflow.for_loop_break

A For Loop that stops early when flow comes into Break.

Inputs (4)
Run Flow
Runs this node.
Break Flow
Stops the loop.
First Number
First: a number. Leave it empty to use the setting.
Last Number
Last: a number. Leave it empty to use the setting.
Outputs (3)
Loop Body Flow
Runs once for every step.
Index# Number
Index: a number.
Completed Flow
Goes on when it's done.
Settings (2)
First
A number from -100000 to 100000. A wire into the pin of the same name is used instead. Default: 0.
Last
A number from -100000 to 100000. A wire into the pin of the same name is used instead. Default: 9.
Limits (2)
Loop steps a frame
20000 by default; hosts can raise it to 2000000. Above 200000 the server may slow down.
Loop steps in a Function
1000000 by default; hosts can raise it to 10000000. Above 2000000 the server may slow down.

While Loop

flowflow.while

Runs Loop Body while the condition is true (checked each time; at most Limit times), then Completed.

Inputs (2)
Run Flow
Runs this node.
Condition Yes/No
Condition: yes or no. Needs a wire.
Outputs (2)
Loop Body Flow
Runs once for every step.
Completed Flow
Goes on when it's done.
Settings (1)
Limit
A number from 1 to 10000. Default: 1000.
Limits (2)
Loop steps a frame
20000 by default; hosts can raise it to 2000000. Above 200000 the server may slow down.
Loop steps in a Function
1000000 by default; hosts can raise it to 10000000. Above 2000000 the server may slow down.
Notes (2)

Repeats Body while the condition is true. Limit stops it after that many times, so a condition that never turns false can't freeze the server.

Careful: A loop that never ends is stopped by Limit; the Problems panel says when that happened.

Switch on Number

flowflow.switch_num

Goes to the output whose case is the number (cases split by commas), or Default.

3 shown; add up to 16 with + Add pin.

Inputs (2)
Run Flow
Runs this node.
Selection Number
Selection: a number. Needs a wire.
Outputs (1)
Default Flow
Runs when no case matches.
Settings (1)
Cases
The cases, separated by commas; each gets its own flow pin. Default: 1,2,3.

Switch on Text

flowflow.switch_text

Goes to the output whose case is the text (capitals don't matter; cases split by commas), or Default.

2 shown; add up to 16 with + Add pin.

Inputs (2)
Run Flow
Runs this node.
Selection Text
Selection: text. Needs a wire.
Outputs (1)
Default Flow
Runs when no case matches.
Settings (1)
Cases
The cases, separated by commas; each gets its own flow pin. Default: yes,no.

Call Custom Event

flowevent.call

Runs a Custom Event now, with these values (every Custom Event node for it, in the graphs' order).

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

Multi Gate

flowflow.multi_gate

Each time flow comes in, goes out the next output (in order, or random); after the last it stops, or starts over with Loop. Reset starts again from Start index.

3 shown; add up to 32 with + Add pin.

Inputs (2)
Run Flow
Runs this node.
Reset Flow
Lets it run again.
Outputs (2)
Out 0 Flow
Runs on Out 0.
Out 1 Flow
Runs on Out 1.
Settings (4)
Outputs#
A number from 1 to 32. Default: 3.
Random
On or off. Default: false.
Loop
On or off. Default: false.
Start index
A number from 0 to 7. Default: 0.
Notes (1)

Up to 32 outputs: press + Add pin on the node (or set Outputs in Details); the minus by it takes the last one off when nothing is wired to it.

Do Once Per Player

flowflow.do_once_per_player

Lets the flow through once for each player, until Reset (everyone) or Reset Player (the player wired in then).

Inputs (4)
Run Flow
Runs this node.
Reset Flow
Lets it run again.
Reset Player Flow
Runs Reset Player.
Player Player
The player. Needs a wire.
Outputs (1)
Completed Flow
Goes on when it's done.

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