Curation round 15: restart and mods, Brimstone and Tech X, room gaps, eight bosses, the Womb and Mom's Heart, the Forgotten and tainted starts, alt path enemies and exits
This commit is contained in:
1 parent
6e3da161fc
commit
78a2680134
128 files changed
+13196
-2933
No files matched your search
@@ -1,4 +1,7 @@
|
||||
#include "entity_effect.h"
|
||||
#include "entity_familiar.h"
|
||||
#include "entity_knife.h"
|
||||
#include "weapon_knives.h"
|
||||
#include "entity_laser.h"
|
||||
#include "entity_player.h"
|
||||
#include "entity_tear.h"
|
||||
@@ -68,6 +71,8 @@ constexpr int PLAYERFORM_CONJOINED = 7;
|
||||
constexpr int PLAYERFORM_BOOKWORM = 10;
|
||||
constexpr int TRANSFORMATION_COUNT = 3;
|
||||
constexpr int TEAR_COLOR_PRIORITY = 255;
|
||||
constexpr float TECH_X_THICKER_SCALE = 1.5f;
|
||||
constexpr float TECH_X_RING_LIFT = -20;
|
||||
|
||||
constexpr int COLLECTIBLE_BRIMSTONE_WEAPON = 118;
|
||||
constexpr int COLLECTIBLE_CURSED_EYE_WEAPON = 316;
|
||||
@@ -76,8 +81,6 @@ constexpr int COLLECTIBLE_EVIL_EYE = 410;
|
||||
constexpr int COLLECTIBLE_EYE_SORE = 558;
|
||||
constexpr int COLLECTIBLE_INNER_EYE = 2;
|
||||
constexpr int COLLECTIBLE_LARGE_ZIT = 502;
|
||||
constexpr int COLLECTIBLE_LOKIS_HORNS = 87;
|
||||
constexpr int COLLECTIBLE_MOMS_EYE = 55;
|
||||
constexpr int COLLECTIBLE_NEPTUNUS = 597;
|
||||
constexpr int COLLECTIBLE_THE_WIZ = 358;
|
||||
constexpr int COLLECTIBLE_TRACTOR_BEAM = 397;
|
||||
@@ -534,6 +537,77 @@ Entity_Laser* Entity_Player::FireTechLaser(const TechLaserShot& shot)
|
||||
return laser;
|
||||
}
|
||||
|
||||
// 007cb230 Fires a Tech X ring from the player (Lua's FireTechXLaser): thick red with Brimstone or as Azazel (half
|
||||
// as thick for Tainted Azazel without Brimstone), doubled by a second Brimstone and thicker past one and a half, red
|
||||
// and blue with Technology. It takes the player's laser color and hit params.
|
||||
Entity_Laser* Entity_Player::FireTechXLaser(const TechXShot& shot)
|
||||
{
|
||||
Entity* spawner = shot.source ? shot.source : this;
|
||||
float scale = std::sqrt(shot.damageMultiplier);
|
||||
if (spawner->type == ENTITY_FAMILIAR) scale *= 0.5f;
|
||||
|
||||
int variant = LASER_THIN_RED;
|
||||
bool isBrimstone = HasCollectible(COLLECTIBLE_BRIMSTONE);
|
||||
if (isBrimstone || playerType == PLAYER_AZAZEL) variant = LASER_THICK_RED;
|
||||
if (playerType == PLAYER_AZAZEL_B && !isBrimstone)
|
||||
{
|
||||
scale *= 0.5f;
|
||||
variant = LASER_THICK_RED;
|
||||
}
|
||||
if (GetCollectibleNum(COLLECTIBLE_BRIMSTONE) > 1) scale += scale;
|
||||
if (scale > TECH_X_THICKER_SCALE && variant == LASER_THICK_RED)
|
||||
{
|
||||
scale *= 0.5f;
|
||||
variant = LASER_THICKER_RED;
|
||||
}
|
||||
if (HasCollectible(COLLECTIBLE_TECHNOLOGY))
|
||||
variant = variant == LASER_THICKER_RED ? LASER_THICKER_BRIM_TECH : LASER_BRIM_TECH;
|
||||
|
||||
Entity_Laser* laser = static_cast<Entity_Laser*>(g_game->Spawn({.position = shot.position,
|
||||
.velocity = shot.velocity,
|
||||
.spawner = spawner,
|
||||
.subType = LASER_SUBTYPE_RING_PROJECTILE,
|
||||
.type = ENTITY_LASER,
|
||||
.variant = variant,
|
||||
.seed = Random()}));
|
||||
int displacement = (int)(Random() & 1) * 2 - 1;
|
||||
TearParams params = GetTearHitParams(WEAPON_LASER, 1, displacement, spawner);
|
||||
laser->posOffset = vector_make(0, TECH_X_RING_LIFT);
|
||||
laser->parent = spawner;
|
||||
laser->renderDepthOffset = TECH_LASER_FRONT_DEPTH;
|
||||
laser->SetColor(laserColor, -1, COLOR_PRIORITY_DEFAULT, false, true);
|
||||
laser->tearFlags = params.tearFlags;
|
||||
laser->SetCollisionDamage(params.tearDamage);
|
||||
laser->scale = scale;
|
||||
laser->ResetSpriteScale();
|
||||
laser->radius = shot.radius;
|
||||
laser->spawnerEntity = spawner;
|
||||
laser->isPlayerParams = true;
|
||||
laser->mass *= params.massMultiplier;
|
||||
laser->damageMultiplier = shot.damageMultiplier;
|
||||
return laser;
|
||||
}
|
||||
|
||||
// 007aded0 Fires a knife from the player (Lua's FireKnife): it hangs from its parent at its angle, with the player's
|
||||
// tear color, tear flags and damage.
|
||||
Entity_Knife* Entity_Player::FireKnife(const KnifeShot& shot)
|
||||
{
|
||||
Entity* knife = g_game->Spawn({.position = pos,
|
||||
.spawner = this,
|
||||
.subType = shot.subType,
|
||||
.type = ENTITY_KNIFE,
|
||||
.variant = shot.variant,
|
||||
.seed = Random()});
|
||||
knife->parent = shot.parent;
|
||||
knife->posOffset = vector_make(0, KNIFE_LIFT);
|
||||
knife->SetColor(tearColor, -1, COLOR_PRIORITY_DEFAULT, false, true);
|
||||
static_cast<Entity_Knife*>(knife)->tearFlags = tearFlags;
|
||||
knife->SetCollisionDamage(damage);
|
||||
static_cast<Entity_Knife*>(knife)->rotationOffset = angle_wrap(shot.rotationOffset);
|
||||
if (shot.isCantOverwrite) knife->AddEntityFlags(FLAG_DONT_OVERWRITE);
|
||||
return static_cast<Entity_Knife*>(knife);
|
||||
}
|
||||
|
||||
// 007a0f50 Fires a Brimstone beam from the player in its laser color (Lua's FireBrimstone).
|
||||
Entity_Laser* Entity_Player::FireBrimstone(const Vector& direction, Entity*, float damageMultiplier)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user