Fixed Spidercloak bugs

pull/9/head
DodoBirb 4 years ago
parent 046befed9a
commit 7591704ba6

@ -1,4 +1,4 @@
var size, type, alignment, sax, bufferSize, result, i, arr, ID, findID, h, arrList, arrID, arrX, arrY, arrName, findHatchlingID, hatchling, lowestPosX, lowestPosY, enemyCount, arrData, xDiff, yDiff, spectator, playerInBossRoom, arrMapIcon, playerRoom;
var size, type, alignment, sax, bufferSize, result, i, arr, ID, findID, h, arrList, arrID, arrX, arrY, arrName, findHatchlingID, hatchling, lowestPosX, lowestPosY, enemyCount, arrData, xDiff, yDiff, spectator, playerInBossRoom, arrMapIcon, playerRoom, playerState;
if (!connected)
{
if (isConnected >= 0)
@ -730,6 +730,12 @@ if (((!global.ingame) || (!global.opshowhud)) && global.saxmode)
yDiff = (oClient.posY - arrData[2])
sax = arrData[3]
spectator = arrData[5]
playerState = arrData[6]
if (playerState == 27)
{
xDiff *= 2
yDiff *= 2
}
if ((abs(xDiff) < lowestPosX || abs(yDiff) < lowestPosY) && sax != global.sax && ID != global.clientID)
{
if spectator

@ -1,5 +1,10 @@
if (global.saxmode && global.enemyNearby)
exit
if instance_exists(oCharacter)
{
if (oCharacter.state == 27 && global.saxmode)
exit
}
if (global.ingame == 1 && global.enablecontrol == 1 && room != rm_transition && ((!keyboard_check(vk_alt)) || os_type == os_linux))
{
event_user(3)

Loading…
Cancel
Save