meetric1 / gmod-infinite-map

GNU General Public License v3.0
179 stars 30 forks source link

GMod Infinite Map made with - mee++ Discord

Overview

This is a garrys mod addon that adds a map to the game called gm_infinite, as the title suggests this map visually appears infinite This is partially inspired by gm_infiniteflatgrass (from the Gravity Hull addon), but the map was very buggy and mostly impractical for use, especially when it comes to planes and ACF cars. Since the original creator of Gravity Hull is (presumably) dead, I am attempting to recreate it (Only the infinite map).

Documentation

Documentation can be found here: https://github.com/Mee12345/gmod-infinite-map/wiki/Documentation It explains (to the best of my ability) how to set up an infinite map, as well as all of the provided functions that are avalible on the lua side. I apologize in advance if it is difficult to read or understand. Hopefully the API will improve over time.

This mod attempts to recreate gm_infiniteflatgrass with more features including:

Stuff I am NOT doing:

How It Works

The map isnt actually infinite, its impossible to go past the source bounds, so the entirety of the play space in the map is occupied in the same location. A hook is used to determine which props should and should not collide, and all entities are given perceived visual offsets per entity depending on which chunk (or cell) they are in, giving the illusion the map is presumably infinite (You cant do anything physical past the source boundery, but you can render things past it). The original Gravity Hull addon used this same method with "Cells" (But I call them chunks)

For better addon support this mod currently detours the following functions:

SERVER:

CLIENT