Files
isaac-port/src/weapon_rockets.h
T

29 lines
1.0 KiB
C++

#pragma once
#include "weapon.h"
#include <span>
struct EffectBehaviour;
// Destruction (009f9880) is the default.
// Epic Fetus' weapon: a shot drops a target (four more for the volley's backward, sideways and random shots), steered
// by the aim or set on Marked's target, and the rockets it calls down fall on it. Doctor's Remote fires it once.
struct Weapon_Rockets : Weapon
{
EntityPtr target;
void Fire(const Vector& shootDirection, bool isShooting, bool isInterpolated) override;
void ClearReferences() override;
// 009f3150 The camera follows the target.
Entity* GetFocusEntity() override { return target; }
// 009f3150 The weapon fires as its target.
Entity* GetMainEntity() override { return target; }
int GetMarkedTargetVariant() override;
Entity_Effect* target_spawn(const Vector& position, int rockets, float scale);
};
Weapon* weapon_rocket_make(WeaponType type);
bool is_rocket_burst(Entity_Player& player);
std::span<const EffectBehaviour> weapon_effect_behaviours();