Full sources are available on GitHub: Github.com

  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
RSS Articles

header

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 a Half-Life level


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.


RSS Files
Critical Dynamics v1.0.0

Critical Dynamics v1.0.0

Full Version 2 comments

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...

Post comment Comments
headledss-chicken
headledss-chicken - - 28 comments

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.

Reply Good karma Bad karma+1 vote
C.S.Madisun
C.S.Madisun - - 431 comments

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.

Reply Good karma Bad karma+1 vote
Bernus.
Bernus. - - 171 comments

I like it

Reply Good karma Bad karma+1 vote
FKanun
FKanun - - 86 comments

The mapping looks promising. Looking forward to play this!

Reply Good karma Bad karma+1 vote
PsyWarVeteran
PsyWarVeteran - - 1,848 comments

Looks great, can't go wrong with the well made old-school style maps.

Reply Good karma Bad karma+2 votes
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account:

X