I am trying to port a gamemode into gmod 13, but couldn't find what this GetStageTime() actually does, making it rather hard to figure out how to replace it. Does anyone know an alternative?
I did a search on the whole gmod folder and this is where it turns up:
Search "GetStageTime" (6 hits in 3 files)
D:\srcds\garrysmod\gamemodes\waterworld\gamemode\cl_hud.lua (1 hit)
Line 102: local StageStart, StageDuration = GetGlobalFloat( "StageStart" ), GAMEMODE:GetStageTime()
D:\srcds\garrysmod\gamemodes\waterworld\gamemode\sh_game.lua (2 hits)
Line 30: function GM:GetStageTime()
Line 73: local StageDuration = self:GetStageTime()
D:\srcds\garrysmod\gamemodes\waterworld\gamemode\sv_game.lua (3 hits)
Line 295: local Time = self:GetStageTime()
Line 681: local Time = self:GetStageTime()
Line 706: local Time = self:GetStageTime()
Go to line 30 in the file
D:\srcds\garrysmod\gamemodes\waterworld\gamemode\s h_game.lua (2 hits)
That is where the function is defined. If you can't figure it out still then post that function here.
Humm, now the client isn't getting cl_init.lua even though it was working fine before.
This is at the top of init.lua
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( "shared.lua" )
// Include and send shared files
local Files = file.Find( GM.Root .. "/gamemode/sh_*.lua", "LUA" )
for _, File in pairs( Files ) do
include( File )
if SERVER then AddCSLuaFile( File ) end
end
// Include server files
local Files = file.Find( GM.Root .. "/gamemode/sv_*.lua", "LUA" )
for _, File in pairs( Files ) do
include( File )
end
// Send client files
local Files = file.Find( GM.Root .. "/gamemode/cl_*.lua" , "LUA" )
for _, File in pairs( Files ) do
AddCSLuaFile( File )
end
// Send vgui files
local Root = GM.Root .. "/gamemode/vgui/"
local Files = file.Find( Root .. "*.lua" , "LUA" )
for _, File in pairs( Files ) do
AddCSLuaFile( Root .. File )
end
Sorry, you need to Log In to post a reply to this thread.