|
|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
var type_event, _buffer, bufferSize, bufferSizePacket, clientID, findsocket, i, arrList, f, v, ban, clientX, clientY, clientSprite, clientImage, clientA1, clientA1X, clientA1Y, clientA2, clientA2X, clientA2Y, clientA2A, clientMirror, clientArmmsl, clientRoom, clientName, clientBlend, clientFXTimer, clientRoomPrev, clientState, clientSAX, clientSpeedboost, clientSJBall, clientSJDir, clientSpeedCharge, clientPlayerHealth, clientSpectator, clientInvincible, clientMosaic, clientReform, clientVisible, arr, indexValue, clientMapX, clientMapY, sax, spectator, arrPosData, find, event, playerHealth, missiles, smissiles, pbombs, playerhealth, ping, item, metdead, team, spacejump, screwattack, spiderball, speedbooster, bomb, ibeam, wbeam, pbeam, sbeam, cbeam, otherItemArr, IDCheck, tempArr, ID, checkBeam, checkMissile, checkDamage, checkFreeze, newTeam, saxmode, lobbyLocked, samCount, getGravity, receivedPasswordHash, size, type, alignment, result, _seed, monstersLeft, monstersArea, itemArr, metdeadArr, eventArr, tileCount, tileX, tileY, tileData, itemstaken, maxmissiles, maxsmissiles, maxpbombs, maxhealth, etanks, mtanks, stanks, ptanks, time, dir, sprX, sprY, charge, arrDraw, arrID, bombX, bombY, currentWeapon, missileX, missileY, velX, velY, icemissiles, pbombX, pbombY, syncDiff, str, syncELM, otherAbsorbRelativeX, otherAbsorbRelativeY, otherAbsorbSpriteHeight, mapposx, mapposy, mirror, sentRoom, playerX, playerY, resend, receivedItem, etankCount, stankCount, ptankCount, mtankCount, receivedEvent, receivedMetdead, countArea, countLeft, part, j, receiveddmap, damageMultStr, damageMult, experimental, playerState;
|
|
|
|
|
var type_event, _buffer, bufferSize, bufferSizePacket, clientID, findsocket, i, arrList, f, v, ban, clientX, clientY, clientSprite, clientImage, clientA1, clientA1X, clientA1Y, clientA2, clientA2X, clientA2Y, clientA2A, clientMirror, clientArmmsl, clientRoom, clientName, clientBlend, clientFXTimer, clientRoomPrev, clientState, clientSAX, clientSpeedboost, clientSJBall, clientSJDir, clientSpeedCharge, clientPlayerHealth, clientSpectator, clientInvincible, clientMosaic, clientReform, clientVisible, arr, indexValue, clientMapX, clientMapY, sax, spectator, arrPosData, find, event, playerHealth, missiles, smissiles, pbombs, playerhealth, ping, item, metdead, team, spacejump, screwattack, spiderball, speedbooster, bomb, ibeam, wbeam, pbeam, sbeam, cbeam, otherItemArr, IDCheck, tempArr, ID, checkBeam, checkMissile, checkDamage, checkFreeze, newTeam, saxmode, lobbyLocked, samCount, getGravity, receivedPasswordHash, size, type, alignment, result, _seed, monstersLeft, monstersArea, itemArr, metdeadArr, eventArr, tileCount, tileX, tileY, tileData, itemstaken, maxmissiles, maxsmissiles, maxpbombs, maxhealth, etanks, mtanks, stanks, ptanks, time, dir, sprX, sprY, charge, arrDraw, arrID, bombX, bombY, currentWeapon, missileX, missileY, velX, velY, icemissiles, pbombX, pbombY, syncDiff, str, syncELM, otherAbsorbRelativeX, otherAbsorbRelativeY, otherAbsorbSpriteHeight, mapposx, mapposy, mirror, sentRoom, playerX, playerY, resend, receivedItem, etankCount, stankCount, ptankCount, mtankCount, receivedEvent, receivedMetdead, countArea, countLeft, part, j, receiveddmap, damageMultStr, damageMult, experimental, playerState, combatState;
|
|
|
|
|
disconnectTimer = 900
|
|
|
|
|
if (!global.acceptPacket)
|
|
|
|
|
exit
|
|
|
|
|
@ -200,6 +200,7 @@ switch type_event
|
|
|
|
|
sax = buffer_read(_buffer, buffer_u8)
|
|
|
|
|
spectator = buffer_read(_buffer, buffer_u8)
|
|
|
|
|
playerState = buffer_read(_buffer, buffer_u8)
|
|
|
|
|
combatState = buffer_read(_buffer, buffer_bool)
|
|
|
|
|
findsocket = ds_list_find_index(roomList, clientID)
|
|
|
|
|
if (clientRoom == room && global.clientID != clientID)
|
|
|
|
|
sameRoom = 1
|
|
|
|
|
@ -245,6 +246,7 @@ switch type_event
|
|
|
|
|
arrPosData[4] = clientRoom
|
|
|
|
|
arrPosData[5] = spectator
|
|
|
|
|
arrPosData[6] = playerState
|
|
|
|
|
arrPosData[7] = combatState
|
|
|
|
|
for (v = 0; v < ds_list_size(posData); v++)
|
|
|
|
|
{
|
|
|
|
|
arr = ds_list_find_value(posData, v)
|
|
|
|
|
@ -265,6 +267,7 @@ switch type_event
|
|
|
|
|
arrPosData[4] = clientRoom
|
|
|
|
|
arrPosData[5] = spectator
|
|
|
|
|
arrPosData[6] = playerState
|
|
|
|
|
arrPosData[7] = combatState
|
|
|
|
|
ds_list_add(posData, arrPosData)
|
|
|
|
|
if (instance_exists(oMapCursor) && surface_exists(oSS_Control.s_map))
|
|
|
|
|
surface_free(oSS_Control.s_map)
|
|
|
|
|
@ -383,8 +386,11 @@ switch type_event
|
|
|
|
|
}
|
|
|
|
|
if checkMissile
|
|
|
|
|
otherOBJ = 440
|
|
|
|
|
if (checkMissile && (!checkFreeze) && global.playerFreeze > 0 && global.playerFreeze <= 151 && (!global.frozenNormally))
|
|
|
|
|
global.playerFreeze = 1
|
|
|
|
|
if (checkMissile && global.playerFreeze > 0 && global.playerFreeze <= 151 && (!global.frozenNormally))
|
|
|
|
|
{
|
|
|
|
|
if ((!checkFreeze) || checkDamage == 100)
|
|
|
|
|
global.playerFreeze = 1
|
|
|
|
|
}
|
|
|
|
|
if global.frozenNormally
|
|
|
|
|
show_debug_message("normal freeze")
|
|
|
|
|
if (checkFreeze && global.playerFreeze == 0 && (!global.frozenNormally))
|
|
|
|
|
|