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| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 24450 | 02-01 | 281 | ||
| 24449 | 02-01 | 183 | ||
| 24448 | 02-01 | 207 | ||
| 24447 | 02-01 | 365 | ||
| 24446 | 02-01 | 1276 | ||
| 24445 | 02-01 | 340 | ||
| 24444 | 02-01 | 248 | ||
| 24443 | 02-01 | 197 | ||
| 24442 | 02-01 | 504 | ||
| 24441 | 02-01 | 237 | ||
| 24440 | 02-01 | 755 | ||
| 24439 | 노팅 듚 공유한다+42 | 02-01 | 629 | |
| 24438 | 02-01 | 511 | ||
| 24437 | 02-01 | 200 | ||
| 24436 | 마박 10ㅂㄴ+1 | 02-01 | 404 | |
| 24435 | 02-01 | 456 | ||
| 24434 | 신규펫 나왔네+12 | 02-01 | 657 | |
| 24433 | 02-01 | 162 | ||
| 24432 | 02-01 | 214 | ||
| 24431 | 02-01 | 399 |
댓글1
?