Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- roundCode, droiteEnCours, gaucheEnCours, px, py, vx, vy, jump, jump_img, portal, isAngle = data.readInt(), data.readBool(), data.readBool(), data.readShort(), data.readShort(), data.readShort(), data.readShort(), data.readBool(), data.readByte(), data.readByte(), data.available(),
- angle = data.readShort() if isAngle else -1
- vel_angle = data.readShort() if isAngle else -1
- loc_1 = data.readBool() if isAngle else False
- if roundCode == this.client.room.lastRoundCode:
- if droiteEnCours or gaucheEnCours:
- this.client.isMovingRight = droiteEnCours
- this.client.isMovingLeft = gaucheEnCours
- if this.client.isAfk:
- this.client.isAfk = False
- this.client.posX = px * 800 / 2700
- this.client.posY = py * 800 / 2700
- this.client.velX = vx
- this.client.velY = vy
- this.client.isJumping = jump
- packet = byteArray()
- packet.setTokens(4, 4)
- packet.writeInt(this.client.playerCode)
- packet.writeInt(roundCode)
- packet.writeBool(droiteEnCours)
- packet.writeBool(gaucheEnCours)
- packet.writeShort(px)
- packet.writeShort(py)
- packet.writeShort(vx)
- packet.writeShort(vy)
- packet.writeBool(jump)
- packet.writeByte(jump_img)
- packet.writeByte(portal)
- if isAngle:
- packet.writeShort(angle)
- packet.writeShort(vel_angle)
- packet.writeBool(loc_1)
- this.client.room.sendAllOthers(this.client, packet)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement