Game inheritance in s&box

Started by Omni · 20 hours ago · 1 reply · 74 views

Omni
Member
JoinedAug 2021 Posts1 Score545
Hey everyone!

I've recently started exploring game development in s&box, and I have a question about extending existing games.

Is there a proper way to create a game that inherits from another game?

For example, in Garry's Mod, you could use DeriveGamemode("sandbox") to create a custom gamemode based on sandbox, override existing functions, and add your own functionality on top of it. Meanwhile, the original sandbox gamemode would remain independent and could receive updates without requiring you to modify its source code.

I haven't found a similar mechanism in s&box so far. From what I understand, the closest approach right now would be to fork an existing game's repository on GitHub, build on top of it, and periodically merge upstream changes.

Is there a built-in or recommended way to achieve something similar to Garry's Mod's gamemode derivation in s&box? Or is maintaining a fork currently the best approach?
sudintlink
Member
JoinedApr 2026 Posts7 Score1,816
That would be nice, it would be very good if they had a template at least with just the damage, respawn, and item inventory system built in. It would be so much easier for non-devs or beginners to get started making something.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.