Implement flymode

This commit is contained in:
Akkadius
2019-07-10 03:39:07 -05:00
parent dfa90aaac5
commit 35eb5b24dd
8 changed files with 172 additions and 134 deletions
+5
View File
@@ -226,6 +226,11 @@ NPC::NPC(const NPCType *npc_type_data, Spawn2 *in_respawn, const glm::vec4 &posi
merchant_open = GetClass() == MERCHANT;
adventure_template_id = npc_type_data->adventure_template;
flymode = iflymode;
if (npc_type_data->flymode >= 0) {
flymode = static_cast<GravityBehavior>(npc_type_data->flymode);
}
guard_anim = eaStanding;
roambox_distance = 0;
roambox_max_x = -2;