Projectiles+

This commit is contained in:
dingo
2026-01-18 20:45:48 -05:00
parent 32fb57fa75
commit 718a8ecb3b
14 changed files with 455 additions and 19 deletions
+15
View File
@@ -205,6 +205,9 @@ const INPUT_CHEST = 403
## Client -> Server: Use portal
const INPUT_PORTAL = 404
## Client -> Server: Fire projectile (bow, crossbow, throwable)
const INPUT_FIRE_PROJECTILE = 405
# ===== Escape / Portal (450-459) =====
## Client -> Server: Start escape channel (return to hub)
@@ -236,6 +239,18 @@ const EVENT_LEVELUP = 502
## Server -> Client: Loot obtained
const EVENT_LOOT = 503
## Server -> Client: Projectile spawned in dungeon
const EVENT_PROJECTILE_SPAWNED = 504
## Server -> Client: Projectile hit target (mob/player)
const EVENT_PROJECTILE_HIT = 505
## Server -> Client: Projectile expired (max range or wall collision)
const EVENT_PROJECTILE_EXPIRED = 506
## Server -> Client: Damage number for floating text
const EVENT_DAMAGE_NUMBER = 507
# ===== Server Broadcasts (600-609) =====
## Server -> All Clients: Server-wide broadcast message