채팅0

    고수형들 이거뭐에요

    조회수 359

    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

      게시글 리스트
      제목작성자작성일조회
      2145401-29169
      2145301-29459
      2145201-29257
      2145101-29739
      2145001-29360
      2144901-29160
      2144801-29254
      2144701-29447
      2144601-29184
      2144501-29206
      2144401-29613
      2144301-29365
      2144201-29379
      2144101-29325
      2144001-29349
      2143901-29296
      2143801-29432
      2143701-29351
      2143601-291302
      2143501-29501
      안내 배너 이미지