6 Years Ago
Special fix for the following bug: [SERVER] - Character spawns - Character queues spawn message.Has full HP - Character gets killed immediately - Character queues update message for the 0HP change - Spawn message goes out. Has 0 HP now, so message sends with 0HP [CLIENT} - Client gets spawn message, starts initializing - Initializes health.HP is already zero. Call death event immediately! - But health script is only half-way through init. Missing references, things break. With this fix, the pre-init spawn message with 0hp is clamped to 1, and the character still dies right after init when they get the follow-up 0hp update message.