채팅0

    고수형들 이거뭐에요

    조회수 370

    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-2022384
      6179303:2042
      6179212-28322
      6179112-28389
      6179012-26631
      6178912-25773
      6178812-25721
      6178712-241009
      6178612-231348
      6178512-221353
      6178412-221497
      6178312-221324
      6178212-211389
      6178112-211559
      6178012-211474
      6177912-191671
      6177812-181763
      6177712-182384
      6177612-162276
      6177512-142368
      안내 배너 이미지