Because GoldSrc scripting is generally janky and any combinatorial logic gets tedious rapidly, needing you to work around the idiosyncrasies of multisource and togglable entities, I decided to implement a scripting language in the GoldSrc engine.
I wanted a map-controllable sandboxed environment that did not require learning a new language, sullying yourself with 1-indexed arrays, or using a syntax too dissimilar to C.
I went with WASM so any language that compiles down to it will work (e.g. C, Rust, Go, COBOL even), and chose to embed wasm-micro-runtime in Half-Life.
While the Critical Dynamics mod is still in development, the sources for the WASM integration are already available. Do mind that it is a work in progress, the native interface can and will change depending on what the mod needs.
In its current state it can supplant many if not all multisource/multi_manager/trigger_relay spaghetti with code as clean as you can write.
Sources and demos are available in the Half-Life WASM repository.
Conway's Game of Life running inside the sandbox.
This is not implemented in the game's code but in a .wasm controlled by the BSP.
First and probably last release of the mod. It is short and has no ending, don't expect much. Please unzip in your Half-Life folder and restart Steam...
This crashes fr me every time I start it. Proabably because I can't play on the 25th Anniversary edition. Can there be a patch? If you don't mind.
It's a shame this ends as abruptly as it does, because I was actually really enjoying it. There's some solid and well sign-posted level design, the new voices are fun and it's all pretty great.
I like it
The mapping looks promising. Looking forward to play this!
Looks great, can't go wrong with the well made old-school style maps.