really fix flight and more colorizers

This commit is contained in:
gamma-delta 2022-02-07 19:34:56 -06:00
parent 587cc9c522
commit 9a995d75b3
2 changed files with 12 additions and 1 deletions

View file

@ -29,6 +29,7 @@ colorizer = [9609727, 7045119]
# Hubry # Hubry
["b0a26f6b-d951-4b65-b824-b164b9bc4b90"] ["b0a26f6b-d951-4b65-b824-b164b9bc4b90"]
# 0x10e810, 0xe97dff, 0x33ffff
colorizer = [1107984, 15302143, 3407871] colorizer = [1107984, 15302143, 3407871]
# Dev (the forge dummy player) # Dev (the forge dummy player)
@ -69,10 +70,17 @@ colorizer = [13568650]
# ff3939 ffd543 fffc43 ffffe3 # ff3939 ffd543 fffc43 ffffe3
colorizer = [16726329, 16766275, 16776259, 16777187] colorizer = [16726329, 16766275, 16776259, 16777187]
# WildOats # WildOats (stevebutnottoomanypeoplehaveit)
["968e572c-a6c1-4963-8399-0c64abd3820e"] ["968e572c-a6c1-4963-8399-0c64abd3820e"]
# 5f118a 411db8
colorizer = [6230410, 4267448] colorizer = [6230410, 4267448]
# taswin
["816bedca-0bfa-4239-8b36-d234463b9c33"]
# 0x800300, 0x5f5f5f
colorizer = [8389376, 6250335]
# Todo: # Todo:
# taswin # taswin
# MacyMacerator # MacyMacerator
# artemisSystem

View file

@ -59,6 +59,7 @@ object OpFlight : SpellOperator {
target.abilities.mayfly = true target.abilities.mayfly = true
target.abilities.flying = true target.abilities.flying = true
target.onUpdateAbilities()
// Launch the player into the air to really emphasize the flight // Launch the player into the air to really emphasize the flight
HexMessages.getNetwork() HexMessages.getNetwork()
.send(PacketDistributor.PLAYER.with { target }, MsgAddMotionAck(Vec3(0.0, 1.0, 0.0))) .send(PacketDistributor.PLAYER.with { target }, MsgAddMotionAck(Vec3(0.0, 1.0, 0.0)))
@ -114,12 +115,14 @@ object OpFlight : SpellOperator {
if (cap.flightTime < 0 || cap.origin.distanceToSqr(entity.position()) > cap.radius * cap.radius) { if (cap.flightTime < 0 || cap.origin.distanceToSqr(entity.position()) > cap.radius * cap.radius) {
if (!entity.isOnGround) { if (!entity.isOnGround) {
entity.fallDistance = 1_000_000f entity.fallDistance = 1_000_000f
/*
val move = entity.deltaMovement val move = entity.deltaMovement
HexMessages.getNetwork() HexMessages.getNetwork()
.send( .send(
PacketDistributor.PLAYER.with { entity }, PacketDistributor.PLAYER.with { entity },
MsgAddMotionAck(Vec3(0.0, -move.y - 100.0, 0.0)) MsgAddMotionAck(Vec3(0.0, -move.y - 100.0, 0.0))
) )
*/
} }
cap.allowed = false cap.allowed = false