채팅0

    고수형들 이거뭐에요

    조회수 360

    if zz_y7.use_mouse_tp then

    if _InputService:IsPointerOverUI() then

    return

    end

    --_ChatMessageLogic:Add(_ChatMessageType.System, "cursor: " .. _InputService:GetCursorPosition())

    --local cursor_pos = _UILogic.ScreenToWorldPosition(_InputService:GetCursorPosition())

    --_ChatMessageLogic:Add(_ChatMessageType.System, "teleporting!!")

    local cursor = _InputService:GetCursorPosition()

    --_ChatMessageLogic:Add(_ChatMessageType.System, "-> " .. cursor.x .. " " .. cursor.y)

    local cursor_world_pos = _UILogic:ScreenToWorldPosition(cursor)

    --_ChatMessageLogic:Add(_ChatMessageType.System, "=> " .. cursor_world_pos.x .. " " .. cursor_world_pos.y)

    _UserService.LocalPlayer.TransformComponent.WorldPosition = cursor_world_pos:ToVector3()

    end

    ------------ zz_y7 ------------


    if (user.WsUser:IsAvailablePlayerMovement()) then

    if (_InputManager:IsPressed(_FuncKeySystemType.Attack)) then

    local darkSight = user.PlayerTemporaryStat:GetValue(_CTS.DarkSight) > 0

    if (darkSight) then

    local reason = user.PlayerTemporaryStat:GetReason(_CTS.DarkSight)

    _UserSkillLogic:TryCancelTemporaryStat(user, reason)

    _InputManager:MarkNoKeyInputFuncKey(_FuncKeyTypes.System, _FuncKeySystemType.Attack)

    else

    local currentState = user.StateComponent.CurrentStateName

    if (currentState ~= "SIT") then

    local shootAttack = _PlayerAttackLogic:CheckAvailableShootAttack(user, 0, 0)

    if (shootAttack) then

    local output = {}

    if (_PlayerAttackLogic_Melee:TryDoingMeleeAttack(user, 0, 0, output, 0) == 0) then

    _PlayerAttackLogic_Shoot:TryDoingShootAttack(user, 0, 0, output.ShootRange)

    end

    else

    _PlayerAttackLogic_Melee:TryDoingMeleeAttack(user, 0, 0, nil, 0)

    댓글2

    회원프로필

    마박

    2024.01.29 03:59
    회원프로필

    아맞네 이거물어보려던게아니엿음

    2024.01.29 04:00

      게시글 리스트
      제목작성자작성일조회
      공지10-2022124
      6167309:0548
      6167211-13127
      6167111-13160
      6167011-13173
      6166911-13170
      6166811-13180
      6166711-13200
      6166611-13318
      6166511-12331
      6166411-12356
      6166311-12412
      6166211-11545
      6166111-11506
      6166011-11667
      6165911-11557
      6165811-11709
      6165711-10620
      6165611-10647
      6165511-10626
      안내 배너 이미지