Compare commits

..

No commits in common. "fa800eb51f208f530ec923dbc71cb0601a081de3" and "ee92e0cc19ca222980968bba5b1dcaaf091f0a8d" have entirely different histories.

2 changed files with 3 additions and 8 deletions

View file

@ -124,10 +124,10 @@ local meta = FindMetaTable("Player")
if SERVER then
function meta:DataTheft_Bank()
local dbtbl = ents.FindByClass("br_databank")
local bank = dbtbl[math.random(#dbtbl)]
local bank = dbtbl[math.random(1, #dbtbl)]
if bank then
self:SetNW2Entity("DataBank", bank)
end
end
end
end

View file

@ -9,11 +9,6 @@ if SERVER then
net.Broadcast()
for _, v in ipairs(player.GetAll()) do
v:DataTheft_Bank()
v:SetNW2Int("DataCubes", 0)
v:SetNW2Int("DataBanked", 0)
if v:GetMoveType() == MOVETYPE_NOCLIP then
v:SetMoveType(MOVETYPE_WALK)
v:Spawn()
@ -112,4 +107,4 @@ if CLIENT then
hook.Add("BeatrunHUDCourse", "DataTheftHUDName", DataTheftHUDName)
chat.AddText(Color(200, 200, 200), language.GetPhrase("beatrun.datatheft.start"))
end)
end
end