diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2018-03-25 12:58:22 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2018-03-25 12:58:22 -0400 |
| commit | 025ef8554016a2647f31244cf6413d80dba91847 (patch) | |
| tree | 32280de04737bf4a90f96cfe3120c3fd10a06a76 /gamemode/core/pac/sv_pac.lua | |
| parent | 563f3e3960221fd9144e9adbde53c09392f772dd (diff) | |
| download | artery-025ef8554016a2647f31244cf6413d80dba91847.tar.gz artery-025ef8554016a2647f31244cf6413d80dba91847.tar.bz2 artery-025ef8554016a2647f31244cf6413d80dba91847.zip | |
Fix #3
Allows pacs that have been loaded on join to be removed
Also loads player data much sooner after the player spawns in.
Diffstat (limited to 'gamemode/core/pac/sv_pac.lua')
| -rw-r--r-- | gamemode/core/pac/sv_pac.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gamemode/core/pac/sv_pac.lua b/gamemode/core/pac/sv_pac.lua index 916430c..6c9a731 100644 --- a/gamemode/core/pac/sv_pac.lua +++ b/gamemode/core/pac/sv_pac.lua @@ -140,10 +140,12 @@ function p3.GetPacs(what) end --If a player joins the server, tell them all about the pacs that are applied -net.Receive("artery_getworldpacs",function(ln,ply) - net.Start("artery_giveworldpacs") - net.WriteTable(appliedpacs) - net.Send(ply) +hook.Add("PlayerLoadout","send_world_pacs",function(ply) + timer.Simple(1,function() + net.Start("artery_giveworldpacs") + net.WriteTable(appliedpacs) + net.Send(ply) + end) end) local max_pacs_in_cache = 10 |
