RPG X
Garry's Mod roleplay gamemode, derived from Sandbox.
- Gamemode folder name:
rpgx(+gamemode rpgx)
Running a server
- Server settingsEvery convar, with its default and what it does.
- Ranks and permissionsThe three ranks, setting them with or without ULX, and adding your own permissions.
- DatabaseSQLite or MySQL, moving between them, every table, and saving from addons.
Building a world
- Enemy spawnsPlacing spawn points with the toolgun: enemies, levels, hives and respawning.
- Shops and questsGiving an NPC a shop or quests, and adding your own kinds of quest task.
Playing
- Inventory and hotbarThe hotbar, the inventory window, death drops and lootable containers.
- Stamina and manaPools, refilling, combat, training, and buffs and debuffs.
- GunsStamina per round, the one spare magazine, and changing any gun's values.
- Chat and voiceGlobal and local chat, and voice that fades with distance.
- Corpses and F2Corpses that fade away, and each player's own settings window.
Scripting
- Scripted buffsBuffs and debuffs as files, like SWEPs: putting them on players and NPCs, and writing your own.
Writing an addon
RPG X is built to be extended. These are the places an addon can plug in:
- Adding permissions
GAMEMODE:RegisterPermission- Ranks and permissions - Saving things from code
DB:RegisterTable- Database - Containers
GAMEMODE:ContainerCreate- Inventory and hotbar - Stamina and mana
RPGXResources- Stamina and mana - Buffs and debuffs
RPGXStatuses- Stamina and mana - Guns
GAMEMODE:WeaponOverride- Guns - Corpses and F2
GAMEMODE:AddClientSetting- Corpses and F2 - Task types
RPGXTaskTypes- Shops and quests - Scripted buffsScripted buffs