-------------------------------------------------------------------------------- -- Arena Main File -- -------------------------------------------------------------------------------- function Main( Field ) cExecCheck "Main" local Var = InstanceField[ Field ] if Var == nil then ------------------------------------------------------------ -- ¾Æ·¹³ª Á¤º¸ ÃʱâÈ­ ------------------------------------------------------------ InstanceField[ Field ] = {} -- ¾Æ·¹³ª Å×ÀÌºí »ý¼º Var = InstanceField[ Field ] Var[ "MapIndex" ] = Field -- ¸Ê À妽º( Çʵå À妽º ) Var[ "KQLimitTime" ] = 0 -- ¾Æ·¹³ª ÁøÇà ½Ã°£ Var[ "InitialSec" ] = cCurrentSecond() -- ÃÖÃÊ ½ÇÇà ½Ã°£ Var[ "CurSec" ] = Var["InitialSec"] -- ÇöÀç ½Ã°£ Var[ "StepFunc" ] = InitArena -- ½ºÅÇ ÇÔ¼ö- -- ±ê¹ß Var[ "ArenaFlag" ] = {} Var[ "ArenaFlag" ][ RED_TEAM ] = {} Var[ "ArenaFlag" ][ BLUE_TEAM ] = {} --[[ Var[ "ArenaFlag" ][ RED_TEAM ] = { Handle = nil, PlayerHandle = nil, PlayerTeam = nil, Drop_LifeTime = nil, X = 0, Y = 0, GoalConditionNoticeTime = 0, Penalty = { Step = 0, CheckTime = 0, }, } --]] -- °ÔÀÌÆ® Var[ "ArenaGate" ] = {} Var[ "ArenaGate" ][ "Count" ] = 0 -- Å©¸®½ºÅ» ¼öÈ£¼® Var[ "ArenaStone" ] = {} Var[ "ArenaStone" ][ "Count" ] = 0 Var[ "ArenaStone" ][ "SkillUseTime" ] = {} -- Å©¸®½ºÅ» Var[ "ArenaCrystal" ] = { Handle = nil, VanishTime = nil, SkillUseTime = 0, } -- °í´ë ¾Æ·¹³ª ¿ë»ç Var[ "AncientArenaWarrior" ] = {} --[[ Var[ "AncientArenaWarrior" ][ 1 ] = { Handle = nil, RegenTime = nil, } --]] -- Ç÷¹À̾î Á¤º¸ ÃʱâÈ­ Var[ "Player" ] = {} --[[ Var[ "Player" ][ 1 ] = { Handle = nil, CharNo = nil, FlagPickSec = 0, InMap = false, TeamNumber = DEF_TEAM } --]] -- ÆÀ Á¤º¸ ÃʱâÈ­ Var[ "Team" ] = { [ RED_TEAM ] = { Score = 0, Member = {}, }, [ BLUE_TEAM ] = { Score = 0, Member = {}, }, } -- ¸Ê ·Î±×ÀÎ ÇÔ¼ö ¼³Á¤ cSetFieldScript ( Var["MapIndex"], MainLuaScriptPath ) cFieldScriptFunc( Var["MapIndex"], "MapLogin", "PlayerMapLogin" ) -- ÇÊµå ¼³Á¤ cSetCanUseReviveItem( Field, false ) -- ºÎÈ° ¾ÆÀÌÅÛ »ç¿ë ºÒ°¡ cSetCanUseReviveSkill( Field, false ) -- ºÎÈ° ½ºÅ³ »ç¿ë ºÒ°¡ cSetReviveDelayTime( Field, DelayTime[ "ReviveWaitTime" ] ) -- ºÎÈ° ½Ã°£ 3ÃÊ end -- 0.1ÃÊ ¸¶´Ù ½ÇÇà if Var["CurSec"] + 0.1 > cCurrentSecond() then return else Var["CurSec"] = cCurrentSecond() end -- ½ºÅÜÇÔ¼ö ½ÇÇà ( Functions/Progress.lua ) Var["StepFunc"] ( Var ) end