forked from TeamUlysses/ulib
Fixes for last minute changes at GM13 launch
This commit is contained in:
parent
adf25122cf
commit
f46c330bab
@ -49,8 +49,6 @@ v2.50 - *(00/00/00)*
|
||||
* [FIX] The usual assortment of garry breakages.
|
||||
* [FIX] Changed away from our custom implementation of datastream to use Garry's new net library.
|
||||
* [CHANGE] Lots of changes to match GM13.
|
||||
|
||||
v2.43 - *(00/00/00)*
|
||||
* [CHANGE] NumArg now allows for time string format.
|
||||
|
||||
v2.42 - *(01/01/12)*
|
||||
|
@ -252,7 +252,7 @@ local function doInvis()
|
||||
remove = false
|
||||
if player:Alive() and player:GetActiveWeapon():IsValid() then
|
||||
if player:GetActiveWeapon() ~= t.invis.wep then
|
||||
timer.Simple( 0.05, ULib.invisible, player, true, t.invis.vis )
|
||||
timer.Simple( 0.05, function () ULib.invisible( player, true, t.invis.vis ) end )
|
||||
t.invis.wep = player:GetActiveWeapon()
|
||||
end
|
||||
end
|
||||
@ -463,7 +463,7 @@ function ULib.spawn( player, bool )
|
||||
local t = player.ULibSpawnInfo
|
||||
player:SetHealth( t.health )
|
||||
player:SetArmor( t.armor )
|
||||
timer.Simple( 0.1, doWeapons, player, t )
|
||||
timer.Simple( 0.1, function() doWeapons( player, t ) end )
|
||||
player.ULibSpawnInfo = nil
|
||||
end
|
||||
end
|
||||
|
@ -343,7 +343,7 @@ function ULib.pcallError( ... )
|
||||
return unpack( returns )
|
||||
end
|
||||
|
||||
--- TEMP fix for garry's broken API
|
||||
--- TEMP fix for garry's broken API (Hopefully he fixes this soon, still broken as of official GM13 release)
|
||||
|
||||
local oldExists = file.Exists
|
||||
function file.Exists( path, option )
|
||||
@ -361,4 +361,4 @@ function file.Read( path, option )
|
||||
path = "data/" .. path
|
||||
end
|
||||
return oldRead( path, option )
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user