diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2018-01-09 18:19:26 -0500 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2018-01-09 18:21:21 -0500 |
| commit | e2dc5bf1fec1e634a60801aca3acf41422e0c880 (patch) | |
| tree | d532e6e81a33c08c773d1e017335eca249fca822 /gamemode/init.lua | |
| parent | 6d46bb53c056bc42856ff8a0365843ef108ee9a5 (diff) | |
| download | artery-e2dc5bf1fec1e634a60801aca3acf41422e0c880.tar.gz artery-e2dc5bf1fec1e634a60801aca3acf41422e0c880.tar.bz2 artery-e2dc5bf1fec1e634a60801aca3acf41422e0c880.zip | |
Changed nrequire() to do the job of dataloader
As a side effect, this means that mods can now nrequire() from other
mods, and that the dataloader is depriciated.
Diffstat (limited to 'gamemode/init.lua')
| -rw-r--r-- | gamemode/init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gamemode/init.lua b/gamemode/init.lua index d822e81..adb2b94 100644 --- a/gamemode/init.lua +++ b/gamemode/init.lua @@ -1,4 +1,14 @@ +if CLIENT then return end + +local ouans = util.AddNetworkString +function util.AddNetworkString(str) + print("Added network string:",str) + ouans(str) +end + AddCSLuaFile( "shared.lua" ) AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile("nrequire.lua") include( "shared.lua" ) + +util.AddNetworkString = ouans |
