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)
local c_pos = cursor_world_pos:ToVector3()
c_pos.x -= 1
_UserService.LocalPlayer.TransformComponent.WorldPosition = c_pos
local player_pos = _UserService.LocalPlayer.TransformComponent.WorldPosition
local output = {}
local distanceTable = {}
local box = BoxShape(Vector2(0.0, 0.0), Vector2(200.0, 200.0), 0) --> i think 0 still god cuzof size
local simulator = _CollisionService:GetSimulator(_UserService.LocalPlayer.WsCharacterData.Entity)
local temp = {}
local hit = simulator:OverlapAllFast(CollisionGroups.MapleMob, box, temp)
local output2 = {}
local count = bono.filter_only_live_mobs(hit, temp, output)
for _, mob in ipairs(output) do
mob.Entity.TransformComponent.WorldPosition = cursor_world_pos:ToVector3()
end
end
------------ zz_y7 ------------
if (user.WsUser:IsAvailablePlayerMovement() and user.MovementComponent.Enable) 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) == 0) then
_PlayerAttackLogic_Shoot:TryDoingShootAttack(user, 0, 0, output.ShootRange, 0)
end
else
_PlayerAttackLogic_Melee:TryDoingMeleeAttack(user, 0, 0, nil, 0, 0)
end
end
end
elseif (_InputManager:IsPressed(_FuncKeySystemType.Jump)) then
local currentState = user.StateComponent.CurrentStateName
self:TryJump(currentState)
end
end| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 공지 | 게시판 이용 안내+156 | 10-20 | 22379 | |
| 61792 | 12-28 | 89 | ||
| 61791 | 12-28 | 164 | ||
| 61790 | 12-26 | 453 | ||
| 61789 | 12-25 | 575 | ||
| 61788 | 12-25 | 540 | ||
| 61787 | 12-24 | 829 | ||
| 61786 | 12-23 | 1150 | ||
| 61785 | 12-22 | 1170 | ||
| 61784 | 12-22 | 1299 | ||
| 61783 | 12-22 | 1145 | ||
| 61782 | 12-21 | 1223 | ||
| 61781 | 12-21 | 1382 | ||
| 61780 | 12-21 | 1303 | ||
| 61779 | 12-19 | 1500 | ||
| 61778 | 12-18 | 1597 | ||
| 61777 | 12-18 | 2190 | ||
| 61776 | 12-16 | 2107 | ||
| 61775 | 12-14 | 2199 | ||
| 61774 | 12-14 | 2579 |
댓글1
?