Curation round 18: tears and four weapons, passive item and trinket sweeps, pills and most cards, alt path and main path enemies, Hush and the Blue Womb, Mega Satan, the Void, Tainted ???, Forgotten, Lilith and Eden, wisps
This commit is contained in:
1 parent
024cb12016
commit
9dfc09518c
157 files changed
+24212
-6106
No files matched your search
+42
-1
@@ -1,4 +1,5 @@
|
||||
#include "boss_ai.h"
|
||||
#include "entity_player.h"
|
||||
#include "npc_depths.h"
|
||||
#include "room_grid.h"
|
||||
#include "room_transition.h"
|
||||
@@ -123,7 +124,17 @@ static void moms_hand_carry(Entity_NPC& npc)
|
||||
npc.ClearEntityFlags(FLAG_NO_STATUS_EFFECTS);
|
||||
npc.isInvincible = false;
|
||||
if (npc.i1 == ENTITY_PLAYER && npc.i2 == 0)
|
||||
reconstruction_missing("NpcAI::ENTITY_MOMS_HAND 00533b80: releasing grabbed players (Entity_Player 0x189c)");
|
||||
{
|
||||
for (Entity_Player* player : g_game->playerManager.playerList)
|
||||
if (player->momsHandTimer > 0)
|
||||
{
|
||||
player->isControlsEnabled = true;
|
||||
player->entityCollisionClass = ENTCOLL_ALL;
|
||||
player->momsHandTimer = 0;
|
||||
}
|
||||
g_game->leaveDoor = -1;
|
||||
g_game->StartRoomTransition({.animation = TRANSITION_FADE, .roomIndex = g_game->startingRoomIdx});
|
||||
}
|
||||
npc.entityCollisionClass = ENTCOLL_NONE;
|
||||
npc.shadowSize *= HAND_SHADOW_FADE;
|
||||
npc.state = NPC_STATE_MOVE;
|
||||
@@ -180,3 +191,33 @@ void npc_moms_hand_update(Entity_NPC& npc)
|
||||
Entity_NPC::ThrowSpider(npc.pos, &npc, spot, false, HAND_SPIDER_HEIGHT);
|
||||
}
|
||||
}
|
||||
|
||||
// A player Mom's hand carries off stays away 240 frames.
|
||||
constexpr int GRABBED_FRAMES = 240;
|
||||
|
||||
// 007b9a60 Taken by Mom's hand: a player vanishes untouchable and without control for a while, a co-op baby is gone.
|
||||
void moms_hand_player_grab(Entity_Player& player)
|
||||
{
|
||||
if (player.variant == PLAYER_VARIANT_PLAYER)
|
||||
{
|
||||
player.isControlsEnabled = false;
|
||||
player.isVisible = false;
|
||||
player.entityCollisionClass = ENTCOLL_NONE;
|
||||
player.momsHandTimer = GRABBED_FRAMES;
|
||||
}
|
||||
else if (player.variant == PLAYER_VARIANT_COOP_BABY) g_game->playerManager.RemoveCoPlayer(&player);
|
||||
}
|
||||
|
||||
// 007b9aa0 Outside room transitions a carried player's time runs out, and it drops back in where it was taken.
|
||||
void moms_hand_player_release_update(Entity_Player& player)
|
||||
{
|
||||
if (g_game->roomTransition.mode != TRANSITION_NONE || player.momsHandTimer <= 0 || --player.momsHandTimer != 0)
|
||||
return;
|
||||
|
||||
player.isControlsEnabled = true;
|
||||
player.entityCollisionClass = ENTCOLL_ALL;
|
||||
player.momsHandTimer = 0;
|
||||
npc_sound_play(SOUND_HELL_PORTAL1, 1, 2, 1);
|
||||
player.PlayExtraAnimation("TeleportDown");
|
||||
player.isVisible = true;
|
||||
}
|
||||
Reference in new issue
Block a user