mirror of
https://github.com/etlegacy/etlegacy-lua-scripts.git
synced 2024-11-25 13:51:20 +00:00
lua: use levelTime to get ms
This commit is contained in:
parent
e88ed0a651
commit
9fe9ccbd97
1 changed files with 1 additions and 5 deletions
|
@ -17,7 +17,6 @@ timer3 = 25
|
|||
timer4 = 30
|
||||
timer5 = 35
|
||||
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------------
|
||||
-------------------------------------------------------------------------------------------------------------------
|
||||
-------------------------------------------------------------------------------------------------------------------
|
||||
|
@ -26,8 +25,7 @@ timer5 = 35
|
|||
function et_InitGame( levelTime, randomSeed, restart )
|
||||
et.RegisterModname( modname .. " " .. version )
|
||||
|
||||
local milliseconds = et.trap_Milliseconds() -- is this right way ?
|
||||
local a = (milliseconds*1000)%60
|
||||
local a = (levelTime*1000)%60
|
||||
|
||||
if(a == timer)
|
||||
then et.trap_SendConsoleCommand( et.EXEC_NOW, "cp \"" .. banner .."^7\n" )
|
||||
|
@ -45,8 +43,6 @@ function et_InitGame( levelTime, randomSeed, restart )
|
|||
else
|
||||
et.trap_SendConsoleCommand( et.EXEC_NOW, "cp \"" .. "NO BANNERS" .."^7\n" )
|
||||
|
||||
return milliseconds
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue