Garry's Mod

Garry's Mod

The Long Dark Redux - Gamemode
 This topic has been pinned, so it's probably important
DangerKiddy  [developer] 24 Jul, 2019 @ 6:26am
How to create addon for this gamemode
LUA KNOWLEDGE NEEDED

HOW TO CREATE A MAP SUPPORT:

Create folder in "Garry's Mod/garrysmod/addons/anyfoldername/lua/autorun/tldredux/maps/MAPNAME/"
and create here file "map.lua"

All is pretty simple, if you want, you can look at original files of gamemode(Same path), but:

Now in lua file create table:
TLDR.Map = { }

And here you can add more tables which means you create new spawnable loot

{ Position = Vector(), Angle = Angle(), Chance = 50, // of spawn Type = "Food", // Types: Food, Item, CustomEnt Ent = "tldr_crate" // optional, for using "CustomEnt" }

and go with it like that:
*Image*

HOW TO CREATE A LANGUAGE SUPPORT:

Run gmod and type in console "gmod_language" to see language name IN GAME
For me it would be "ru"

Now create folder in "Garry's Mod/garrysmod/addons/anyfoldername/lua/autorun/tldredux/lang/"
and create here file "ru.lua"
Now go to here: Language file[pastebin.com]
Copy-paste it in your language file and just replace all sentances at your's

For me it would be like that: *Image*

HOW TO CREATE A CUSTOM LOOT:

video soon..
Last edited by DangerKiddy; 24 Jul, 2019 @ 6:40am