Skip to content

Latest commit

 

History

History
40 lines (36 loc) · 896 Bytes

README.md

File metadata and controls

40 lines (36 loc) · 896 Bytes

Meet SweatCI

SweatCI is a command interpreter highly inspired by the console interpreter in games like Half-Life 2, Team Fortress 2(which are both made in the Source Engine) and DDNet(or Teeworlds but I did not play that version)

How aliases works

alias !echo4EvrLmao "echo ez banana"
> !echo4EvrLmao
> ez banana
> ez banana
> ez banana
> ez banana
> ...
> !echo4EvrLmao
>
> // stopped spamming "ez banana"

in the console, the toggle alias is useless

> alias +a "echo on"; alias -a "echo off"
> +a
> on
>
> -a
> off

but in-game it's very important

> alias +forward "echo walking forward"; alias -forward "echo stopped walking forward"
> bind w +forward
> w pressed
> walking forward
>
> w released
> stopped walking forward
> // it works on events: onKeyPress and onKeyRelease

NOTE: console might be better off in a separate thread of the game