Garry's Mod

Garry's Mod

367 ratings
DREAMS module (v1.1)
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Cartoon, Scenic
File Size
Posted
Updated
5.691 MB
19 Feb @ 7:31pm
15 Jun @ 4:19pm
12 Change Notes ( view )

Subscribe to download
DREAMS module (v1.1)

In 1 collection by noskill
DREAMS
3 items
Description
This is a module! This will not do anything for your game in particular!

To fly around the example for funsies, put this in your console, and kill yourself to exit
lua_run player.GetAll()[1]:SetDream("example")
In short, this adds a custom player handler module that allows for clientside custom collisions. Dreams are built out of BSP-like solids (Think Hammer and VMFs)

Better documentation is coming soon on the Github Wiki
However, If you are a developer and looking to create mods using this module, you should really look over the code of it yourself to get a grasp on how it works. Its meant to be as customizable as possible while keeping a common interface for mods, sort of like the built in drive module but more complicated.

Github:
https://github.com/alexswad/dreams/tree/main/lua

Wiki (things on the wiki are most likely safe from changing during updates)
https://alexswad.github.io/dreams-wiki/

Example Room with available hooks:
https://github.com/alexswad/dreams/blob/main/lua/includes/dreams/example.lua

SCP 106 PD as an example
https://github.com/alexswad/gm-scp106-pd

please don't reupload or include this in your mod, add it as a required item instead
if you also make a mod let me know and I'll add it to the collection
Popular Discussions View All (1)
3
9 May @ 2:02pm
An idea for how this could be used.
Fox.Xd.
80 Comments
noskill  [author] 28 Aug @ 3:57pm 
Gonna push a fix, also I'm going to start working on the wiki again since people are trying to use this now
Chupacabr 27 Aug @ 4:31pm 
This can be caused if there are brushes on the map that are not rotated at a right angle.
Chupacabr 27 Aug @ 4:27pm 
I'm trying to convert my map
[dreams-main] addons/dreams-main/lua/dreams/lib/lib.lua:393: attempt to call global 'highest_mag' (a nil value)
1. calc_norm - addons/dreams-main/lua/dreams/lib/lib.lua:393
2. RotationMatrixFromNormals - addons/dreams-main/lua/dreams/lib/lib.lua:408
3. SolidToPhys - addons/dreams-main/lua/dreams/lib/vmf_convert.lua:342
4. ConvertFile - addons/dreams-main/lua/dreams/lib/vmf_convert.lua:448
5. unknown - addons/dreams-main/lua/dreams/lib/vmf_convert.lua:601
6. unknown - lua/includes/modules/concommand.lua:54
Zombiekill 17 Aug @ 2:07pm 
Hey is it possible to render also the materials from the dat file when loading it into a dream because i have converted a map into dat but when i enter the dream with the given dat it only shows the debug or the blackness of hell when debug is disabled so is still in development this idea or is it an glitch from my side?
Hmmtric 4 Aug @ 1:11pm 
Example: The SCP-096 nextbot throws you around in the "Dreams".
Hmmtric 4 Aug @ 1:03pm 
I have noticed that npc's can push you around in "Dreams".
Hmmtric 3 Aug @ 8:30am 
This is a great mod, wish they were more of it:steamthumbsup:
Albino 2 Aug @ 9:47am 
Im excited for the backrooms
47_CORRUPT 3 Jul @ 4:36pm 
Oh, my bad, thank you for the reply
noskill  [author] 3 Jul @ 3:57pm 
arccw and arc9 are incompatible, nothing I can do on my end afaik