Garry's Mod

Garry's Mod

The Long Dark Redux - Gamemode
 此主题已被置顶,因此可能具有重要性
DangerKiddy  [开发者] 2019 年 7 月 24 日 上午 6:26
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..
最后由 DangerKiddy 编辑于; 2019 年 7 月 24 日 上午 6:40