Skip to content

Commit 5d2398b

Browse files
committed
chore: preload scripts
and some clarifications
1 parent 44cc3a3 commit 5d2398b

3 files changed

Lines changed: 18 additions & 8 deletions

File tree

content/index/02_definitions.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,21 @@
55
In the game's console, you can execute commands, as well as bind keys to execute
66
commands. We define several classes of command.
77

8+
"Action Commands" are a subset of functional commands defined as any command which has
9+
a direct effect on the game world. This includes all player movement commands
10+
(`+forward`, `-forward`, `+duck`, etc), as well as commands such as `load`.
11+
812
"Functional Commands" are commands which have some effect on the run or the runner's
913
ability to perform it. The vast majority of commands fit into this category -
1014
effectively the only ones that don't are ones which impact timing, such as
1115
`sar_speedrun_result`, and purely cosmetic ones, such as `sar_hud_set_text`.
1216

13-
"Action Commands" are a subset of functional commands defined as any command which has
14-
a direct effect on the game world. This includes all player movement commands
15-
(`+forward`, `-forward`, `+duck`, etc), as well as commands such as `load`.
17+
"Non-functional Commands" are neither of the above. These are commands which have no
18+
effect on the run or the runner's ability to perform it. Examples include `sar_hud_set_text`
19+
and `sar_toast_create`, which only change the HUD.
20+
21+
There are different rules for each category of command, as detailed in the Commands
22+
section later on.
1623

1724
### Pause Abuse
1825

content/index/03_general-rules/01_commands.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ Allowed commands can be categorised as "action commands", "functional commands",
1313
commands). Any allowed command may be manually executed by typing it into the console
1414
at any point, including executing such commands indirectly through `exec` or aliases.
1515

16+
It is not allowed to set console variables that affect the player's movement to values
17+
that would cause the engine to produce NaN, infinite, or otherwise undefined values
18+
for the player's movement.
19+
1620
#### HUDs
1721

1822
SAR and the game itself provide various HUDs to the user, accessible through console

template.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
<meta name="description" content="{{PAGE_DESC}}">
2020
<meta property="og:description" content="{{PAGE_DESC}}">
2121
<meta name="twitter:description" content="{{PAGE_DESC}}">
22+
<script defer src="/scroll.js"></script>
23+
<script defer src="/mobile-menu.js"></script>
24+
<script defer src="/command-table.js"></script>
25+
<script defer src="/timestamp.js"></script>
2226
</head>
2327

2428
<body>
@@ -34,9 +38,4 @@ <h1>Portal 2 Rules</h1>
3438
{{CONTENT}}
3539
</main>
3640
</body>
37-
38-
<script src="/scroll.js"></script>
39-
<script src="/mobile-menu.js"></script>
40-
<script src="/command-table.js"></script>
41-
<script src="/timestamp.js"></script>
4241
</html>

0 commit comments

Comments
 (0)