return function (self,mob)
local ai = mob.MobAIComponent
local kb = mob.MobKnockbackComponent
local rb = mob.MobRigidbodyComponent
if (not isvalid(rb)) then
if (isvalid(ai)) then
ai:EnableNextControlTimer(0.1)
end
return
end
if (not mob.Visible) then
ai:EnableNextControlTimer(0.1)
return
end
local fh = rb.LastFoothold
if (fh == 0) then
--log("last foothold is 0")
--ai:EnableNextControlTimer(0.1)
end
local now = _UtilLogic.ServerElapsedSeconds
if (now < ai.NextActionTime) then
ai:EnableNextControlTimer(math.max(ai.NextActionTime - now, 0) + 0.1)
return
end
local target = _UserService.LocalPlayer
local nextAction = 0
local newInputX = nil
local mobX = mob.TransformComponent.WorldPosition.x
if (isvalid(target) and ai.LocalUnchaseTick < 7) then
if (ai.AttackWasLast) then
nextAction = _GlobalRand32:RandomIntegerRange(200, 900) / 1000
else
nextAction = _GlobalRand32:RandomIntegerRange(100, 160) / 1000
end
local targetX = target.TransformComponent.WorldPosition.x + 0.5
newInputX = targetX > mobX and 1 or -1else
nextAction = (_GlobalRand32:RandomIntegerRange(100, 300) / 1000)
newInputX = _GlobalRand32:RandomIntegerRange(-1, 1)
end
local platforms = mob.CurrentMap.PlatformInfoComponent
local timelines = {}
local timelineIndex = 0
--log("platform left x (fh=%d)", platform.left.x, platform.left.foothold.Id)
--log("platform right x (fh=%d)", platform.right.x, platform.right.foothold.Id)
local lastTimeline = 0
local playerFh = _UserService.LocalPlayer.WsUserController.LastFoothold
if (playerFh == 0 or platforms.ZMass[playerFh] ~= ai.LocalStartChaseZMass) then
--ai.LocalUnchaseTick += 1
--ai:IncUnTick()
local rb = mob.MobRigidbodyComponent
end
local function makeCommand(cmd, value, timeline, nextActionTime)
timelines[timelineIndex + 1] = {cmd, value, timeline - lastTimeline, nextActionTime}
timelineIndex += 1
lastTimeline = timeline
end
makeCommand(_MobActionPartType.Move, newInputX, 0, nextAction)
ai.NextRandomJump = math.max(ai.NextRandomJump, now + 1)
kb:SetShoeAttr(0)
if (timelineIndex > 0) then
mob.CurrentMap.LifeControllerComponent:RequestControl(mob, timelines, timelineIndex, false)
end
ai:EnableNextControlTimer(nextAction)
end
지금 뉴비들의 관건인 루나가 저거노?
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 20077 | 01-27 | 480 | ||
| 20076 | 01-27 | 310 | ||
| 20075 | 옛날에+2 | 01-27 | 221 | |
| 20074 | 01-27 | 427 | ||
| 20073 | 01-27 | 176 | ||
| 20072 | 01-27 | 485 | ||
| 20071 | 01-27 | 509 | ||
| 20070 | 01-27 | 259 | ||
| 20069 | 01-27 | 224 | ||
| 20068 | 666행님꺼+6 | 01-27 | 391 | |
| 20067 | 01-27 | 213 | ||
| 20066 | 01-27 | 132 | ||
| 20065 | 01-27 | 727 | ||
| 20064 | 01-27 | 174 | ||
| 20063 | 01-27 | 353 | ||
| 20062 | 01-27 | 314 | ||
| 20061 | 01-27 | 284 | ||
| 20060 | 메이플랜드 랜계+2 | 01-27 | 188 | |
| 20059 | 01-27 | 128 | ||
| 20058 | 01-27 | 659 |
댓글11
선생님 주석이 어디에..
안달았음
줄 서봅니다
이건 그냥 스크랩트 복사해온거아냐..?
주석이 뭔지 몰라요?
몰라 그냥 줍줍이가 할라니까 너무 힘들어;;;
2시간넘게 헤메고 있어 ㅋㅋㅋ하
풋홀드쪽 주석달라는거아닌가..?
형 그냥 짜증나서 형꺼복붙했어요
바뀐게 없는거 같은데여 ㅠㅜㅠㅠ
워워