Curation round 17: Theora and Vorbis cutscene videos, Ludovico, Epic and Dr. Fetus, Tractor Beam and Eye of the Occult, familiars and blue spiders, fortune teller and restock, the Bag of Crafting and four tainted characters, ten enemies, water and the ultra secret door, Isaac, ???, the Lamb and Hush
This commit is contained in:
1 parent
e9de039d0f
commit
024cb12016
133 files changed
+13325
-2520
No files matched your search
+2
-125
@@ -261,6 +261,7 @@ struct FXVein;
|
||||
struct FamiliarCount;
|
||||
struct FamiliarData;
|
||||
struct Fart;
|
||||
struct FetusShot;
|
||||
struct File;
|
||||
struct FileSymbolInfo;
|
||||
struct FileSystem;
|
||||
@@ -364,6 +365,7 @@ struct ItemInfoHUD;
|
||||
struct ItemOverlay;
|
||||
struct ItemPool;
|
||||
struct ItemPool_Item;
|
||||
struct ItemUse;
|
||||
struct KAGE_Filesys_File;
|
||||
struct KAGE_Filesys_FileManager;
|
||||
struct KAGE_Filesys_FileStream;
|
||||
@@ -4022,52 +4024,6 @@ struct Weapon_Deathmatch {
|
||||
};
|
||||
LAYOUT32(sizeof(Weapon_Deathmatch) == 0x44);
|
||||
|
||||
struct Weapon_Fetus {
|
||||
virtual ~Weapon_Fetus(); // 009f3260 slot 0
|
||||
virtual void Init(uint32_t param_2, uint32_t param_3); // 009f34d0 slot 1 Weapon::Init
|
||||
virtual void Update(char param_2); // 009f34f0 slot 2 Weapon::Update
|
||||
virtual void Fire(Vector *direction, uint8_t isShooting, uint8_t isInterpolated); // 00a036e0 slot 3
|
||||
virtual void Reset(); // 009f3480 slot 4 Weapon::Reset
|
||||
virtual void ClearReferences(); // 009f3320 slot 5 Weapon::ClearReferences
|
||||
virtual float GetMaxCharge(); // 00a03f60 slot 6
|
||||
virtual long double GetChargeBarAmount(); // 009f4150 slot 7 Weapon::GetChargeBarAmount
|
||||
virtual void vfunc_8(); // 009f3130 slot 8 Weapon::GetMaxCharge
|
||||
virtual uint32_t GetFocusEntity(); // 009f3140 slot 9 Weapon::GetFocusEntity
|
||||
virtual void vfunc_10(); // 009f3140 slot 10 Weapon::GetFocusEntity
|
||||
virtual void guard_check_icall(); // 0040c200 slot 11 ::guard_check_icall
|
||||
virtual int GetMarkedTargetVariant(); // 009fa1b0 slot 12 Weapon_Bombs::GetMarkedTargetVariant
|
||||
virtual uint8_t CanShutDoors(); // 005ccc00 slot 13 Entity::CanShutDoors
|
||||
virtual void vfunc_14(); // 005ccc00 slot 14 Entity::CanShutDoors
|
||||
virtual uint8_t CanTakeDamageFromTearEffects(); // 00709c30 slot 15 GridEntity::CanTakeDamageFromTearEffects
|
||||
virtual void vfunc_16(); // 005ccc00 slot 16 Entity::CanShutDoors
|
||||
|
||||
uint8_t _pad_0x4[0x40];
|
||||
};
|
||||
LAYOUT32(sizeof(Weapon_Fetus) == 0x44);
|
||||
|
||||
struct Weapon_Ludovico {
|
||||
virtual ~Weapon_Ludovico(); // 009f9880 slot 0 Weapon_Bombs::Free
|
||||
virtual void Init(uint32_t param_2, uint32_t param_3); // 009f34d0 slot 1 Weapon::Init
|
||||
virtual void Update(char param_2); // 009f34f0 slot 2 Weapon::Update
|
||||
virtual void Fire(Vector *direction, uint8_t isShooting, uint8_t isInterpolated); // 00a06a30 slot 3
|
||||
virtual void Reset(); // 009f3480 slot 4 Weapon::Reset
|
||||
virtual void ClearReferences(); // 00a063b0 slot 5 Weapon_Laser::ClearReferences
|
||||
virtual long double GetMaxCharge(); // 009f3130 slot 6 Weapon::GetMaxCharge
|
||||
virtual long double GetChargeBarAmount(); // 009f4150 slot 7 Weapon::GetChargeBarAmount
|
||||
virtual void vfunc_8(); // 009f3130 slot 8 Weapon::GetMaxCharge
|
||||
virtual Entity * GetMainEntity(); // 009f3150 slot 9 Weapon::GetMainEntity
|
||||
virtual void vfunc_10(); // 009f3150 slot 10 Weapon::GetMainEntity
|
||||
virtual void guard_check_icall(); // 0040c200 slot 11 ::guard_check_icall
|
||||
virtual uint32_t GetFocusEntity(); // 009f3140 slot 12 Weapon::GetFocusEntity
|
||||
virtual uint8_t CanShutDoors(); // 005ccc00 slot 13 Entity::CanShutDoors
|
||||
virtual void vfunc_14(); // 005ccc00 slot 14 Entity::CanShutDoors
|
||||
virtual void vfunc_15(); // 005ccc00 slot 15 Entity::CanShutDoors
|
||||
virtual void vfunc_16(); // 005ccc00 slot 16 Entity::CanShutDoors
|
||||
|
||||
uint8_t _pad_0x4[0x44];
|
||||
};
|
||||
LAYOUT32(sizeof(Weapon_Ludovico) == 0x48);
|
||||
|
||||
struct Weapon_MonstrosLung {
|
||||
virtual ~Weapon_MonstrosLung(); // 009f3260 slot 0
|
||||
virtual void Init(uint32_t param_2, uint32_t param_3); // 009f34d0 slot 1 Weapon::Init
|
||||
@@ -4092,29 +4048,6 @@ struct Weapon_MonstrosLung {
|
||||
};
|
||||
LAYOUT32(sizeof(Weapon_MonstrosLung) == 0x44);
|
||||
|
||||
struct Weapon_Rockets {
|
||||
virtual ~Weapon_Rockets(); // 009f9880 slot 0 Weapon_Bombs::Free
|
||||
virtual void Init(uint32_t param_2, uint32_t param_3); // 009f34d0 slot 1 Weapon::Init
|
||||
virtual void Update(char param_2); // 009f34f0 slot 2 Weapon::Update
|
||||
virtual void Fire(Vector *aimDirection, uint8_t isShooting, uint8_t isInterpolated); // 00a08d40 slot 3
|
||||
virtual void Reset(); // 009f3480 slot 4 Weapon::Reset
|
||||
virtual void ClearReferences(); // 00a063b0 slot 5 Weapon_Laser::ClearReferences
|
||||
virtual long double GetMaxCharge(); // 009f3130 slot 6 Weapon::GetMaxCharge
|
||||
virtual long double GetChargeBarAmount(); // 009f4150 slot 7 Weapon::GetChargeBarAmount
|
||||
virtual void vfunc_8(); // 009f3130 slot 8 Weapon::GetMaxCharge
|
||||
virtual Entity * GetMainEntity(); // 009f3150 slot 9 Weapon::GetMainEntity
|
||||
virtual void vfunc_10(); // 009f3150 slot 10 Weapon::GetMainEntity
|
||||
virtual void guard_check_icall(); // 0040c200 slot 11 ::guard_check_icall
|
||||
virtual int GetMarkedTargetVariant(); // 00a099a0 slot 12
|
||||
virtual uint8_t CanShutDoors(); // 005ccc00 slot 13 Entity::CanShutDoors
|
||||
virtual void vfunc_14(); // 005ccc00 slot 14 Entity::CanShutDoors
|
||||
virtual void vfunc_15(); // 005ccc00 slot 15 Entity::CanShutDoors
|
||||
virtual void vfunc_16(); // 005ccc00 slot 16 Entity::CanShutDoors
|
||||
|
||||
uint8_t _pad_0x4[0x44];
|
||||
};
|
||||
LAYOUT32(sizeof(Weapon_Rockets) == 0x48);
|
||||
|
||||
struct Weapon_SpiritSword {
|
||||
virtual ~Weapon_SpiritSword(); // 009f9930 slot 0 Weapon_Laser::Free
|
||||
virtual void Init(uint32_t param_2, uint32_t param_3); // 009f34d0 slot 1 Weapon::Init
|
||||
@@ -6076,7 +6009,6 @@ void FUN_00557b50(uint32_t param_1); // 00557b50
|
||||
void FUN_00557b70(uint8_t *param_1); // 00557b70
|
||||
bool FUN_00557bb0(int *param_1); // 00557bb0
|
||||
void collect_npcs_with_same_parent(Entity_NPC *npc); // 00557ce0
|
||||
uint32_t FUN_0055c6a0(float *param_1); // 0055c6a0
|
||||
void FUN_00565dd0(uint32_t param_1); // 00565dd0
|
||||
void FUN_00565de0(uint32_t param_1); // 00565de0
|
||||
void FUN_00568980(char param_1); // 00568980
|
||||
@@ -6161,7 +6093,6 @@ void FUN_005b19f0(uint32_t param_1); // 005b19f0
|
||||
uint8_t FUN_005b1a00(); // 005b1a00
|
||||
bool FUN_005b1a10(); // 005b1a10
|
||||
void alabaster_box_timer_callback(Entity *timer); // 005b30b0
|
||||
uint32_t FUN_005b3990(uint32_t *param_1); // 005b3990
|
||||
void FUN_005c7ad0(int param_1); // 005c7ad0
|
||||
void FUN_005c7bf0(int *param_1, int *param_2); // 005c7bf0
|
||||
void FUN_005c7d30(int param_1); // 005c7d30
|
||||
@@ -6310,7 +6241,6 @@ void FUN_0062e0e0(int param_1); // 0062e0e0
|
||||
void FUN_00631a00(float *param_1, uint32_t param_2, float *param_3); // 00631a00
|
||||
void familiar_wisp_pick_tear_color(RNG *rng, int *outVariant, BitSet128 *outFlags); // 00633990
|
||||
void FUN_00638e20(); // 00638e20
|
||||
void spawn_blue_spider(Vector *position, Entity *spawner, Vector *target); // 00638e30
|
||||
void FUN_006395e0(Vector *param_1, int *param_2, int param_3, int param_4, int param_5, float param_6, int param_7, int param_8, Entity *param_9, int param_10); // 006395e0
|
||||
void FUN_0063b240(); // 0063b240
|
||||
void FUN_0063c060(int param_1); // 0063c060
|
||||
@@ -6650,7 +6580,6 @@ void FUN_007098c0(); // 007098c0
|
||||
void FUN_00709930(); // 00709930
|
||||
int FUN_00709bc0(); // 00709bc0
|
||||
uint8_t FUN_0070bf60(); // 0070bf60
|
||||
uint8_t is_grid_type_floor_special(int gridType); // 0070bf80
|
||||
void FUN_0070bfa0(int param_1, int param_2, uint32_t param_3, float param_4); // 0070bfa0
|
||||
void FUN_0070c570(uint32_t *param_1); // 0070c570
|
||||
uint32_t FUN_00710370(); // 00710370
|
||||
@@ -6762,7 +6691,6 @@ void FUN_00753620(); // 00753620
|
||||
bool FUN_00753630(); // 00753630
|
||||
bool FUN_00753640(); // 00753640
|
||||
void FUN_00753650(); // 00753650
|
||||
void FUN_00753660(uint32_t *param_1, uint32_t param_2); // 00753660
|
||||
uint32_t FUN_00753700(); // 00753700
|
||||
uint32_t FUN_00753710(); // 00753710
|
||||
void FUN_00753720(); // 00753720
|
||||
@@ -6822,9 +6750,7 @@ void FUN_007cf940(); // 007cf940
|
||||
long double FUN_007cf9a0(float *param_1, KColor *param_2, uint32_t param_3); // 007cf9a0
|
||||
uint8_t * FUN_007cfa90(); // 007cfa90
|
||||
void FUN_007d3330(int param_1); // 007d3330
|
||||
Game * damage_charge_scale(); // 007d3560
|
||||
void FUN_007d3e00(); // 007d3e00
|
||||
char FUN_007d4320(); // 007d4320
|
||||
void FUN_007d9360(); // 007d9360
|
||||
uint32_t FUN_007d9ca0(); // 007d9ca0
|
||||
uint32_t FUN_007da770(); // 007da770
|
||||
@@ -6999,7 +6925,6 @@ void render_beast_arena_background(void *self, int pass); // 0083a3d0
|
||||
void FUN_0083aae0(uint8_t param_1, int *param_2, uint32_t *param_3); // 0083aae0
|
||||
void FUN_0083b830(); // 0083b830
|
||||
int FUN_0083bbc0(int param_1); // 0083bbc0
|
||||
void FUN_0083bed0(int param_1, int param_2); // 0083bed0
|
||||
void FUN_0083bf50(); // 0083bf50
|
||||
void FUN_0083bf90(uint32_t *param_1); // 0083bf90
|
||||
void Catch_All_0083c241(); // 0083c241
|
||||
@@ -9390,15 +9315,11 @@ void FUN_009f3c40(); // 009f3c40
|
||||
void FUN_009f4130(); // 009f4130
|
||||
Entity_Player * FUN_009f4fc0(); // 009f4fc0
|
||||
void FUN_009f5810(uint8_t param_1); // 009f5810
|
||||
Entity_Tear * fire_fetus_tear(void *self, Vector *position, Vector *velocity, int fireFlags, Entity *source, float damageMultiplier, int unused); // 009f6e60
|
||||
uint32_t * FUN_009f9080(); // 009f9080
|
||||
uint32_t * FUN_009f90f0(); // 009f90f0
|
||||
uint32_t * FUN_009f9170(); // 009f9170
|
||||
uint32_t * FUN_009f92d0(); // 009f92d0
|
||||
uint32_t * FUN_009f9350(); // 009f9350
|
||||
uint32_t * FUN_009f93d0(); // 009f93d0
|
||||
uint32_t * FUN_009f9440(); // 009f9440
|
||||
uint32_t * FUN_009f95d0(); // 009f95d0
|
||||
uint32_t * FUN_00a06940(void *param_1, uint32_t *param_2); // 00a06940
|
||||
void * operator_new(uint32_t size); // 00a0f4c0
|
||||
void * operator_new_tracked(uint32_t size); // 00a0f4e0
|
||||
@@ -13042,7 +12963,6 @@ void FUN_00a627d0(); // 00a627d0
|
||||
void FUN_00a62800(uint8_t param_1); // 00a62800
|
||||
void FUN_00a62830(uint32_t param_1, uint32_t param_2, uint32_t param_3, uint32_t param_4); // 00a62830
|
||||
uint8_t FUN_00a62870(); // 00a62870
|
||||
uint32_t FUN_00a62910(uint8_t *param_1); // 00a62910
|
||||
uint32_t FUN_00a62a10(); // 00a62a10
|
||||
char * FUN_00a62dc0(); // 00a62dc0
|
||||
char * string_duplicate_lower(); // 00a62e10
|
||||
@@ -13458,7 +13378,6 @@ uint32_t * FUN_00a8a010(uint32_t *param_1); // 00a8a010
|
||||
char * FUN_00a8a070(char *param_1); // 00a8a070
|
||||
void FUN_00a8a810(uint8_t param_1); // 00a8a810
|
||||
void FUN_00a8a970(); // 00a8a970
|
||||
int * theora_create_video_clip(uint32_t param_1, int *param_2); // 00a8ab60
|
||||
void Catch_00a8b0f1(); // 00a8b0f1
|
||||
void FUN_00a8b130(int param_1); // 00a8b130
|
||||
void FUN_00a8b160(uint8_t param_1); // 00a8b160
|
||||
@@ -13803,13 +13722,9 @@ void FUN_00aa9a20(int param_1); // 00aa9a20
|
||||
void FUN_00aa9a70(int param_1); // 00aa9a70
|
||||
void FUN_00aa9ab0(int param_1); // 00aa9ab0
|
||||
void FUN_00aa9bb0(); // 00aa9bb0
|
||||
void vorbis_info_clear(void *info); // 00aa9c20
|
||||
uint32_t _vorbis_unpack_books(); // 00aa9e80
|
||||
uint32_t vorbis_synthesis_headerin(int param_1); // 00aaa150
|
||||
int FUN_00aaa450(); // 00aaa450
|
||||
int FUN_00aaa4a0(); // 00aaa4a0
|
||||
void FUN_00aaaa90(); // 00aaaa90
|
||||
void FUN_00aaaae0(int param_1); // 00aaaae0
|
||||
uint32_t FUN_00aaabb0(); // 00aaabb0
|
||||
void FUN_00aaac20(); // 00aaac20
|
||||
void FUN_00aaace0(uint8_t param_1); // 00aaace0
|
||||
@@ -13838,23 +13753,13 @@ void FUN_00aabd90(int *param_1, char param_2); // 00aabd90
|
||||
void FUN_00aabe70(int *param_1, char param_2); // 00aabe70
|
||||
uint32_t FUN_00aabeb0(); // 00aabeb0
|
||||
uint32_t FUN_00aabec0(); // 00aabec0
|
||||
int64_t ogg_page_granulepos(void *page); // 00aabed0
|
||||
uint32_t FUN_00aabf60(); // 00aabf60
|
||||
uint32_t FUN_00aabfb0(); // 00aabfb0
|
||||
uint32_t FUN_00aac040(); // 00aac040
|
||||
void ogg_page_checksum_set(); // 00aac110
|
||||
int FUN_00aac1a0(); // 00aac1a0
|
||||
int ogg_sync_pageseek(); // 00aac240
|
||||
int ogg_sync_pageout(void *syncState, void *page); // 00aac3e0
|
||||
uint32_t ogg_stream_pagein(); // 00aac5c0
|
||||
uint32_t ogg_stream_reset(); // 00aac8f0
|
||||
int ogg_stream_packetout(void *streamState, void *packet); // 00aac980
|
||||
int FUN_00aaca80(); // 00aaca80
|
||||
void FUN_00aacae0(); // 00aacae0
|
||||
uint32_t _vds_shared_init(); // 00aacb50
|
||||
void vorbis_dsp_clear(void *dspState); // 00aacf20
|
||||
uint32_t vorbis_synthesis_restart(); // 00aad330
|
||||
uint32_t vorbis_synthesis_blockin(); // 00aad3b0
|
||||
uint32_t FUN_00aada30(); // 00aada30
|
||||
void FUN_00aadbf0(uint32_t param_1, uint32_t param_2); // 00aadbf0
|
||||
uint32_t epoxy_has_wgl_extension(uint32_t param_1); // 00aadd10
|
||||
@@ -13949,7 +13854,6 @@ int I420ToRGBAMatrix(uint8_t *srcY, int srcStrideY, uint8_t *srcU, int srcStride
|
||||
uint32_t FUN_00ab6bc0(int param_1, int param_2, int param_3, int param_4, int param_5, int param_6, uint32_t param_7, uint32_t param_8, int param_9); // 00ab6bc0
|
||||
uint32_t FUN_00ab6d00(int param_1, int param_2, int param_3, int param_4, int param_5, int param_6, uint32_t param_7, uint32_t param_8, int param_9); // 00ab6d00
|
||||
void FUN_00ab6e40(); // 00ab6e40
|
||||
void oggpack_write(void *buffer, uint32_t value, int bits); // 00ab6ee0
|
||||
uint32_t FUN_00ab7010(); // 00ab7010
|
||||
void FUN_00ab70d0(); // 00ab70d0
|
||||
uint32_t FUN_00ab7120(); // 00ab7120
|
||||
@@ -14266,10 +14170,7 @@ uint32_t oc_dec_postprocess_init(int param_1); // 00add7a0
|
||||
void oc_dering_block(uint8_t *param_1, uint32_t param_2, uint32_t param_3, int *param_4, int param_5, uint8_t *param_6); // 00addab0
|
||||
void oc_filter_hedge(uint8_t *param_1, int param_2, int param_3, int param_4, int param_5, int param_6, int *param_7, int *param_8); // 00ade460
|
||||
void oc_filter_vedge(int param_1, int param_2, int param_3, int param_4, int *param_5); // 00ade750
|
||||
void * th_decode_alloc(void *info, void *setup); // 00ade980
|
||||
uint32_t th_decode_ctl(int param_1, uint32_t param_2, uint32_t *param_3, int param_4); // 00ade9f0
|
||||
void FUN_00adeb70(int param_1); // 00adeb70
|
||||
uint32_t th_decode_packetin(int *param_1, uint32_t *param_2, int64_t *param_3); // 00adebd0
|
||||
uint32_t FUN_00adf8c0(int param_1, void *param_2); // 00adf8c0
|
||||
void FUN_00adf8f0(int *param_1); // 00adf8f0
|
||||
void FUN_00adf940(uint32_t *param_1); // 00adf940
|
||||
@@ -14304,7 +14205,6 @@ uint32_t oc_state_frarray_init(int param_1); // 00ae1330
|
||||
uint32_t FUN_00ae1900(int param_1, int *param_2, int param_3, short param_4); // 00ae1900
|
||||
int FUN_00ae19b0(uint32_t *param_1, uint8_t *param_2, uint32_t param_3); // 00ae19b0
|
||||
uint32_t oc_state_ref_bufs_init(int param_1, int *param_2); // 00ae1cf0
|
||||
int64_t th_granule_frame(void *decoder, int64_t granulePosition); // 00ae2060
|
||||
long double FUN_00ae2110(int param_1, int64_t param_2); // 00ae2110
|
||||
void oc_dequant_tables_init(int param_1, int param_2, int param_3); // 00ae2200
|
||||
int FUN_00ae2580(int *param_1); // 00ae2580
|
||||
@@ -21067,7 +20967,6 @@ namespace AudioPacketQueue {
|
||||
void destroyAllAudioPackets(); // 00aadc80
|
||||
}
|
||||
namespace FamiliarAI {
|
||||
void * blue_spider(Entity_Familiar *familiar); // 00616050
|
||||
void bobs_brain(Entity_Familiar *familiar); // 00616770
|
||||
void gb_bug(Entity_Familiar *familiar); // 00618b00
|
||||
void variant_53(Entity_Familiar *familiar); // 006196e0
|
||||
@@ -21101,7 +21000,6 @@ void fly_head_pathfind_move(Entity_Familiar *familiar); // 0063d570
|
||||
namespace Isaac {
|
||||
void SwapANM2(ANM2 *left, ANM2 *right); // 00407ae0
|
||||
ItemConfig * GetItemConfig(); // 0042ca00
|
||||
void SpawnLocust(Entity_Player *player, int collectibleType, Vector *pos); // 005b35c0
|
||||
int Random(int Max); // 0067f010
|
||||
Vector * GetRandomPickupVelocity(Vector *outVelocity, Vector *position, uint32_t pickupVelType, RNG *rng); // 006ee440
|
||||
void Shutdown(); // 009ab700
|
||||
@@ -21150,14 +21048,11 @@ void ENTITY_BEAST_ultra_war_bomb(Entity_NPC *npc); // 0044f2b0
|
||||
void ENTITY_LIL_BLUB(Entity_NPC *npc); // 00450da0
|
||||
void ENTITY_BIG_HORN_grab_bomb(Entity_NPC *npc); // 00452eb0
|
||||
void ENTITY_BIG_HORN(Entity_NPC *npc); // 00453140
|
||||
void ENTITY_FLY_isaac_spawned(Entity_NPC *npc); // 004568d0
|
||||
void ENTITY_WAR(Entity_NPC *npc); // 00458870
|
||||
void ENTITY_DEATH(Entity_NPC *npc); // 00459d20
|
||||
void ENTITY_HEADLESS_HORSEMAN(Entity_NPC *npc); // 0045cd60
|
||||
void ENTITY_DARK_ONE(Entity_NPC *npc); // 0045d7d0
|
||||
float ENTITY_ISAAC(Entity_NPC *npc); // 00463100
|
||||
void ENTITY_PIN(Entity_NPC *npc); // 00476860
|
||||
void ENTITY_THE_LAMB(Entity_NPC *npc); // 00483710
|
||||
void ENTITY_BROWNIE(Entity_NPC *npc); // 0048c3b0
|
||||
void ENTITY_CORN_MINE(Entity_NPC *npc); // 0048ee30
|
||||
void ENTITY_FORSAKEN(Entity_NPC *npc); // 0048f110
|
||||
@@ -21181,9 +21076,7 @@ void ENTITY_HERETIC(Entity_NPC *npc); // 004b43c0
|
||||
void ENTITY_HORNFEL_DOOR(Entity_NPC *npc); // 004bb9b0
|
||||
void ENTITY_HORNY_BOYS(Entity_NPC *npc); // 004bd2a0
|
||||
void ENTITY_HUSH_BOIL(Entity_NPC *npc); // 004be6f0
|
||||
void ENTITY_HUSH_GAPER(Entity_NPC *npc); // 004bee40
|
||||
void ENTITY_HUSH_FLY(Entity_NPC *npc); // 004bf310
|
||||
void ENTITY_HUSH(Entity_NPC *npc); // 004bfd30
|
||||
void ENTITY_MATRIARCH(Entity_NPC *npc); // 004c59d0
|
||||
void ENTITY_MEGA_SATAN(Entity_NPC *npc); // 004c8090
|
||||
void ENTITY_MEGA_SATAN_hand(Entity_NPC *npc); // 004cca10
|
||||
@@ -21216,12 +21109,10 @@ void ENTITY_BALL_AND_CHAIN(Entity_NPC *npc); // 004f4730
|
||||
void ENTITY_POOFER(Entity_NPC *npc); // 004f64e0
|
||||
void ENTITY_MOCKULUS(Entity_NPC *npc); // 004f76f0
|
||||
void ENTITY_MORNINGSTAR(Entity_NPC *npc); // 004f7e60
|
||||
void ENTITY_ROCK_SPIDER(Entity_NPC *npc); // 004f9ad0
|
||||
void ENTITY_FACELESS(Entity_NPC *npc); // 004faad0
|
||||
void ENTITY_DANNY(Entity_NPC *npc); // 004fbd10
|
||||
void ENTITY_MOLE(Entity_NPC *npc); // 004fdf80
|
||||
void ENTITY_GYRO(Entity_NPC *npc); // 004ff620
|
||||
void ENTITY_FIRE_WORM(Entity_NPC *npc); // 00500990
|
||||
void ENTITY_BOUNCER(Entity_NPC *npc); // 00501f30
|
||||
void ENTITY_FLESH_MAIDEN(Entity_NPC *npc); // 00502980
|
||||
void ENTITY_BOMBGAGGER(Entity_NPC *npc); // 00503300
|
||||
@@ -21231,18 +21122,10 @@ void ENTITY_DUSTY_DEATHS_HEAD(Entity_NPC *npc); // 00504a40
|
||||
void ENTITY_NECRO(Entity_NPC *npc); // 005052a0
|
||||
void ENTITY_STONE_EYE(Entity_NPC *npc); // 00505d00
|
||||
void ENTITY_KNIGHT(Entity_NPC *npc); // 005135d0
|
||||
void ENTITY_MRMAW(Entity_NPC *npc); // 00517de0
|
||||
void ENTITY_SWARMER(Entity_NPC *npc); // 00518e20
|
||||
void ENTITY_HANGER(Entity_NPC *npc); // 0051cb30
|
||||
void ENTITY_URIEL(Entity_NPC *npc); // 0051e0f0
|
||||
void ENTITY_HEART(Entity_NPC *npc); // 0051f2f0
|
||||
void ENTITY_POKY(Entity_NPC *npc); // 00521ab0
|
||||
void ENTITY_DOPLE(Entity_NPC *npc); // 00525650
|
||||
void ENTITY_BABY(Entity_NPC *npc); // 0052ae30
|
||||
void ENTITY_COD_WORM(Entity_NPC *npc); // 00531350
|
||||
void ENTITY_MOBILE_HOST(Entity_NPC *npc); // 005321d0
|
||||
void ENTITY_MOMS_HAND(Entity_NPC *npc); // 00533b80
|
||||
void ENTITY_WIZOOB(Entity_NPC *npc); // 005374a0
|
||||
void ENTITY_HOMUNCULUS(Entity_NPC *npc); // 00539b90
|
||||
void ENTITY_OOB(Entity_NPC *npc); // 0053ab40
|
||||
void ENTITY_BLACK_MAW(Entity_NPC *npc); // 0053b2f0
|
||||
@@ -21258,14 +21141,12 @@ void ENTITY_COHORT(Entity_NPC *npc); // 005513a0
|
||||
void ENTITY_GENERIC_PROP(Entity_NPC *npc); // 00551d30
|
||||
void ENTITY_SHADY(Entity_NPC *npc); // 005522d0
|
||||
void ENTITY_BLOOD_PUPPY(Entity_NPC *npc); // 00552d30
|
||||
void ENTITY_DARK_ESAU(Entity_NPC *npc); // 005542e0
|
||||
void ENTITY_PEEPER_FATTY(Entity_NPC *npc); // 005562b0
|
||||
void ENTITY_WILLO(Entity_NPC *npc); // 005586b0
|
||||
int ENTITY_WILLO_L2_find_target(Entity_NPC *npc); // 005591c0
|
||||
void ENTITY_WILLO_L2(Entity_NPC *npc); // 005593c0
|
||||
Entity_Projectile * ENTITY_BUBBLES(Entity_NPC *npc); // 0055ad20
|
||||
void ENTITY_SMALL_LEECH(Entity_NPC *npc); // 0055b740
|
||||
void ENTITY_STRIDER(Entity_NPC *npc); // 0055c810
|
||||
uint32_t ENTITY_POLTY(Entity_NPC *npc); // 0055d230
|
||||
void ENTITY_FLY_TRAP(Entity_NPC *npc); // 00560ca0
|
||||
void ENTITY_FLY_orbit_parent(Entity_NPC *npc); // 00561580
|
||||
@@ -21306,7 +21187,6 @@ void ENTITY_BEAST(Entity_NPC *npc); // 00592460
|
||||
void ENTITY_BEAST_stalactite(Entity_NPC *npc); // 00596120
|
||||
void ENTITY_BEAST_rock_projectile(Entity_NPC *npc); // 00596c60
|
||||
void ENTITY_BEAST_soul(Entity_NPC *npc); // 005971e0
|
||||
void ENTITY_POLYCEPHALUS_the_pile(Entity_NPC *npc); // 005983f0
|
||||
void ENTITY_TUFF_TWINS_head_anim(Entity_NPC *npc); // 00599b80
|
||||
void ENTITY_TUFF_TWINS_body_anim(Entity_NPC *npc); // 00599d70
|
||||
void ENTITY_TUFF_TWINS(Entity_NPC *npc); // 0059a2d0
|
||||
@@ -21315,7 +21195,6 @@ void ENTITY_TURDLET(Entity_NPC *npc); // 0059c830
|
||||
void ENTITY_ULTRA_GREED(Entity_NPC *npc); // 0059edb0
|
||||
void ENTITY_ULTRA_COIN(Entity_NPC *npc); // 005a4820
|
||||
void ENTITY_ULTRA_DOOR(Entity_NPC *npc); // 005a5b60
|
||||
void ENTITY_GREED_GAPER(Entity_NPC *npc); // 005a6b80
|
||||
void ENTITY_VISAGE(Entity_NPC *npc); // 005a7b20
|
||||
void ENTITY_VISAGE_mask(Entity_NPC *npc); // 005ab4d0
|
||||
void ENTITY_VISAGE_chain(Entity_NPC *npc); // 005ad250
|
||||
@@ -21336,7 +21215,6 @@ void read(int param_1, int *param_2); // 009163b0
|
||||
}
|
||||
namespace TheoraVideoManager {
|
||||
void TheoraVideoManager(); // 00a8a090
|
||||
void destroyVideoClip(void *clip); // 00a8b190
|
||||
void createWorkerThreads(int param_1); // 00a8b570
|
||||
int requestWork(uint32_t param_1); // 00a8b7d0
|
||||
}
|
||||
@@ -21346,7 +21224,6 @@ uint32_t _readData(); // 00a8d0a0
|
||||
long double _decodeAudio(); // 00a8d580
|
||||
void _executeSeek(); // 00a8da40
|
||||
uint32_t _seekPage(int param_1, char param_2); // 00a8e1b0
|
||||
void readTheoraVorbisHeaders(); // 00a8e530
|
||||
}
|
||||
namespace _Entity {
|
||||
int GetAncestorField(uint32_t param_1); // 006b7d20
|
||||
|
||||
@@ -1,194 +1,5 @@
|
||||
#include "classes.h"
|
||||
|
||||
// 004830e0
|
||||
void NpcHelper::the_lamb_pattern(Entity_NPC *npc, int pattern, int frame)
|
||||
{
|
||||
Entity *target;
|
||||
uint32_t uVar1;
|
||||
int projectileCount;
|
||||
bool isEighthFrame;
|
||||
float fVar2;
|
||||
float pitch;
|
||||
Vector local_c8;
|
||||
float dirY;
|
||||
float dirX;
|
||||
float projectileSpeed;
|
||||
ProjectileParams params;
|
||||
float local_8;
|
||||
Manager *manager;
|
||||
|
||||
local_8 = (float)(__security_cookie ^ GHIDRA_UINT(&(¶ms)[1].CircleAngle));
|
||||
ProjectileParams::ProjectileParams(¶ms);
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(params)) + 0x4))) = 0x40a00000;
|
||||
params.Scale = 1.8;
|
||||
params.FallingAccelModifier = -0.06;
|
||||
params.FallingSpeedModifier = -2.0;
|
||||
target = Entity_NPC::GetPlayerTarget(npc);
|
||||
dirX = (target->_pos).x - (npc->_pos).x;
|
||||
dirY = (target->_pos).y - (npc->_pos).y;
|
||||
fVar2 = sqrtf(dirX * dirX + dirY * dirY);
|
||||
pitch = 1.0;
|
||||
if (0.0 < fVar2) {
|
||||
dirY = (1.0 / fVar2) * dirY;
|
||||
dirX = (1.0 / fVar2) * dirX;
|
||||
}
|
||||
local_c8.y = atan2f(dirY,dirX);
|
||||
if (pattern < 4) {
|
||||
params.Color._colorize[0] = (float)0x3f333333;
|
||||
params.Color._colorize[1] = (float)0x3f333333;
|
||||
params.Color._colorize[2] = 1.0;
|
||||
params.Color._colorize[3] = 1.0;
|
||||
if (pattern == 0) {
|
||||
if (frame != (frame / 3) * 3) {
|
||||
return;
|
||||
}
|
||||
fVar2 = (float)frame * 0.125;
|
||||
}
|
||||
else {
|
||||
if (pattern != 1) {
|
||||
if (pattern == 2) {
|
||||
if (frame % 0x16 != 0) {
|
||||
return;
|
||||
}
|
||||
projectileCount = 3;
|
||||
projectileSpeed = 8.0;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(params.BulletFlags)) + 0x0))) = GHIDRA_UINT(params.BulletFlags) | 0x10000;
|
||||
params.FallingSpeedModifier = 0.0;
|
||||
params.FallingAccelModifier = 0.0;
|
||||
}
|
||||
else {
|
||||
if (pattern != 3) {
|
||||
return;
|
||||
}
|
||||
if (frame % 0x16 != 0) {
|
||||
return;
|
||||
}
|
||||
projectileSpeed = 9.0;
|
||||
projectileCount = 10;
|
||||
}
|
||||
goto LAB_00483620;
|
||||
}
|
||||
if (frame != (frame / 3) * 3) {
|
||||
return;
|
||||
}
|
||||
fVar2 = (float)frame * -0.125;
|
||||
}
|
||||
projectileSpeed = 12.0;
|
||||
projectileCount = 5;
|
||||
params.CircleAngle = (fVar2 / 30.0) * 6.2831855;
|
||||
}
|
||||
else {
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(params.BulletFlags)) + 0x0))) = GHIDRA_UINT(params.BulletFlags) | 1;
|
||||
params.HomingStrength = 0.3;
|
||||
if (pattern == 4) {
|
||||
uVar1 = frame & 0x80000007;
|
||||
isEighthFrame = uVar1 == 0;
|
||||
if (GHIDRA_INT(uVar1) < 0) {
|
||||
isEighthFrame = (uVar1 - 1 | 0xfffffff8) == 0xffffffff;
|
||||
}
|
||||
if (!isEighthFrame) {
|
||||
return;
|
||||
}
|
||||
projectileSpeed = 9.0;
|
||||
projectileCount = 7;
|
||||
params.FireDirectionLimit.x = dirX;
|
||||
params.FireDirectionLimit.y = dirY;
|
||||
params.DotProductLimit = 0.4;
|
||||
params.CircleAngle = 0.0;
|
||||
}
|
||||
else if (pattern == 5) {
|
||||
uVar1 = frame & 0x80000007;
|
||||
isEighthFrame = uVar1 == 0;
|
||||
if (GHIDRA_INT(uVar1) < 0) {
|
||||
isEighthFrame = (uVar1 - 1 | 0xfffffff8) == 0xffffffff;
|
||||
}
|
||||
if (!isEighthFrame) {
|
||||
return;
|
||||
}
|
||||
projectileSpeed = 9.0;
|
||||
projectileCount = 7;
|
||||
params.FireDirectionLimit.x = dirX;
|
||||
params.FireDirectionLimit.y = dirY;
|
||||
params.DotProductLimit = 0.4;
|
||||
params.CircleAngle = local_c8.y;
|
||||
}
|
||||
else if (pattern == 6) {
|
||||
uVar1 = frame & 0x80000007;
|
||||
isEighthFrame = uVar1 == 0;
|
||||
if (GHIDRA_INT(uVar1) < 0) {
|
||||
isEighthFrame = (uVar1 - 1 | 0xfffffff8) == 0xffffffff;
|
||||
}
|
||||
if (!isEighthFrame) {
|
||||
return;
|
||||
}
|
||||
projectileSpeed = 9.0;
|
||||
projectileCount = 7;
|
||||
params.FireDirectionLimit.x = dirX;
|
||||
params.FireDirectionLimit.y = dirY;
|
||||
params.DotProductLimit = 0.4;
|
||||
uVar1 = Random();
|
||||
params.CircleAngle =
|
||||
((float)((double)GHIDRA_INT(uVar1) + __uint_to_double_fixup[-(GHIDRA_INT(uVar1) >> 0x1f)]) *
|
||||
2.3283064e-10 - 0.5) * 3.1415927 * 0.1 + local_c8.y + 0.44879895;
|
||||
}
|
||||
else if (pattern == 7) {
|
||||
uVar1 = frame & 0x80000007;
|
||||
isEighthFrame = uVar1 == 0;
|
||||
if (GHIDRA_INT(uVar1) < 0) {
|
||||
isEighthFrame = (uVar1 - 1 | 0xfffffff8) == 0xffffffff;
|
||||
}
|
||||
if (!isEighthFrame) {
|
||||
return;
|
||||
}
|
||||
projectileSpeed = 9.0;
|
||||
projectileCount = 7;
|
||||
params.FireDirectionLimit.y = dirY;
|
||||
params.DotProductLimit = 0.4;
|
||||
params.FireDirectionLimit.x = dirX;
|
||||
fVar2 = sin(((float)frame + (float)frame) / 30.0);
|
||||
params.CircleAngle = fVar2 * 0.44879895 + local_c8.y + 0.44879895;
|
||||
}
|
||||
else if (pattern == 8) {
|
||||
if (frame % 0xd != 0) {
|
||||
return;
|
||||
}
|
||||
projectileSpeed = 9.0;
|
||||
projectileCount = 8;
|
||||
params.FireDirectionLimit.x = dirX;
|
||||
params.FireDirectionLimit.y = dirY;
|
||||
params.DotProductLimit = 0.0;
|
||||
}
|
||||
else {
|
||||
if (pattern != 9) {
|
||||
return;
|
||||
}
|
||||
if (frame % 10 != 0) {
|
||||
return;
|
||||
}
|
||||
projectileCount = 3;
|
||||
projectileSpeed = 9.0;
|
||||
params.HomingStrength = 0.65;
|
||||
params.CircleAngle = (((float)frame * -0.125) / 30.0) * 6.2831855;
|
||||
}
|
||||
}
|
||||
LAB_00483620:
|
||||
uVar1 = Random();
|
||||
manager = g_manager;
|
||||
if (npc->_championColorIdx == 0x12) {
|
||||
pitch = 1.5;
|
||||
}
|
||||
else if (npc->_championColorIdx == 0x13) {
|
||||
pitch = 0.5;
|
||||
}
|
||||
local_c8.y = 1.62551e-43;
|
||||
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_c8.y));
|
||||
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(GHIDRA_INT(local_c8.y),0.6,uVar1 % 0x1e + 0x14,0,pitch,0.0);
|
||||
local_c8.x = projectileSpeed;
|
||||
local_c8.y = (float)projectileCount;
|
||||
Entity_NPC::FireProjectiles(npc,&npc->_pos,&local_c8,9,¶ms);
|
||||
return;
|
||||
}
|
||||
|
||||
// 00499a50
|
||||
int * NpcHelper::chub_nearest_segment(int *param_1, int param_2)
|
||||
{
|
||||
|
||||
@@ -9221,7 +9221,6 @@ void NetplayTextPopup::clear() { generated_stub("NetplayTextPopup::clear 0092388
|
||||
void * NetworkManager::receive_message(void *outMessage, uint8_t channel, uint8_t isRemove) { generated_stub("NetworkManager::receive_message 00a78770"); }
|
||||
void NetworkManager::receive_packet(uint64_t *sender, void *buffer, int size) { generated_stub("NetworkManager::receive_packet 00a78a10"); }
|
||||
void * NetworkManager::get_peer(void *outPeer, uint64_t *userId) { generated_stub("NetworkManager::get_peer 00a790b0"); }
|
||||
void NpcHelper::the_lamb_pattern(Entity_NPC *npc, int pattern, int frame) { generated_stub("NpcHelper::the_lamb_pattern 004830e0"); }
|
||||
int * NpcHelper::chub_nearest_segment(int *param_1, int param_2) { generated_stub("NpcHelper::chub_nearest_segment 00499a50"); }
|
||||
void NpcHelper::chimera_charge_begin(Entity_NPC *npc, Vector *target, float speed) { generated_stub("NpcHelper::chimera_charge_begin 0049f870"); }
|
||||
void NpcHelper::chimera_render_child(Entity_NPC *npc, Vector *offset) { generated_stub("NpcHelper::chimera_render_child 004a1000"); }
|
||||
@@ -9423,40 +9422,6 @@ uint8_t Weapon_Deathmatch::CanShutDoors() { generated_stub("Weapon_Deathmatch::C
|
||||
void Weapon_Deathmatch::vfunc_14() { generated_stub("Weapon_Deathmatch::vfunc_14 005ccc00"); }
|
||||
void Weapon_Deathmatch::vfunc_15() { generated_stub("Weapon_Deathmatch::vfunc_15 005ccc00"); }
|
||||
void Weapon_Deathmatch::vfunc_16() { generated_stub("Weapon_Deathmatch::vfunc_16 005ccc00"); }
|
||||
Weapon_Fetus::~Weapon_Fetus() { generated_stub("Weapon_Fetus::~Weapon_Fetus 009f3260"); }
|
||||
void Weapon_Fetus::Init(uint32_t param_2, uint32_t param_3) { generated_stub("Weapon_Fetus::Init 009f34d0"); }
|
||||
void Weapon_Fetus::Update(char param_2) { generated_stub("Weapon_Fetus::Update 009f34f0"); }
|
||||
void Weapon_Fetus::Fire(Vector *direction, uint8_t isShooting, uint8_t isInterpolated) { generated_stub("Weapon_Fetus::Fire 00a036e0"); }
|
||||
void Weapon_Fetus::Reset() { generated_stub("Weapon_Fetus::Reset 009f3480"); }
|
||||
void Weapon_Fetus::ClearReferences() { generated_stub("Weapon_Fetus::ClearReferences 009f3320"); }
|
||||
float Weapon_Fetus::GetMaxCharge() { generated_stub("Weapon_Fetus::GetMaxCharge 00a03f60"); }
|
||||
long double Weapon_Fetus::GetChargeBarAmount() { generated_stub("Weapon_Fetus::GetChargeBarAmount 009f4150"); }
|
||||
void Weapon_Fetus::vfunc_8() { generated_stub("Weapon_Fetus::vfunc_8 009f3130"); }
|
||||
uint32_t Weapon_Fetus::GetFocusEntity() { generated_stub("Weapon_Fetus::GetFocusEntity 009f3140"); }
|
||||
void Weapon_Fetus::vfunc_10() { generated_stub("Weapon_Fetus::vfunc_10 009f3140"); }
|
||||
void Weapon_Fetus::guard_check_icall() { generated_stub("Weapon_Fetus::guard_check_icall 0040c200"); }
|
||||
int Weapon_Fetus::GetMarkedTargetVariant() { generated_stub("Weapon_Fetus::GetMarkedTargetVariant 009fa1b0"); }
|
||||
uint8_t Weapon_Fetus::CanShutDoors() { generated_stub("Weapon_Fetus::CanShutDoors 005ccc00"); }
|
||||
void Weapon_Fetus::vfunc_14() { generated_stub("Weapon_Fetus::vfunc_14 005ccc00"); }
|
||||
uint8_t Weapon_Fetus::CanTakeDamageFromTearEffects() { generated_stub("Weapon_Fetus::CanTakeDamageFromTearEffects 00709c30"); }
|
||||
void Weapon_Fetus::vfunc_16() { generated_stub("Weapon_Fetus::vfunc_16 005ccc00"); }
|
||||
Weapon_Ludovico::~Weapon_Ludovico() { generated_stub("Weapon_Ludovico::~Weapon_Ludovico 009f9880"); }
|
||||
void Weapon_Ludovico::Init(uint32_t param_2, uint32_t param_3) { generated_stub("Weapon_Ludovico::Init 009f34d0"); }
|
||||
void Weapon_Ludovico::Update(char param_2) { generated_stub("Weapon_Ludovico::Update 009f34f0"); }
|
||||
void Weapon_Ludovico::Fire(Vector *direction, uint8_t isShooting, uint8_t isInterpolated) { generated_stub("Weapon_Ludovico::Fire 00a06a30"); }
|
||||
void Weapon_Ludovico::Reset() { generated_stub("Weapon_Ludovico::Reset 009f3480"); }
|
||||
void Weapon_Ludovico::ClearReferences() { generated_stub("Weapon_Ludovico::ClearReferences 00a063b0"); }
|
||||
long double Weapon_Ludovico::GetMaxCharge() { generated_stub("Weapon_Ludovico::GetMaxCharge 009f3130"); }
|
||||
long double Weapon_Ludovico::GetChargeBarAmount() { generated_stub("Weapon_Ludovico::GetChargeBarAmount 009f4150"); }
|
||||
void Weapon_Ludovico::vfunc_8() { generated_stub("Weapon_Ludovico::vfunc_8 009f3130"); }
|
||||
Entity * Weapon_Ludovico::GetMainEntity() { generated_stub("Weapon_Ludovico::GetMainEntity 009f3150"); }
|
||||
void Weapon_Ludovico::vfunc_10() { generated_stub("Weapon_Ludovico::vfunc_10 009f3150"); }
|
||||
void Weapon_Ludovico::guard_check_icall() { generated_stub("Weapon_Ludovico::guard_check_icall 0040c200"); }
|
||||
uint32_t Weapon_Ludovico::GetFocusEntity() { generated_stub("Weapon_Ludovico::GetFocusEntity 009f3140"); }
|
||||
uint8_t Weapon_Ludovico::CanShutDoors() { generated_stub("Weapon_Ludovico::CanShutDoors 005ccc00"); }
|
||||
void Weapon_Ludovico::vfunc_14() { generated_stub("Weapon_Ludovico::vfunc_14 005ccc00"); }
|
||||
void Weapon_Ludovico::vfunc_15() { generated_stub("Weapon_Ludovico::vfunc_15 005ccc00"); }
|
||||
void Weapon_Ludovico::vfunc_16() { generated_stub("Weapon_Ludovico::vfunc_16 005ccc00"); }
|
||||
Weapon_MonstrosLung::~Weapon_MonstrosLung() { generated_stub("Weapon_MonstrosLung::~Weapon_MonstrosLung 009f3260"); }
|
||||
void Weapon_MonstrosLung::Init(uint32_t param_2, uint32_t param_3) { generated_stub("Weapon_MonstrosLung::Init 009f34d0"); }
|
||||
void Weapon_MonstrosLung::Update(char param_2) { generated_stub("Weapon_MonstrosLung::Update 009f34f0"); }
|
||||
@@ -9475,23 +9440,6 @@ uint8_t Weapon_MonstrosLung::CanShutDoors() { generated_stub("Weapon_MonstrosLun
|
||||
uint8_t Weapon_MonstrosLung::CanTriggerKidneyStone() { generated_stub("Weapon_MonstrosLung::CanTriggerKidneyStone 005ccc00"); }
|
||||
uint8_t Weapon_MonstrosLung::CanOverrideForgottenThrow() { generated_stub("Weapon_MonstrosLung::CanOverrideForgottenThrow 005ccc00"); }
|
||||
void Weapon_MonstrosLung::FireBurst(uint32_t param_1, int param_2) { generated_stub("Weapon_MonstrosLung::FireBurst 00a08700"); }
|
||||
Weapon_Rockets::~Weapon_Rockets() { generated_stub("Weapon_Rockets::~Weapon_Rockets 009f9880"); }
|
||||
void Weapon_Rockets::Init(uint32_t param_2, uint32_t param_3) { generated_stub("Weapon_Rockets::Init 009f34d0"); }
|
||||
void Weapon_Rockets::Update(char param_2) { generated_stub("Weapon_Rockets::Update 009f34f0"); }
|
||||
void Weapon_Rockets::Fire(Vector *aimDirection, uint8_t isShooting, uint8_t isInterpolated) { generated_stub("Weapon_Rockets::Fire 00a08d40"); }
|
||||
void Weapon_Rockets::Reset() { generated_stub("Weapon_Rockets::Reset 009f3480"); }
|
||||
void Weapon_Rockets::ClearReferences() { generated_stub("Weapon_Rockets::ClearReferences 00a063b0"); }
|
||||
long double Weapon_Rockets::GetMaxCharge() { generated_stub("Weapon_Rockets::GetMaxCharge 009f3130"); }
|
||||
long double Weapon_Rockets::GetChargeBarAmount() { generated_stub("Weapon_Rockets::GetChargeBarAmount 009f4150"); }
|
||||
void Weapon_Rockets::vfunc_8() { generated_stub("Weapon_Rockets::vfunc_8 009f3130"); }
|
||||
Entity * Weapon_Rockets::GetMainEntity() { generated_stub("Weapon_Rockets::GetMainEntity 009f3150"); }
|
||||
void Weapon_Rockets::vfunc_10() { generated_stub("Weapon_Rockets::vfunc_10 009f3150"); }
|
||||
void Weapon_Rockets::guard_check_icall() { generated_stub("Weapon_Rockets::guard_check_icall 0040c200"); }
|
||||
int Weapon_Rockets::GetMarkedTargetVariant() { generated_stub("Weapon_Rockets::GetMarkedTargetVariant 00a099a0"); }
|
||||
uint8_t Weapon_Rockets::CanShutDoors() { generated_stub("Weapon_Rockets::CanShutDoors 005ccc00"); }
|
||||
void Weapon_Rockets::vfunc_14() { generated_stub("Weapon_Rockets::vfunc_14 005ccc00"); }
|
||||
void Weapon_Rockets::vfunc_15() { generated_stub("Weapon_Rockets::vfunc_15 005ccc00"); }
|
||||
void Weapon_Rockets::vfunc_16() { generated_stub("Weapon_Rockets::vfunc_16 005ccc00"); }
|
||||
Weapon_SpiritSword::~Weapon_SpiritSword() { generated_stub("Weapon_SpiritSword::~Weapon_SpiritSword 009f9930"); }
|
||||
void Weapon_SpiritSword::Init(uint32_t param_2, uint32_t param_3) { generated_stub("Weapon_SpiritSword::Init 009f34d0"); }
|
||||
void Weapon_SpiritSword::Update(char param_2) { generated_stub("Weapon_SpiritSword::Update 009f34f0"); }
|
||||
@@ -10064,15 +10012,12 @@ bool FUN_004567d0() { generated_stub("FUN_004567d0 004567d0"); }
|
||||
void FUN_00456820() { generated_stub("FUN_00456820 00456820"); }
|
||||
void FUN_00456830(uint32_t param_1, uint32_t param_2, uint32_t param_3, uint32_t param_4) { generated_stub("FUN_00456830 00456830"); }
|
||||
int FUN_00456880() { generated_stub("FUN_00456880 00456880"); }
|
||||
void NpcAI::ENTITY_FLY_isaac_spawned(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FLY_isaac_spawned 004568d0"); }
|
||||
void NpcAI::ENTITY_WAR(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_WAR 00458870"); }
|
||||
void NpcAI::ENTITY_DEATH(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DEATH 00459d20"); }
|
||||
void NpcAI::ENTITY_HEADLESS_HORSEMAN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HEADLESS_HORSEMAN 0045cd60"); }
|
||||
void NpcAI::ENTITY_DARK_ONE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DARK_ONE 0045d7d0"); }
|
||||
float NpcAI::ENTITY_ISAAC(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_ISAAC 00463100"); }
|
||||
void NpcAI::ENTITY_PIN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_PIN 00476860"); }
|
||||
void FUN_00479d50(uint32_t *param_1) { generated_stub("FUN_00479d50 00479d50"); }
|
||||
void NpcAI::ENTITY_THE_LAMB(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_THE_LAMB 00483710"); }
|
||||
void NpcAI::ENTITY_BROWNIE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BROWNIE 0048c3b0"); }
|
||||
void NpcAI::ENTITY_CORN_MINE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_CORN_MINE 0048ee30"); }
|
||||
void NpcAI::ENTITY_FORSAKEN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FORSAKEN 0048f110"); }
|
||||
@@ -10142,10 +10087,8 @@ uint32_t FUN_004bc660() { generated_stub("FUN_004bc660 004bc660"); }
|
||||
Entity * FUN_004bcb30(uint32_t param_1, uint32_t param_2) { generated_stub("FUN_004bcb30 004bcb30"); }
|
||||
void NpcAI::ENTITY_HORNY_BOYS(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HORNY_BOYS 004bd2a0"); }
|
||||
void NpcAI::ENTITY_HUSH_BOIL(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HUSH_BOIL 004be6f0"); }
|
||||
void NpcAI::ENTITY_HUSH_GAPER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HUSH_GAPER 004bee40"); }
|
||||
void NpcAI::ENTITY_HUSH_FLY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HUSH_FLY 004bf310"); }
|
||||
void FUN_004bfd20() { generated_stub("FUN_004bfd20 004bfd20"); }
|
||||
void NpcAI::ENTITY_HUSH(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HUSH 004bfd30"); }
|
||||
void FUN_004c5850(uint8_t *param_1) { generated_stub("FUN_004c5850 004c5850"); }
|
||||
void FUN_004c5980(float *param_1, Vector *param_2) { generated_stub("FUN_004c5980 004c5980"); }
|
||||
void NpcAI::ENTITY_MATRIARCH(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MATRIARCH 004c59d0"); }
|
||||
@@ -10212,12 +10155,10 @@ uint8_t str_ne(std_string *a, uint8_t *b) { generated_stub("str_ne 004f84a0"); }
|
||||
void rng_pair_init(void *self) { generated_stub("rng_pair_init 004f88a0"); }
|
||||
uint32_t FUN_004f88e0() { generated_stub("FUN_004f88e0 004f88e0"); }
|
||||
uint32_t FUN_004f8930() { generated_stub("FUN_004f8930 004f8930"); }
|
||||
void NpcAI::ENTITY_ROCK_SPIDER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_ROCK_SPIDER 004f9ad0"); }
|
||||
void NpcAI::ENTITY_FACELESS(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FACELESS 004faad0"); }
|
||||
void NpcAI::ENTITY_DANNY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DANNY 004fbd10"); }
|
||||
void NpcAI::ENTITY_MOLE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MOLE 004fdf80"); }
|
||||
void NpcAI::ENTITY_GYRO(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_GYRO 004ff620"); }
|
||||
void NpcAI::ENTITY_FIRE_WORM(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FIRE_WORM 00500990"); }
|
||||
void NpcAI::ENTITY_BOUNCER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BOUNCER 00501f30"); }
|
||||
void NpcAI::ENTITY_FLESH_MAIDEN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FLESH_MAIDEN 00502980"); }
|
||||
void NpcAI::ENTITY_BOMBGAGGER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BOMBGAGGER 00503300"); }
|
||||
@@ -10232,18 +10173,10 @@ uint32_t * FUN_00505ce0() { generated_stub("FUN_00505ce0 00505ce0"); }
|
||||
void NpcAI::ENTITY_STONE_EYE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_STONE_EYE 00505d00"); }
|
||||
void NpcAI::ENTITY_KNIGHT(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_KNIGHT 005135d0"); }
|
||||
long double FUN_00515290(Vector *param_1, uint32_t param_2, int param_3) { generated_stub("FUN_00515290 00515290"); }
|
||||
void NpcAI::ENTITY_MRMAW(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MRMAW 00517de0"); }
|
||||
void NpcAI::ENTITY_SWARMER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SWARMER 00518e20"); }
|
||||
void NpcAI::ENTITY_HANGER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HANGER 0051cb30"); }
|
||||
void NpcAI::ENTITY_URIEL(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_URIEL 0051e0f0"); }
|
||||
void NpcAI::ENTITY_HEART(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HEART 0051f2f0"); }
|
||||
void NpcAI::ENTITY_POKY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_POKY 00521ab0"); }
|
||||
void NpcAI::ENTITY_DOPLE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DOPLE 00525650"); }
|
||||
void NpcAI::ENTITY_BABY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BABY 0052ae30"); }
|
||||
void NpcAI::ENTITY_COD_WORM(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_COD_WORM 00531350"); }
|
||||
void NpcAI::ENTITY_MOBILE_HOST(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MOBILE_HOST 005321d0"); }
|
||||
void NpcAI::ENTITY_MOMS_HAND(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_MOMS_HAND 00533b80"); }
|
||||
void NpcAI::ENTITY_WIZOOB(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_WIZOOB 005374a0"); }
|
||||
void NpcAI::ENTITY_HOMUNCULUS(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HOMUNCULUS 00539b90"); }
|
||||
void NpcAI::ENTITY_OOB(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_OOB 0053ab40"); }
|
||||
void NpcAI::ENTITY_BLACK_MAW(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BLACK_MAW 0053b2f0"); }
|
||||
@@ -10261,7 +10194,6 @@ void NpcAI::ENTITY_COHORT(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_COHOR
|
||||
void NpcAI::ENTITY_GENERIC_PROP(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_GENERIC_PROP 00551d30"); }
|
||||
void NpcAI::ENTITY_SHADY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SHADY 005522d0"); }
|
||||
void NpcAI::ENTITY_BLOOD_PUPPY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BLOOD_PUPPY 00552d30"); }
|
||||
void NpcAI::ENTITY_DARK_ESAU(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DARK_ESAU 005542e0"); }
|
||||
void NpcAI::ENTITY_PEEPER_FATTY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_PEEPER_FATTY 005562b0"); }
|
||||
void FUN_005579b0(Vector *param_1) { generated_stub("FUN_005579b0 005579b0"); }
|
||||
void FUN_00557b50(uint32_t param_1) { generated_stub("FUN_00557b50 00557b50"); }
|
||||
@@ -10273,8 +10205,6 @@ int NpcAI::ENTITY_WILLO_L2_find_target(Entity_NPC *npc) { generated_stub("NpcAI:
|
||||
void NpcAI::ENTITY_WILLO_L2(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_WILLO_L2 005593c0"); }
|
||||
Entity_Projectile * NpcAI::ENTITY_BUBBLES(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BUBBLES 0055ad20"); }
|
||||
void NpcAI::ENTITY_SMALL_LEECH(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SMALL_LEECH 0055b740"); }
|
||||
uint32_t FUN_0055c6a0(float *param_1) { generated_stub("FUN_0055c6a0 0055c6a0"); }
|
||||
void NpcAI::ENTITY_STRIDER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_STRIDER 0055c810"); }
|
||||
uint32_t NpcAI::ENTITY_POLTY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_POLTY 0055d230"); }
|
||||
void NpcAI::ENTITY_FLY_TRAP(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FLY_TRAP 00560ca0"); }
|
||||
void NpcAI::ENTITY_FLY_orbit_parent(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FLY_orbit_parent 00561580"); }
|
||||
@@ -10351,7 +10281,6 @@ void NpcAI::ENTITY_BEAST_rock_projectile(Entity_NPC *npc) { generated_stub("NpcA
|
||||
void NpcAI::ENTITY_BEAST_soul(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BEAST_soul 005971e0"); }
|
||||
void FUN_00598260(Vector *param_1) { generated_stub("FUN_00598260 00598260"); }
|
||||
uint32_t * FUN_00598290(uint32_t *param_1, uint32_t *param_2) { generated_stub("FUN_00598290 00598290"); }
|
||||
void NpcAI::ENTITY_POLYCEPHALUS_the_pile(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_POLYCEPHALUS_the_pile 005983f0"); }
|
||||
void NpcAI::ENTITY_TUFF_TWINS_head_anim(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_TUFF_TWINS_head_anim 00599b80"); }
|
||||
void NpcAI::ENTITY_TUFF_TWINS_body_anim(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_TUFF_TWINS_body_anim 00599d70"); }
|
||||
void FUN_0059a200() { generated_stub("FUN_0059a200 0059a200"); }
|
||||
@@ -10361,7 +10290,6 @@ void NpcAI::ENTITY_TURDLET(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_TURD
|
||||
void NpcAI::ENTITY_ULTRA_GREED(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_ULTRA_GREED 0059edb0"); }
|
||||
void NpcAI::ENTITY_ULTRA_COIN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_ULTRA_COIN 005a4820"); }
|
||||
void NpcAI::ENTITY_ULTRA_DOOR(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_ULTRA_DOOR 005a5b60"); }
|
||||
void NpcAI::ENTITY_GREED_GAPER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_GREED_GAPER 005a6b80"); }
|
||||
void FUN_005a6fb0() { generated_stub("FUN_005a6fb0 005a6fb0"); }
|
||||
uint8_t FUN_005a7570() { generated_stub("FUN_005a7570 005a7570"); }
|
||||
void NpcAI::ENTITY_VISAGE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_VISAGE 005a7b20"); }
|
||||
@@ -10417,8 +10345,6 @@ void FUN_005b19f0(uint32_t param_1) { generated_stub("FUN_005b19f0 005b19f0"); }
|
||||
uint8_t FUN_005b1a00() { generated_stub("FUN_005b1a00 005b1a00"); }
|
||||
bool FUN_005b1a10() { generated_stub("FUN_005b1a10 005b1a10"); }
|
||||
void alabaster_box_timer_callback(Entity *timer) { generated_stub("alabaster_box_timer_callback 005b30b0"); }
|
||||
void Isaac::SpawnLocust(Entity_Player *player, int collectibleType, Vector *pos) { generated_stub("Isaac::SpawnLocust 005b35c0"); }
|
||||
uint32_t FUN_005b3990(uint32_t *param_1) { generated_stub("FUN_005b3990 005b3990"); }
|
||||
void FUN_005c7ad0(int param_1) { generated_stub("FUN_005c7ad0 005c7ad0"); }
|
||||
void FUN_005c7bf0(int *param_1, int *param_2) { generated_stub("FUN_005c7bf0 005c7bf0"); }
|
||||
void FUN_005c7d30(int param_1) { generated_stub("FUN_005c7d30 005c7d30"); }
|
||||
@@ -10562,7 +10488,6 @@ void FUN_0060d400() { generated_stub("FUN_0060d400 0060d400"); }
|
||||
void FUN_0060d530(uint8_t param_1) { generated_stub("FUN_0060d530 0060d530"); }
|
||||
void FUN_0060d5e0(uint8_t param_1) { generated_stub("FUN_0060d5e0 0060d5e0"); }
|
||||
uint32_t FUN_0060dae0() { generated_stub("FUN_0060dae0 0060dae0"); }
|
||||
void * FamiliarAI::blue_spider(Entity_Familiar *familiar) { generated_stub("FamiliarAI::blue_spider 00616050"); }
|
||||
void FamiliarAI::bobs_brain(Entity_Familiar *familiar) { generated_stub("FamiliarAI::bobs_brain 00616770"); }
|
||||
void FamiliarAI::gb_bug(Entity_Familiar *familiar) { generated_stub("FamiliarAI::gb_bug 00618b00"); }
|
||||
void FamiliarAI::variant_53(Entity_Familiar *familiar) { generated_stub("FamiliarAI::variant_53 006196e0"); }
|
||||
@@ -10580,7 +10505,6 @@ void FamiliarAI::sprinkler(Entity_Familiar *familiar) { generated_stub("Familiar
|
||||
void FamiliarAI::mystery_egg(Entity_Familiar *familiar) { generated_stub("FamiliarAI::mystery_egg 00638170"); }
|
||||
void FamiliarAI::lil_spewer(Entity_Familiar *familiar) { generated_stub("FamiliarAI::lil_spewer 006384a0"); }
|
||||
void FUN_00638e20() { generated_stub("FUN_00638e20 00638e20"); }
|
||||
void spawn_blue_spider(Vector *position, Entity *spawner, Vector *target) { generated_stub("spawn_blue_spider 00638e30"); }
|
||||
void FUN_006395e0(Vector *param_1, int *param_2, int param_3, int param_4, int param_5, float param_6, int param_7, int param_8, Entity *param_9, int param_10) { generated_stub("FUN_006395e0 006395e0"); }
|
||||
Entity_Laser * FamiliarHelper::sprinkler_fire_laser(Entity_Familiar *familiar, float angle, float distance) { generated_stub("FamiliarHelper::sprinkler_fire_laser 0063acf0"); }
|
||||
Entity_Knife * FamiliarAI::sprinkler_spawn_knife(Entity_Familiar *familiar) { generated_stub("FamiliarAI::sprinkler_spawn_knife 0063b070"); }
|
||||
@@ -10938,7 +10862,6 @@ void FUN_007098c0() { generated_stub("FUN_007098c0 007098c0"); }
|
||||
void FUN_00709930() { generated_stub("FUN_00709930 00709930"); }
|
||||
int FUN_00709bc0() { generated_stub("FUN_00709bc0 00709bc0"); }
|
||||
uint8_t FUN_0070bf60() { generated_stub("FUN_0070bf60 0070bf60"); }
|
||||
uint8_t is_grid_type_floor_special(int gridType) { generated_stub("is_grid_type_floor_special 0070bf80"); }
|
||||
void FUN_0070bfa0(int param_1, int param_2, uint32_t param_3, float param_4) { generated_stub("FUN_0070bfa0 0070bfa0"); }
|
||||
void FUN_0070c570(uint32_t *param_1) { generated_stub("FUN_0070c570 0070c570"); }
|
||||
uint32_t FUN_00710370() { generated_stub("FUN_00710370 00710370"); }
|
||||
@@ -11050,7 +10973,6 @@ void FUN_00753620() { generated_stub("FUN_00753620 00753620"); }
|
||||
bool FUN_00753630() { generated_stub("FUN_00753630 00753630"); }
|
||||
bool FUN_00753640() { generated_stub("FUN_00753640 00753640"); }
|
||||
void FUN_00753650() { generated_stub("FUN_00753650 00753650"); }
|
||||
void FUN_00753660(uint32_t *param_1, uint32_t param_2) { generated_stub("FUN_00753660 00753660"); }
|
||||
uint32_t FUN_00753700() { generated_stub("FUN_00753700 00753700"); }
|
||||
uint32_t FUN_00753710() { generated_stub("FUN_00753710 00753710"); }
|
||||
void FUN_00753720() { generated_stub("FUN_00753720 00753720"); }
|
||||
@@ -11110,9 +11032,7 @@ void FUN_007cf940() { generated_stub("FUN_007cf940 007cf940"); }
|
||||
long double FUN_007cf9a0(float *param_1, KColor *param_2, uint32_t param_3) { generated_stub("FUN_007cf9a0 007cf9a0"); }
|
||||
uint8_t * FUN_007cfa90() { generated_stub("FUN_007cfa90 007cfa90"); }
|
||||
void FUN_007d3330(int param_1) { generated_stub("FUN_007d3330 007d3330"); }
|
||||
Game * damage_charge_scale() { generated_stub("damage_charge_scale 007d3560"); }
|
||||
void FUN_007d3e00() { generated_stub("FUN_007d3e00 007d3e00"); }
|
||||
char FUN_007d4320() { generated_stub("FUN_007d4320 007d4320"); }
|
||||
void FUN_007d9360() { generated_stub("FUN_007d9360 007d9360"); }
|
||||
uint32_t FUN_007d9ca0() { generated_stub("FUN_007d9ca0 007d9ca0"); }
|
||||
uint32_t FUN_007da770() { generated_stub("FUN_007da770 007da770"); }
|
||||
@@ -11289,7 +11209,6 @@ void render_beast_arena_background(void *self, int pass) { generated_stub("rende
|
||||
void FUN_0083aae0(uint8_t param_1, int *param_2, uint32_t *param_3) { generated_stub("FUN_0083aae0 0083aae0"); }
|
||||
void FUN_0083b830() { generated_stub("FUN_0083b830 0083b830"); }
|
||||
int FUN_0083bbc0(int param_1) { generated_stub("FUN_0083bbc0 0083bbc0"); }
|
||||
void FUN_0083bed0(int param_1, int param_2) { generated_stub("FUN_0083bed0 0083bed0"); }
|
||||
void FUN_0083bf50() { generated_stub("FUN_0083bf50 0083bf50"); }
|
||||
void FUN_0083bf90(uint32_t *param_1) { generated_stub("FUN_0083bf90 0083bf90"); }
|
||||
void Catch_All_0083c241() { generated_stub("Catch_All_0083c241 0083c241"); }
|
||||
@@ -13693,15 +13612,11 @@ void FUN_009f3c40() { generated_stub("FUN_009f3c40 009f3c40"); }
|
||||
void FUN_009f4130() { generated_stub("FUN_009f4130 009f4130"); }
|
||||
Entity_Player * FUN_009f4fc0() { generated_stub("FUN_009f4fc0 009f4fc0"); }
|
||||
void FUN_009f5810(uint8_t param_1) { generated_stub("FUN_009f5810 009f5810"); }
|
||||
Entity_Tear * fire_fetus_tear(void *self, Vector *position, Vector *velocity, int fireFlags, Entity *source, float damageMultiplier, int unused) { generated_stub("fire_fetus_tear 009f6e60"); }
|
||||
uint32_t * FUN_009f9080() { generated_stub("FUN_009f9080 009f9080"); }
|
||||
uint32_t * FUN_009f90f0() { generated_stub("FUN_009f90f0 009f90f0"); }
|
||||
uint32_t * FUN_009f9170() { generated_stub("FUN_009f9170 009f9170"); }
|
||||
uint32_t * FUN_009f92d0() { generated_stub("FUN_009f92d0 009f92d0"); }
|
||||
uint32_t * FUN_009f9350() { generated_stub("FUN_009f9350 009f9350"); }
|
||||
uint32_t * FUN_009f93d0() { generated_stub("FUN_009f93d0 009f93d0"); }
|
||||
uint32_t * FUN_009f9440() { generated_stub("FUN_009f9440 009f9440"); }
|
||||
uint32_t * FUN_009f95d0() { generated_stub("FUN_009f95d0 009f95d0"); }
|
||||
uint32_t * FUN_00a06940(void *param_1, uint32_t *param_2) { generated_stub("FUN_00a06940 00a06940"); }
|
||||
void * operator_new(uint32_t size) { generated_stub("operator_new 00a0f4c0"); }
|
||||
void * operator_new_tracked(uint32_t size) { generated_stub("operator_new_tracked 00a0f4e0"); }
|
||||
@@ -17350,7 +17265,6 @@ void FUN_00a627d0() { generated_stub("FUN_00a627d0 00a627d0"); }
|
||||
void FUN_00a62800(uint8_t param_1) { generated_stub("FUN_00a62800 00a62800"); }
|
||||
void FUN_00a62830(uint32_t param_1, uint32_t param_2, uint32_t param_3, uint32_t param_4) { generated_stub("FUN_00a62830 00a62830"); }
|
||||
uint8_t FUN_00a62870() { generated_stub("FUN_00a62870 00a62870"); }
|
||||
uint32_t FUN_00a62910(uint8_t *param_1) { generated_stub("FUN_00a62910 00a62910"); }
|
||||
uint32_t FUN_00a62a10() { generated_stub("FUN_00a62a10 00a62a10"); }
|
||||
char * FUN_00a62dc0() { generated_stub("FUN_00a62dc0 00a62dc0"); }
|
||||
char * string_duplicate_lower() { generated_stub("string_duplicate_lower 00a62e10"); }
|
||||
@@ -17768,11 +17682,9 @@ char * FUN_00a8a070(char *param_1) { generated_stub("FUN_00a8a070 00a8a070"); }
|
||||
void TheoraVideoManager::TheoraVideoManager() { generated_stub("TheoraVideoManager::TheoraVideoManager 00a8a090"); }
|
||||
void FUN_00a8a810(uint8_t param_1) { generated_stub("FUN_00a8a810 00a8a810"); }
|
||||
void FUN_00a8a970() { generated_stub("FUN_00a8a970 00a8a970"); }
|
||||
int * theora_create_video_clip(uint32_t param_1, int *param_2) { generated_stub("theora_create_video_clip 00a8ab60"); }
|
||||
void Catch_00a8b0f1() { generated_stub("Catch_00a8b0f1 00a8b0f1"); }
|
||||
void FUN_00a8b130(int param_1) { generated_stub("FUN_00a8b130 00a8b130"); }
|
||||
void FUN_00a8b160(uint8_t param_1) { generated_stub("FUN_00a8b160 00a8b160"); }
|
||||
void TheoraVideoManager::destroyVideoClip(void *clip) { generated_stub("TheoraVideoManager::destroyVideoClip 00a8b190"); }
|
||||
void TheoraVideoManager::createWorkerThreads(int param_1) { generated_stub("TheoraVideoManager::createWorkerThreads 00a8b570"); }
|
||||
int TheoraVideoManager::requestWork(uint32_t param_1) { generated_stub("TheoraVideoManager::requestWork 00a8b7d0"); }
|
||||
void FUN_00a8bbd0(uint8_t param_1) { generated_stub("FUN_00a8bbd0 00a8bbd0"); }
|
||||
@@ -17803,7 +17715,6 @@ void FUN_00a8d950() { generated_stub("FUN_00a8d950 00a8d950"); }
|
||||
void VideoClip_Theora::_executeSeek() { generated_stub("VideoClip_Theora::_executeSeek 00a8da40"); }
|
||||
void FUN_00a8e050() { generated_stub("FUN_00a8e050 00a8e050"); }
|
||||
uint32_t VideoClip_Theora::_seekPage(int param_1, char param_2) { generated_stub("VideoClip_Theora::_seekPage 00a8e1b0"); }
|
||||
void VideoClip_Theora::readTheoraVorbisHeaders() { generated_stub("VideoClip_Theora::readTheoraVorbisHeaders 00a8e530"); }
|
||||
void wgl_provider_resolver(int param_1) { generated_stub("wgl_provider_resolver 00a8ecc0"); }
|
||||
void FUN_00a8f390() { generated_stub("FUN_00a8f390 00a8f390"); }
|
||||
void FUN_00a8f3c0(uint32_t param_1, uint32_t param_2, uint32_t param_3, uint32_t param_4) { generated_stub("FUN_00a8f3c0 00a8f3c0"); }
|
||||
@@ -18122,13 +18033,9 @@ void FUN_00aa9a20(int param_1) { generated_stub("FUN_00aa9a20 00aa9a20"); }
|
||||
void FUN_00aa9a70(int param_1) { generated_stub("FUN_00aa9a70 00aa9a70"); }
|
||||
void FUN_00aa9ab0(int param_1) { generated_stub("FUN_00aa9ab0 00aa9ab0"); }
|
||||
void FUN_00aa9bb0() { generated_stub("FUN_00aa9bb0 00aa9bb0"); }
|
||||
void vorbis_info_clear(void *info) { generated_stub("vorbis_info_clear 00aa9c20"); }
|
||||
uint32_t _vorbis_unpack_books() { generated_stub("_vorbis_unpack_books 00aa9e80"); }
|
||||
uint32_t vorbis_synthesis_headerin(int param_1) { generated_stub("vorbis_synthesis_headerin 00aaa150"); }
|
||||
int FUN_00aaa450() { generated_stub("FUN_00aaa450 00aaa450"); }
|
||||
int FUN_00aaa4a0() { generated_stub("FUN_00aaa4a0 00aaa4a0"); }
|
||||
void FUN_00aaaa90() { generated_stub("FUN_00aaaa90 00aaaa90"); }
|
||||
void FUN_00aaaae0(int param_1) { generated_stub("FUN_00aaaae0 00aaaae0"); }
|
||||
uint32_t FUN_00aaabb0() { generated_stub("FUN_00aaabb0 00aaabb0"); }
|
||||
void FUN_00aaac20() { generated_stub("FUN_00aaac20 00aaac20"); }
|
||||
void FUN_00aaace0(uint8_t param_1) { generated_stub("FUN_00aaace0 00aaace0"); }
|
||||
@@ -18157,23 +18064,13 @@ void FUN_00aabd90(int *param_1, char param_2) { generated_stub("FUN_00aabd90 00a
|
||||
void FUN_00aabe70(int *param_1, char param_2) { generated_stub("FUN_00aabe70 00aabe70"); }
|
||||
uint32_t FUN_00aabeb0() { generated_stub("FUN_00aabeb0 00aabeb0"); }
|
||||
uint32_t FUN_00aabec0() { generated_stub("FUN_00aabec0 00aabec0"); }
|
||||
int64_t ogg_page_granulepos(void *page) { generated_stub("ogg_page_granulepos 00aabed0"); }
|
||||
uint32_t FUN_00aabf60() { generated_stub("FUN_00aabf60 00aabf60"); }
|
||||
uint32_t FUN_00aabfb0() { generated_stub("FUN_00aabfb0 00aabfb0"); }
|
||||
uint32_t FUN_00aac040() { generated_stub("FUN_00aac040 00aac040"); }
|
||||
void ogg_page_checksum_set() { generated_stub("ogg_page_checksum_set 00aac110"); }
|
||||
int FUN_00aac1a0() { generated_stub("FUN_00aac1a0 00aac1a0"); }
|
||||
int ogg_sync_pageseek() { generated_stub("ogg_sync_pageseek 00aac240"); }
|
||||
int ogg_sync_pageout(void *syncState, void *page) { generated_stub("ogg_sync_pageout 00aac3e0"); }
|
||||
uint32_t ogg_stream_pagein() { generated_stub("ogg_stream_pagein 00aac5c0"); }
|
||||
uint32_t ogg_stream_reset() { generated_stub("ogg_stream_reset 00aac8f0"); }
|
||||
int ogg_stream_packetout(void *streamState, void *packet) { generated_stub("ogg_stream_packetout 00aac980"); }
|
||||
int FUN_00aaca80() { generated_stub("FUN_00aaca80 00aaca80"); }
|
||||
void FUN_00aacae0() { generated_stub("FUN_00aacae0 00aacae0"); }
|
||||
uint32_t _vds_shared_init() { generated_stub("_vds_shared_init 00aacb50"); }
|
||||
void vorbis_dsp_clear(void *dspState) { generated_stub("vorbis_dsp_clear 00aacf20"); }
|
||||
uint32_t vorbis_synthesis_restart() { generated_stub("vorbis_synthesis_restart 00aad330"); }
|
||||
uint32_t vorbis_synthesis_blockin() { generated_stub("vorbis_synthesis_blockin 00aad3b0"); }
|
||||
uint32_t FUN_00aada30() { generated_stub("FUN_00aada30 00aada30"); }
|
||||
void FUN_00aadbf0(uint32_t param_1, uint32_t param_2) { generated_stub("FUN_00aadbf0 00aadbf0"); }
|
||||
void AudioPacketQueue::destroyAllAudioPackets() { generated_stub("AudioPacketQueue::destroyAllAudioPackets 00aadc80"); }
|
||||
@@ -18269,7 +18166,6 @@ int I420ToRGBAMatrix(uint8_t *srcY, int srcStrideY, uint8_t *srcU, int srcStride
|
||||
uint32_t FUN_00ab6bc0(int param_1, int param_2, int param_3, int param_4, int param_5, int param_6, uint32_t param_7, uint32_t param_8, int param_9) { generated_stub("FUN_00ab6bc0 00ab6bc0"); }
|
||||
uint32_t FUN_00ab6d00(int param_1, int param_2, int param_3, int param_4, int param_5, int param_6, uint32_t param_7, uint32_t param_8, int param_9) { generated_stub("FUN_00ab6d00 00ab6d00"); }
|
||||
void FUN_00ab6e40() { generated_stub("FUN_00ab6e40 00ab6e40"); }
|
||||
void oggpack_write(void *buffer, uint32_t value, int bits) { generated_stub("oggpack_write 00ab6ee0"); }
|
||||
uint32_t FUN_00ab7010() { generated_stub("FUN_00ab7010 00ab7010"); }
|
||||
void FUN_00ab70d0() { generated_stub("FUN_00ab70d0 00ab70d0"); }
|
||||
uint32_t FUN_00ab7120() { generated_stub("FUN_00ab7120 00ab7120"); }
|
||||
@@ -18586,10 +18482,7 @@ uint32_t oc_dec_postprocess_init(int param_1) { generated_stub("oc_dec_postproce
|
||||
void oc_dering_block(uint8_t *param_1, uint32_t param_2, uint32_t param_3, int *param_4, int param_5, uint8_t *param_6) { generated_stub("oc_dering_block 00addab0"); }
|
||||
void oc_filter_hedge(uint8_t *param_1, int param_2, int param_3, int param_4, int param_5, int param_6, int *param_7, int *param_8) { generated_stub("oc_filter_hedge 00ade460"); }
|
||||
void oc_filter_vedge(int param_1, int param_2, int param_3, int param_4, int *param_5) { generated_stub("oc_filter_vedge 00ade750"); }
|
||||
void * th_decode_alloc(void *info, void *setup) { generated_stub("th_decode_alloc 00ade980"); }
|
||||
uint32_t th_decode_ctl(int param_1, uint32_t param_2, uint32_t *param_3, int param_4) { generated_stub("th_decode_ctl 00ade9f0"); }
|
||||
void FUN_00adeb70(int param_1) { generated_stub("FUN_00adeb70 00adeb70"); }
|
||||
uint32_t th_decode_packetin(int *param_1, uint32_t *param_2, int64_t *param_3) { generated_stub("th_decode_packetin 00adebd0"); }
|
||||
uint32_t FUN_00adf8c0(int param_1, void *param_2) { generated_stub("FUN_00adf8c0 00adf8c0"); }
|
||||
void FUN_00adf8f0(int *param_1) { generated_stub("FUN_00adf8f0 00adf8f0"); }
|
||||
void FUN_00adf940(uint32_t *param_1) { generated_stub("FUN_00adf940 00adf940"); }
|
||||
@@ -18624,7 +18517,6 @@ uint32_t oc_state_frarray_init(int param_1) { generated_stub("oc_state_frarray_i
|
||||
uint32_t FUN_00ae1900(int param_1, int *param_2, int param_3, short param_4) { generated_stub("FUN_00ae1900 00ae1900"); }
|
||||
int FUN_00ae19b0(uint32_t *param_1, uint8_t *param_2, uint32_t param_3) { generated_stub("FUN_00ae19b0 00ae19b0"); }
|
||||
uint32_t oc_state_ref_bufs_init(int param_1, int *param_2) { generated_stub("oc_state_ref_bufs_init 00ae1cf0"); }
|
||||
int64_t th_granule_frame(void *decoder, int64_t granulePosition) { generated_stub("th_granule_frame 00ae2060"); }
|
||||
long double FUN_00ae2110(int param_1, int64_t param_2) { generated_stub("FUN_00ae2110 00ae2110"); }
|
||||
void oc_dequant_tables_init(int param_1, int param_2, int param_3) { generated_stub("oc_dequant_tables_init 00ae2200"); }
|
||||
int FUN_00ae2580(int *param_1) { generated_stub("FUN_00ae2580 00ae2580"); }
|
||||
|
||||
@@ -1,413 +0,0 @@
|
||||
#include "classes.h"
|
||||
|
||||
// 00a036e0
|
||||
void Weapon_Fetus::Fire(Vector *direction, uint8_t isShooting, uint8_t isInterpolated)
|
||||
{
|
||||
void *player = this;
|
||||
Entity *source;
|
||||
Vector shotDirection;
|
||||
uint8_t bVar1;
|
||||
uint32_t uVar2;
|
||||
Entity_Player *owner;
|
||||
int ownerPlayer;
|
||||
float *pfVar3;
|
||||
ANM2 *pAVar4;
|
||||
Vector *pVVar5;
|
||||
Entity_Tear *tear;
|
||||
uint8_t *animName;
|
||||
Vector *newAimDirection;
|
||||
Entity_Player *player;
|
||||
int extraout_ECX;
|
||||
int unusedArg;
|
||||
int extraout_ECX_00;
|
||||
ANM2 *this_00;
|
||||
ANM2 *extraout_ECX_01;
|
||||
void *pvVar6;
|
||||
ANM2 *extraout_ECX_02;
|
||||
int unusedCollectibleId;
|
||||
int extraout_ECX_03;
|
||||
ANM2 *extraout_ECX_04;
|
||||
int extraout_ECX_05;
|
||||
int extraout_ECX_06;
|
||||
Entity_Player *ownerAsPlayer;
|
||||
long double fVar7;
|
||||
float fVar8;
|
||||
uint8_t *puVar9;
|
||||
int iVar10;
|
||||
short multiShotParams [2];
|
||||
float fStack_a0;
|
||||
float fStack_9c;
|
||||
float fStack_98;
|
||||
float fStack_94;
|
||||
int iStack_90;
|
||||
float fStack_8c;
|
||||
char isShootingBackwards;
|
||||
char isShootingSideways;
|
||||
uint32_t uStack_88;
|
||||
uint32_t numRandomDirTears;
|
||||
Weapon *weapon;
|
||||
float spreadAngle;
|
||||
Vector scratchVec;
|
||||
Vector local_70;
|
||||
Vector firePos;
|
||||
Vector aimDirection;
|
||||
Vector local_58;
|
||||
Vector *directionLocal;
|
||||
float local_4c;
|
||||
char isMarked;
|
||||
float local_44;
|
||||
float local_40;
|
||||
uint64_t subAnimName;
|
||||
float local_34;
|
||||
float local_30;
|
||||
Vector local_2c;
|
||||
uint32_t local_24;
|
||||
uint8_t *puStack_20;
|
||||
void *local_1c;
|
||||
uint8_t *puStack_18;
|
||||
uint32_t local_14;
|
||||
|
||||
puStack_20 = GHIDRA_CAST<uint8_t *>((GHIDRA_INT(register0x00000010) + -4));
|
||||
local_14 = (void *)0xffffffff;
|
||||
puStack_18 = &LAB_00b107dd;
|
||||
local_1c = ExceptionList;
|
||||
uVar2 = __security_cookie ^ GHIDRA_INT(register0x00000010) - 0x10U;
|
||||
ExceptionList = &local_1c;
|
||||
directionLocal = direction;
|
||||
weapon = player;
|
||||
local_24 = uVar2;
|
||||
Weapon::Fire(player,direction,isShooting,isInterpolated);
|
||||
owner = *GHIDRA_CAST<Entity_Player **>((GHIDRA_CAST<char *>(player) + 4));
|
||||
ownerAsPlayer = owner;
|
||||
if (owner == GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
LAB_00a03762:
|
||||
player = GHIDRA_CAST<Entity_Player *>(0x0);
|
||||
if ((owner == GHIDRA_CAST<Entity_Player *>(0x0)) || (owner->_type != 1)) {
|
||||
LAB_00a03770:
|
||||
if ((owner == GHIDRA_CAST<Entity_Player *>(0x0)) ||
|
||||
((ownerAsPlayer = GHIDRA_CAST<Entity_Player *>(0x0), owner->_type != 1 &&
|
||||
((owner->_type != 3 ||
|
||||
(owner = *GHIDRA_CAST<Entity_Player **>(&owner->_isControlsEnabled), owner == GHIDRA_CAST<Entity_Player *>(0x0)))))
|
||||
)) {
|
||||
local_70.y = 1.0;
|
||||
ownerAsPlayer = GHIDRA_CAST<Entity_Player *>(0x0);
|
||||
goto LAB_00a037a2;
|
||||
}
|
||||
}
|
||||
local_70.y = owner->_shotspeed;
|
||||
}
|
||||
else {
|
||||
if (owner->_type != 1) {
|
||||
if (owner->_type != 3) goto LAB_00a03762;
|
||||
player = *GHIDRA_CAST<Entity_Player **>(&owner->_isControlsEnabled);
|
||||
goto LAB_00a03770;
|
||||
}
|
||||
local_70.y = owner->_shotspeed;
|
||||
player = owner;
|
||||
}
|
||||
LAB_00a037a2:
|
||||
local_70.y = local_70.y * 1.25;
|
||||
if (player == GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
LAB_00a037c7:
|
||||
isMarked = '\0';
|
||||
}
|
||||
else {
|
||||
bVar1 = Entity_Player::HasCollectible(player,0x18a,0);
|
||||
isMarked = '\x01';
|
||||
if (bVar1 == 0) goto LAB_00a037c7;
|
||||
}
|
||||
local_40 = (float)(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(player) + 0x34)) >> 7 & 0xffffff01);
|
||||
fVar7 = (long double)(**(code **)(*GHIDRA_CAST<int *>(player) + 0x18))(uVar2);
|
||||
iVar10 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(player) + 4));
|
||||
fVar8 = (float)fVar7;
|
||||
local_44 = fVar8;
|
||||
if (iVar10 == 0) {
|
||||
LAB_00a0382d:
|
||||
firePos.x = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x28));
|
||||
firePos.y = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x2c));
|
||||
}
|
||||
else {
|
||||
if (*GHIDRA_CAST<int *>((iVar10 + 0x28)) == 1) {
|
||||
ownerPlayer = iVar10;
|
||||
}
|
||||
else if ((*GHIDRA_CAST<int *>((iVar10 + 0x28)) != 3) ||
|
||||
(ownerPlayer = *GHIDRA_CAST<int *>((iVar10 + 0x410)), ownerPlayer == 0)) goto LAB_00a0382d;
|
||||
ownerPlayer = *GHIDRA_CAST<int *>((ownerPlayer + 0x140c));
|
||||
if ((ownerPlayer == 0) || (isMarked == '\0')) goto LAB_00a0382d;
|
||||
firePos.x = *GHIDRA_CAST<float *>((ownerPlayer + 0x33c));
|
||||
firePos.y = *GHIDRA_CAST<float *>((ownerPlayer + 0x340));
|
||||
}
|
||||
bVar1 = (firePos.x == g_vectorZero.x) << 6 | (NAN(firePos.x) || NAN(g_vectorZero.x)) << 2 | 2U |
|
||||
firePos.x < g_vectorZero.x;
|
||||
if (firePos.x == g_vectorZero.x) {
|
||||
bVar1 = (firePos.y == g_vectorZero.y) << 6 | (NAN(firePos.y) || NAN(g_vectorZero.y)) << 2 | 2U |
|
||||
firePos.y < g_vectorZero.y;
|
||||
}
|
||||
local_4c = (float)CONCAT31(CONCAT21((short)(GHIDRA_UINT(&firePos) >> 0x10),bVar1),isShooting);
|
||||
if (((iVar10 != 0) && (*GHIDRA_CAST<int *>((iVar10 + 0x28)) == 1)) && (0 < *GHIDRA_CAST<int *>((iVar10 + 0x18f8)))) {
|
||||
local_40 = 1.0;
|
||||
pfVar3 = &local_40;
|
||||
if (1.0 <= fVar8) {
|
||||
pfVar3 = &local_44;
|
||||
}
|
||||
fVar8 = *pfVar3;
|
||||
}
|
||||
if ((-1000.0 < fVar8) &&
|
||||
(local_4c = (float)GHIDRA_UINT(isShooting), fVar8 <= *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x14)))) {
|
||||
local_4c = 0.0;
|
||||
}
|
||||
aimDirection.x = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x20));
|
||||
aimDirection.y = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x24));
|
||||
bVar1 = Weapon::IsAxisAligned(player);
|
||||
if (bVar1 == 0) {
|
||||
fVar8 = sqrtf(aimDirection.y * aimDirection.y + aimDirection.x * aimDirection.x);
|
||||
iVar10 = extraout_ECX_00;
|
||||
if (0.0 < fVar8) {
|
||||
aimDirection.x = (1.0 / fVar8) * aimDirection.x;
|
||||
aimDirection.y = (float)(aimDirection.y * (1.0 / fVar8));
|
||||
}
|
||||
}
|
||||
else {
|
||||
puVar9 = GHIDRA_CAST<uint8_t *>(0x0);
|
||||
if (ABS(aimDirection.x) <= ABS(aimDirection.y)) {
|
||||
aimDirection.x = 0.0;
|
||||
if (0.0 <= aimDirection.y) {
|
||||
puVar9 = GHIDRA_CAST<uint8_t *>(0x3f800000);
|
||||
}
|
||||
else {
|
||||
puVar9 = &DAT_bf800000;
|
||||
}
|
||||
}
|
||||
else if (0.0 <= aimDirection.x) {
|
||||
aimDirection.x = 1.0;
|
||||
}
|
||||
else {
|
||||
aimDirection.x = (float)&DAT_bf800000;
|
||||
}
|
||||
iVar10 = extraout_ECX;
|
||||
aimDirection.y = (float)puVar9;
|
||||
}
|
||||
fVar8 = 1.0;
|
||||
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_4c)) + 0x0))) == '\0') {
|
||||
if (isInterpolated == 0) {
|
||||
this_00 = GHIDRA_CAST<ANM2 *>(&local_44);
|
||||
local_40 = 1.0;
|
||||
pAVar4 = GHIDRA_CAST<ANM2 *>(&local_40);
|
||||
if (1.0 <= local_44) {
|
||||
pAVar4 = this_00;
|
||||
}
|
||||
if (*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x14)) < *GHIDRA_CAST<float *>((pAVar4->_filename)._buf)) {
|
||||
LAB_00a03e32:
|
||||
pVVar5 = directionLocal;
|
||||
}
|
||||
else {
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0xc)) = local_44 / 3.0;
|
||||
if (ownerAsPlayer == GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
ownerPlayer = 7 - GHIDRA_INT((local_44 * -0.15));
|
||||
iVar10 = 0xb;
|
||||
if (0xb < ownerPlayer) {
|
||||
iVar10 = ownerPlayer;
|
||||
}
|
||||
Weapon::SetBlinkTime(player,iVar10,ownerPlayer);
|
||||
}
|
||||
Weapon::TriggerTearEffects(player,&aimDirection,1);
|
||||
Weapon::get_owner_position(player,&firePos);
|
||||
local_4c = aimDirection.x * 10.0;
|
||||
local_44 = aimDirection.y * 10.0;
|
||||
pVVar5 = Weapon::get_tear_movement_inheritance(player,&scratchVec,&aimDirection);
|
||||
local_4c = local_4c + pVVar5->x;
|
||||
local_44 = local_44 + pVVar5->y;
|
||||
iVar10 = unusedArg;
|
||||
Weapon::GetMultiShotParams(player,multiShotParams,unusedArg);
|
||||
local_40 = -local_44;
|
||||
if (isShootingBackwards != '\0') {
|
||||
local_58.x = -local_4c * local_70.y;
|
||||
local_58.y = local_40 * local_70.y;
|
||||
tear = fire_fetus_tear(player,&firePos,&local_58,0,*GHIDRA_CAST<Entity **>((GHIDRA_CAST<char *>(player) + 4)),1.0,iVar10);
|
||||
iVar10 = 0xa03a92;
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0xc))();
|
||||
}
|
||||
if (isShootingSideways != '\0') {
|
||||
local_58.x = local_4c * local_70.y;
|
||||
local_58.y = local_40 * local_70.y;
|
||||
tear = fire_fetus_tear(player,&firePos,&local_58,0,*GHIDRA_CAST<Entity **>((GHIDRA_CAST<char *>(player) + 4)),1.0,iVar10);
|
||||
iVar10 = 0xa03adf;
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0xc))();
|
||||
local_58.x = -local_4c * local_70.y;
|
||||
local_58.y = local_44 * local_70.y;
|
||||
tear = fire_fetus_tear(player,&firePos,&local_58,0,*GHIDRA_CAST<Entity **>((GHIDRA_CAST<char *>(player) + 4)),1.0,iVar10);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0xc))();
|
||||
}
|
||||
local_40 = (float)(numRandomDirTears & 0xffff);
|
||||
if (local_40 != 0.0) {
|
||||
do {
|
||||
source = *GHIDRA_CAST<Entity **>((GHIDRA_CAST<char *>(player) + 4));
|
||||
uVar2 = Random();
|
||||
spreadAngle = ((float)((double)GHIDRA_INT(uVar2) +
|
||||
__uint_to_double_fixup[-(GHIDRA_INT(uVar2) >> 0x1f)]) * 2.3283064e-10 *
|
||||
50.0 - 25.0) * 0.017453292;
|
||||
local_58.y = cos(spreadAngle);
|
||||
iVar10 = 0xa03b99;
|
||||
fVar8 = sin(spreadAngle);
|
||||
scratchVec.x = (local_4c * local_58.y - local_44 * fVar8) * local_70.y;
|
||||
scratchVec.y = (local_4c * fVar8 + local_44 * local_58.y) * local_70.y;
|
||||
tear = fire_fetus_tear(player,&firePos,&scratchVec,0,source,1.0,iVar10);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0xc))();
|
||||
local_40 = (float)(GHIDRA_INT(local_40) - 1);
|
||||
} while (local_40 != 0.0);
|
||||
local_40 = 0.0;
|
||||
}
|
||||
iVar10 = 0;
|
||||
if (0 < multiShotParams[0]) {
|
||||
local_58.x = local_4c;
|
||||
local_58.y = local_44;
|
||||
do {
|
||||
shotDirection.y = local_58.y;
|
||||
shotDirection.x = local_58.x;
|
||||
uVar2 = numRandomDirTears;
|
||||
Entity_Player::GetMultiShotPositionVelocity
|
||||
(&local_34,iVar10,9,shotDirection,local_70.y,multiShotParams[0],fStack_a0,
|
||||
fStack_9c,fStack_98,fStack_94,iStack_90,fStack_8c,(uint8_t)uStack_88,
|
||||
(short)numRandomDirTears);
|
||||
scratchVec.x = firePos.x + local_34;
|
||||
scratchVec.y = local_30 + firePos.y;
|
||||
tear = fire_fetus_tear(player,&scratchVec,&local_2c,0,*GHIDRA_CAST<Entity **>((GHIDRA_CAST<char *>(player) + 4)),1.0,
|
||||
uVar2);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0xc))();
|
||||
iVar10 = iVar10 + 1;
|
||||
} while (iVar10 < multiShotParams[0]);
|
||||
}
|
||||
pVVar5 = directionLocal;
|
||||
this_00 = *GHIDRA_CAST<ANM2 **>((GHIDRA_CAST<char *>(player) + 4));
|
||||
local_58.y = (float)this_00;
|
||||
if ((this_00 != GHIDRA_CAST<ANM2 *>(0x0)) && ((this_00->_animDefaultName)._size == 1)) {
|
||||
fVar8 = 2.10195e-44;
|
||||
local_2c.y = 2.10195e-44;
|
||||
local_14 = (void *)0x0;
|
||||
local_34 = (float)0x6f6f6853;
|
||||
local_2c.x = 1.82169e-44;
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(subAnimName)) + 0x0))) = 'S';
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(subAnimName)) + 0x1))) = 'u';
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(subAnimName)) + 0x2))) = 'b';
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(subAnimName)) + 0x3))) = 'A';
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(subAnimName)) + 0x4))) = 'n';
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(subAnimName)) + 0x5))) = 'i';
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(subAnimName)) + 0x6))) = 'm';
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(subAnimName)) + 0x7))) = '_';
|
||||
local_30 = (float)CONCAT22((*GHIDRA_CAST<uint16_t *>((GHIDRA_CAST<char *>(&(local_30)) + 0x2))),0x74);
|
||||
pvVar6 = (g_manager->_itemConfig)._collectibles._begin;
|
||||
if (GHIDRA_INT((g_manager->_itemConfig)._collectibles._end) - GHIDRA_INT(pvVar6) >> 2 < 0x2a7) {
|
||||
local_40 = 0.0;
|
||||
}
|
||||
else {
|
||||
local_40 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pvVar6) + 0xa98));
|
||||
}
|
||||
pfVar3 = this_00[0x10]._championColor._colorize + 2;
|
||||
iVar10 = 0xf;
|
||||
do {
|
||||
if ((-1 < GHIDRA_INT(*pfVar3)) && (*GHIDRA_CAST<char *>((pfVar3 + 3)) != '\0')) {
|
||||
this_00 = GHIDRA_CAST<ANM2 *>((GHIDRA_INT(*pfVar3) * 0x130 +
|
||||
GHIDRA_INT(((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(local_58.y) + 0x1140)))->_championColor)._tint[3])
|
||||
));
|
||||
if (*GHIDRA_CAST<float *>(this_00[1]._filename._buf) == local_40) {
|
||||
animName = GHIDRA_CAST<uint8_t *>(&subAnimName);
|
||||
if (0xf < GHIDRA_UINT(fVar8)) {
|
||||
animName = GHIDRA_CAST<uint8_t *>(subAnimName);
|
||||
}
|
||||
ANM2::PlayOverlay(this_00,animName,1);
|
||||
this_00 = extraout_ECX_01;
|
||||
fVar8 = local_2c.y;
|
||||
}
|
||||
}
|
||||
player = weapon;
|
||||
pfVar3 = pfVar3 + 4;
|
||||
iVar10 = iVar10 + -1;
|
||||
} while (iVar10 != 0);
|
||||
local_14 = (void *)0xffffffff;
|
||||
if (0xf < GHIDRA_UINT(fVar8)) {
|
||||
uVar2 = GHIDRA_INT(fVar8) + 1;
|
||||
pvVar6 = GHIDRA_CAST<uint8_t *>(subAnimName);
|
||||
if (0xfff < uVar2) {
|
||||
pvVar6 = *(void **)(GHIDRA_INT(GHIDRA_CAST<uint8_t *>(subAnimName)) + -4);
|
||||
uVar2 = GHIDRA_INT(fVar8) + 0x24;
|
||||
if (0x1f < GHIDRA_UINT((GHIDRA_INT(GHIDRA_CAST<uint8_t *>(subAnimName)) + (-4 - GHIDRA_INT(pvVar6))))) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
_invalid_parameter_noinfo_noreturn();
|
||||
}
|
||||
}
|
||||
operator_delete(pvVar6,uVar2);
|
||||
this_00 = extraout_ECX_02;
|
||||
}
|
||||
goto LAB_00a03e32;
|
||||
}
|
||||
Weapon::UpdateHeadChargeAnimation(player,0x2a6,2,directionLocal,-1.0);
|
||||
this_00 = extraout_ECX_04;
|
||||
}
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Weapon *>(player)))) + 0x14)))) = 0;
|
||||
bVar1 = Weapon::is_c_section_anim_finished(player,GHIDRA_INT(this_00));
|
||||
iVar10 = unusedCollectibleId;
|
||||
if (bVar1 != 0) {
|
||||
Weapon::update_c_section_charge_anim(player,unusedCollectibleId,0,pVVar5,0.0);
|
||||
iVar10 = extraout_ECX_03;
|
||||
}
|
||||
}
|
||||
else {
|
||||
pVVar5 = directionLocal;
|
||||
}
|
||||
bVar1 = Weapon::is_c_section_anim_finished(player,iVar10);
|
||||
if (bVar1 == 0) {
|
||||
ExceptionList = local_1c;
|
||||
return;
|
||||
}
|
||||
goto LAB_00a03f31;
|
||||
}
|
||||
local_40 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x14));
|
||||
if (local_44 <= local_40) {
|
||||
puVar9 = &DAT_bf800000;
|
||||
ownerPlayer = 1;
|
||||
LAB_00a03f02:
|
||||
pVVar5 = directionLocal;
|
||||
Weapon::update_c_section_charge_anim(player,iVar10,ownerPlayer,directionLocal,(float)puVar9);
|
||||
iVar10 = extraout_ECX_06;
|
||||
}
|
||||
else {
|
||||
if (isInterpolated == 0) {
|
||||
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(player) + 4)) != 0) {
|
||||
fVar8 = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(player) + 4)) + 0x39c));
|
||||
}
|
||||
local_40 = local_40 + fVar8;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x14)) = local_40;
|
||||
}
|
||||
bVar1 = Weapon::is_c_section_anim_finished(player,iVar10);
|
||||
iVar10 = extraout_ECX_05;
|
||||
pVVar5 = directionLocal;
|
||||
if (bVar1 != 0) {
|
||||
puVar9 = GHIDRA_CAST<uint8_t *>(((local_40 / local_44) * 18.0));
|
||||
ownerPlayer = 0;
|
||||
goto LAB_00a03f02;
|
||||
}
|
||||
}
|
||||
if (isInterpolated == 0) {
|
||||
Weapon::SetBlinkTime(player,1,iVar10);
|
||||
newAimDirection = Weapon::get_aim_direction(player,&local_70,pVVar5);
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x20)) = newAimDirection->x;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x24)) = newAimDirection->y;
|
||||
}
|
||||
LAB_00a03f31:
|
||||
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Weapon *>(player)))) + 0x3c)))) = pVVar5->x;
|
||||
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Weapon *>(player)))) + 0x40)))) = pVVar5->y;
|
||||
ExceptionList = local_1c;
|
||||
return;
|
||||
}
|
||||
|
||||
// 00a03f60
|
||||
float Weapon_Fetus::GetMaxCharge()
|
||||
{
|
||||
float maxCharge;
|
||||
|
||||
maxCharge = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x10)) * 3.0;
|
||||
if (maxCharge <= 0.001) {
|
||||
maxCharge = 0.001;
|
||||
}
|
||||
return maxCharge;
|
||||
}
|
||||
@@ -1,635 +0,0 @@
|
||||
#include "classes.h"
|
||||
|
||||
// 00a06a30
|
||||
void Weapon_Ludovico::Fire(Vector *direction, uint8_t isShooting, uint8_t isInterpolated)
|
||||
{
|
||||
void *orbitTear = this;
|
||||
uint32_t *puVar1;
|
||||
Entity *pEVar2;
|
||||
uint8_t bVar3;
|
||||
uint32_t uVar4;
|
||||
int iVar5;
|
||||
Vector *pVVar6;
|
||||
TearParams *hitParams;
|
||||
BitSet128 *pBVar7;
|
||||
Entity_Tear **ppEVar8;
|
||||
Entity_Tear *orbitTear;
|
||||
uint32_t rngResult;
|
||||
Entity_Player *extraout_ECX;
|
||||
Entity_Player *extraout_ECX_00;
|
||||
Entity_Player *extraout_ECX_01;
|
||||
Entity_Player *extraout_ECX_02;
|
||||
Entity_Player *pEVar9;
|
||||
Entity_Player *extraout_ECX_03;
|
||||
Entity_Player *extraout_ECX_04;
|
||||
int extraout_ECX_05;
|
||||
int *piVar10;
|
||||
Entity_Player *player;
|
||||
int *piVar11;
|
||||
Entity_Tear *extraout_EDX;
|
||||
uint64_t *allocatedBytesPtr;
|
||||
Entity_Tear *pEVar12;
|
||||
uint8_t *puVar13;
|
||||
Weapon *weapon;
|
||||
int *piVar14;
|
||||
float fVar15;
|
||||
float fVar16;
|
||||
short multiShotParams [18];
|
||||
BitSet128 notExplosiveFlags;
|
||||
BitSet128 tearFlagsTmp;
|
||||
uint8_t local_16c [8];
|
||||
int iStack_164;
|
||||
Entity_Tear *pEStack_160;
|
||||
uint8_t notExplosiveFlags2 [4];
|
||||
Entity_Tear *orbitTearsBegin;
|
||||
int *orbitTearsEnd;
|
||||
int *orbitTearsCap;
|
||||
void *childTearsBegin;
|
||||
int *childTearsEnd;
|
||||
int *local_144;
|
||||
int *childTearsCap;
|
||||
uint8_t local_13c [8];
|
||||
Vector VStack_134;
|
||||
Vector local_12c;
|
||||
uint8_t local_124 [8];
|
||||
Vector local_11c;
|
||||
Entity_Tear *luck;
|
||||
float shotSpeed;
|
||||
int *local_10c;
|
||||
Entity_Player *ownerPlayer;
|
||||
Weapon *self;
|
||||
Entity_Tear *local_100;
|
||||
Vector local_fc;
|
||||
Entity_Tear *local_f4;
|
||||
Entity_Tear *local_f0;
|
||||
int *local_ec;
|
||||
Entity_Tear *local_e8;
|
||||
TearParams tearParams;
|
||||
TearParams hitParamsBuf;
|
||||
uint32_t local_14;
|
||||
void *local_10;
|
||||
uint8_t *puStack_c;
|
||||
float local_8;
|
||||
uint64_t allocatedBytes;
|
||||
Game *game;
|
||||
|
||||
local_8 = -NAN;
|
||||
puStack_c = &LAB_00b10866;
|
||||
local_10 = ExceptionList;
|
||||
uVar4 = __security_cookie ^ GHIDRA_UINT(((&hitParamsBuf)[1]._tearColor._colorize + 3));
|
||||
ExceptionList = &local_10;
|
||||
local_f4 = GHIDRA_CAST<Entity_Tear *>(direction);
|
||||
self = orbitTear;
|
||||
local_14 = uVar4;
|
||||
Weapon::Fire(orbitTear,direction,isShooting,isInterpolated);
|
||||
pEVar9 = *GHIDRA_CAST<Entity_Player **>((GHIDRA_CAST<char *>(orbitTear) + 4));
|
||||
if (pEVar9 == GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
LAB_00a06a9a:
|
||||
ownerPlayer = GHIDRA_CAST<Entity_Player *>(0x0);
|
||||
if (pEVar9 != GHIDRA_CAST<Entity_Player *>(0x0)) goto LAB_00a06aa0;
|
||||
local_f0 = GHIDRA_CAST<Entity_Tear *>(g_vectorZero.x);
|
||||
local_ec = GHIDRA_CAST<int *>(g_vectorZero.y);
|
||||
ownerPlayer = GHIDRA_CAST<Entity_Player *>(0x0);
|
||||
LAB_00a06b2b:
|
||||
luck = GHIDRA_CAST<Entity_Tear *>(0x0);
|
||||
if (pEVar9 != GHIDRA_CAST<Entity_Player *>(0x0)) goto LAB_00a06b3a;
|
||||
LAB_00a06b6d:
|
||||
shotSpeed = 1.0;
|
||||
}
|
||||
else {
|
||||
if (pEVar9->_type == 1) {
|
||||
ownerPlayer = pEVar9;
|
||||
}
|
||||
else {
|
||||
if (pEVar9->_type != 3) goto LAB_00a06a9a;
|
||||
ownerPlayer = *GHIDRA_CAST<Entity_Player **>(&pEVar9->_isControlsEnabled);
|
||||
}
|
||||
LAB_00a06aa0:
|
||||
local_f0 = GHIDRA_CAST<Entity_Tear *>((pEVar9->_pos).x);
|
||||
local_ec = GHIDRA_CAST<int *>((pEVar9->_pos).y);
|
||||
if (pEVar9->_type == 1) {
|
||||
player = pEVar9;
|
||||
}
|
||||
else if ((pEVar9->_type != 3) ||
|
||||
(player = *GHIDRA_CAST<Entity_Player **>(&pEVar9->_isControlsEnabled), player == GHIDRA_CAST<Entity_Player *>(0x0)
|
||||
)) goto LAB_00a06b2b;
|
||||
luck = GHIDRA_CAST<Entity_Tear *>(player->_luck);
|
||||
LAB_00a06b3a:
|
||||
if ((pEVar9->_type != 1) &&
|
||||
((pEVar9->_type != 3 ||
|
||||
(pEVar9 = *GHIDRA_CAST<Entity_Player **>(&pEVar9->_isControlsEnabled), pEVar9 == GHIDRA_CAST<Entity_Player *>(0x0)))))
|
||||
goto LAB_00a06b6d;
|
||||
shotSpeed = pEVar9->_shotspeed;
|
||||
}
|
||||
player = ownerPlayer;
|
||||
local_12c.y = (float)(GHIDRA_INT(orbitTear) + 0x44);
|
||||
piVar14 = *GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(orbitTear) + 0x44));
|
||||
local_10c = piVar14;
|
||||
if ((piVar14 == GHIDRA_CAST<int *>(0x0)) || (piVar14[10] != 2)) {
|
||||
if (isInterpolated != 0) {
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
if (piVar14 != GHIDRA_CAST<int *>(0x0)) {
|
||||
(**(code **)(*piVar14 + 0x28))(uVar4);
|
||||
}
|
||||
TearParams::constructor(&tearParams);
|
||||
weapon = self;
|
||||
if (player != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
pEVar2 = *GHIDRA_CAST<Entity **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((self)) + 0x4))));
|
||||
if ((pEVar2 == GHIDRA_CAST<Entity *>(0x0)) || (pEVar2->_type != 1)) {
|
||||
iVar5 = 0;
|
||||
}
|
||||
else {
|
||||
iVar5 = GHIDRA_INT(*GHIDRA_CAST<char *>((pEVar2[5]._sprite._championColor._tint + 3)));
|
||||
}
|
||||
hitParams = Entity_Player::GetTearHitParams(player,&hitParamsBuf,8,1.0,iVar5,pEVar2);
|
||||
TearParams::operator_(&tearParams,hitParams);
|
||||
}
|
||||
uVar4 = Random();
|
||||
local_11c.x = (float)local_f0 + 0.0;
|
||||
local_11c.y = (float)local_ec + 5.0;
|
||||
orbitTear = (Entity_Tear *)
|
||||
Game::Spawn(g_game,2,tearParams._tearVariant,&local_11c,&g_vectorZero,
|
||||
*GHIDRA_CAST<Entity **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((weapon)) + 0x4)))),0,uVar4);
|
||||
if ((orbitTear == GHIDRA_CAST<Entity_Tear *>(0x0)) || (orbitTear->_type != 2)) {
|
||||
orbitTear = GHIDRA_CAST<Entity_Tear *>(0x0);
|
||||
}
|
||||
VStack_134.y = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((weapon)) + 0x4))));
|
||||
puVar1 = &orbitTear->_parent;
|
||||
if (*puVar1 != 0) {
|
||||
local_fc.y = (float)puVar1;
|
||||
msvc::multiset<unsigned_int>::erase(&local_fc.y);
|
||||
}
|
||||
*puVar1 = VStack_134.y;
|
||||
if (VStack_134.y != 0.0) {
|
||||
msvc::multiset<unsigned_int>::insert(puVar1);
|
||||
}
|
||||
orbitTear->_height = -40.0;
|
||||
fVar15 = Entity_Tear::get_height_offset_y(orbitTear,-40.0);
|
||||
game = g_game;
|
||||
(orbitTear->_posOffset).y = fVar15;
|
||||
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 8)) == 0x10) {
|
||||
(orbitTear->_posOffset).y = -18.0;
|
||||
}
|
||||
(**(code **)(*GHIDRA_CAST<int *>(orbitTear) + 0x40))(tearParams._tearDamage);
|
||||
pBVar7 = BitSet128::operator_or(&tearFlagsTmp,&tearParams._flags,&g_tearFlagLudovico);
|
||||
Entity_Tear::SetTearFlags(orbitTear,*pBVar7);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(orbitTear) + 0x3c))(&tearParams._tearColor,0xffffffff,0xff,0,1);
|
||||
fVar15 = sqrtf(tearParams._tearDamage);
|
||||
fVar15 = fVar15 * 0.15 + tearParams._tearDamage * 0.04 + 1.5;
|
||||
if (fVar15 <= 0.01) {
|
||||
fVar15 = 0.01;
|
||||
}
|
||||
orbitTear->_baseScale = fVar15;
|
||||
orbitTear->_fScale = fVar15;
|
||||
Entity_Tear::ResetSpriteScale(orbitTear);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(orbitTear) + 0xc))();
|
||||
fVar15 = local_12c.y;
|
||||
if (*GHIDRA_CAST<Entity_Tear **>(local_12c.y) == orbitTear) {
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
if (*GHIDRA_CAST<Entity_Tear **>(local_12c.y) != GHIDRA_CAST<Entity_Tear *>(0x0)) {
|
||||
local_fc.y = local_12c.y;
|
||||
msvc::multiset<unsigned_int>::erase(&local_fc.y);
|
||||
}
|
||||
*GHIDRA_CAST<Entity_Tear **>(fVar15) = orbitTear;
|
||||
msvc::multiset<unsigned_int>::insert(fVar15);
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
if (isInterpolated != 0) {
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
if (isShooting != 0) {
|
||||
local_fc.x = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_f4)) + 0x0))));
|
||||
local_100 = *GHIDRA_CAST<Entity_Tear **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_f4)) + 0x4))));
|
||||
local_fc.y = (float)local_100;
|
||||
local_e8 = GHIDRA_CAST<Entity_Tear *>(local_fc.x);
|
||||
if (1.0 < local_fc.x * local_fc.x + (float)local_100 * (float)local_100) {
|
||||
(GHIDRA_CAST<Vector *>((&local_fc)))->Vector::Normalize();
|
||||
local_e8 = GHIDRA_CAST<Entity_Tear *>(local_fc.x);
|
||||
pEVar9 = extraout_ECX;
|
||||
}
|
||||
local_100 = GHIDRA_CAST<Entity_Tear *>(local_fc.y);
|
||||
local_fc.x = (float)local_e8;
|
||||
if (player != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
bVar3 = Entity_Player::HasCollectible(player,0x166,0);
|
||||
pEVar9 = extraout_ECX_00;
|
||||
if (bVar3 != 0) {
|
||||
bVar3 = Entity_Player::HasCollectible(player,0xf5,0);
|
||||
pEVar9 = extraout_ECX_01;
|
||||
if (bVar3 == 0) {
|
||||
local_f0 = GHIDRA_CAST<Entity_Tear *>(cos(0.7853982));
|
||||
fVar15 = sin(0.7853982);
|
||||
fVar16 = (float)local_e8 * fVar15;
|
||||
local_e8 = GHIDRA_CAST<Entity_Tear *>(((float)local_e8 * (float)local_f0 - fVar15 * (float)local_100));
|
||||
local_100 = GHIDRA_CAST<Entity_Tear *>(((float)local_f0 * (float)local_100 + fVar16));
|
||||
pEVar9 = extraout_ECX_02;
|
||||
}
|
||||
}
|
||||
}
|
||||
fVar15 = (float)piVar14[0xdb];
|
||||
if (fVar15 != 0.0) {
|
||||
piVar14[0xd9] =
|
||||
GHIDRA_INT((((float)piVar14[0xe7] * (float)local_100 * shotSpeed * 3.0) / fVar15 +
|
||||
(float)piVar14[0xd9]));
|
||||
piVar14[0xd8] =
|
||||
GHIDRA_INT((((float)piVar14[0xe7] * (float)local_e8 * shotSpeed * 3.0) / fVar15 +
|
||||
(float)piVar14[0xd8]));
|
||||
}
|
||||
}
|
||||
weapon = self;
|
||||
if (*GHIDRA_CAST<Entity **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((self)) + 0x4)))) != GHIDRA_CAST<Entity *>(0x0)) {
|
||||
iVar5 = Entity::GetIntervalTicks(*GHIDRA_CAST<Entity **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((self)) + 0x4)))),*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((self)) + 0x10)))),0.0);
|
||||
pEVar9 = extraout_ECX_03;
|
||||
if (iVar5 != 0) {
|
||||
iVar5 = *GHIDRA_CAST<int *>((weapon + 1));
|
||||
if (iVar5 == 0) {
|
||||
LAB_00a06df7:
|
||||
pVVar6 = MusicManager::RandomVector(&local_fc);
|
||||
}
|
||||
else {
|
||||
VStack_134.x = *GHIDRA_CAST<float *>((iVar5 + 0x33c));
|
||||
VStack_134.y = *GHIDRA_CAST<float *>((iVar5 + 0x340));
|
||||
local_fc.x = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((weapon)) + 0x4)))) + 0x33c));
|
||||
local_fc.y = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((weapon)) + 0x4)))) + 0x340));
|
||||
bVar3 = (GHIDRA_CAST<Vector *>((&VStack_134)))->Vector::operator_ne(&local_fc);
|
||||
if (bVar3 == 0) goto LAB_00a06df7;
|
||||
local_fc.x = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>((weapon + 1)) + 0x33c)) -
|
||||
*GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((weapon)) + 0x4)))) + 0x33c));
|
||||
local_fc.y = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>((weapon + 1)) + 0x340)) -
|
||||
*GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((weapon)) + 0x4)))) + 0x340));
|
||||
pVVar6 = (GHIDRA_CAST<Vector *>((&local_fc)))->Vector::Normalized(&local_11c);
|
||||
}
|
||||
Weapon::TriggerTearEffects(weapon,pVVar6,1);
|
||||
pEVar9 = extraout_ECX_04;
|
||||
}
|
||||
}
|
||||
Weapon::GetMultiShotParams(weapon,multiShotParams,GHIDRA_INT(pEVar9));
|
||||
local_e8 = GHIDRA_CAST<Entity_Tear *>((multiShotParams[0] + -1));
|
||||
local_100 = (void *)0x0;
|
||||
childTearsBegin = (void *)0x0;
|
||||
if (GHIDRA_INT(local_e8) < 0) {
|
||||
local_e8 = GHIDRA_CAST<Entity_Tear *>(0x0);
|
||||
}
|
||||
piVar11 = GHIDRA_CAST<int *>(0x0);
|
||||
local_ec = GHIDRA_CAST<int *>(0x0);
|
||||
childTearsEnd = GHIDRA_CAST<int *>(0x0);
|
||||
childTearsCap = GHIDRA_CAST<int *>(0x0);
|
||||
local_144 = GHIDRA_CAST<int *>(0x0);
|
||||
local_8 = 0.0;
|
||||
local_f4 = GHIDRA_CAST<Entity_Tear *>(piVar14[0xf0]);
|
||||
if (local_f4 != GHIDRA_CAST<Entity_Tear *>(0x0)) {
|
||||
do {
|
||||
if (childTearsEnd == piVar11) {
|
||||
msvc::vector<unsigned_int>::_Emplace_reallocate(childTearsEnd,&local_f4);
|
||||
piVar11 = local_144;
|
||||
}
|
||||
else {
|
||||
*childTearsEnd = GHIDRA_INT(local_f4);
|
||||
childTearsEnd = childTearsEnd + 1;
|
||||
}
|
||||
local_f4 = GHIDRA_CAST<Entity_Tear *>(local_f4->_child);
|
||||
} while (local_f4 != GHIDRA_CAST<Entity_Tear *>(0x0));
|
||||
local_100 = childTearsBegin;
|
||||
childTearsCap = piVar11;
|
||||
local_ec = childTearsEnd;
|
||||
}
|
||||
piVar11 = local_ec;
|
||||
orbitTear = local_100;
|
||||
local_f4 = GHIDRA_CAST<Entity_Tear *>((GHIDRA_INT(local_ec) - GHIDRA_INT(local_100) >> 2));
|
||||
childTearsBegin = local_100;
|
||||
childTearsEnd = local_ec;
|
||||
if (local_f4 < local_e8) {
|
||||
TearParams::constructor(&tearParams);
|
||||
orbitTear = extraout_EDX;
|
||||
if (ownerPlayer != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
iVar5 = FUN_009f57f0();
|
||||
hitParams = Entity_Player::GetTearHitParams
|
||||
(ownerPlayer,&hitParamsBuf,8,1.0,iVar5,*GHIDRA_CAST<Entity **>((extraout_ECX_05 + 4))
|
||||
);
|
||||
TearParams::operator_(&tearParams,hitParams);
|
||||
orbitTear = local_e8;
|
||||
}
|
||||
local_e8 = GHIDRA_CAST<Entity_Tear *>((GHIDRA_INT(orbitTear) - GHIDRA_INT(local_f4)));
|
||||
if (0 < GHIDRA_INT(local_e8)) {
|
||||
local_ec = piVar14 + 0x3c;
|
||||
local_f4 = GHIDRA_CAST<Entity_Tear *>(0x3c23d70a);
|
||||
do {
|
||||
uVar4 = Random();
|
||||
local_fc.x = (float)piVar14[0xcf] + 0.0;
|
||||
local_fc.y = (float)piVar14[0xd0] + 5.0;
|
||||
orbitTear = (Entity_Tear *)
|
||||
Game::Spawn(g_game,2,tearParams._tearVariant,&local_fc,&g_vectorZero,
|
||||
*GHIDRA_CAST<Entity **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((self)) + 0x4)))),4,uVar4);
|
||||
if ((orbitTear == GHIDRA_CAST<Entity_Tear *>(0x0)) || (orbitTear->_type != 2)) {
|
||||
orbitTear = GHIDRA_CAST<Entity_Tear *>(0x0);
|
||||
}
|
||||
if (orbitTear->_parent != 0) {
|
||||
local_f0 = GHIDRA_CAST<Entity_Tear *>(&orbitTear->_parent);
|
||||
msvc::multiset<unsigned_int>::erase(&local_f0);
|
||||
}
|
||||
orbitTear->_parent = local_10c;
|
||||
msvc::multiset<unsigned_int>::insert(&orbitTear->_parent);
|
||||
orbitTear->_height = -40.0;
|
||||
fVar15 = Entity_Tear::get_height_offset_y(orbitTear,-40.0);
|
||||
game = g_game;
|
||||
(orbitTear->_posOffset).y = fVar15;
|
||||
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 8)) == 0x10) {
|
||||
(orbitTear->_posOffset).y = -18.0;
|
||||
}
|
||||
(**(code **)(*GHIDRA_CAST<int *>(orbitTear) + 0x40))(local_10c[0xe2]);
|
||||
pBVar7 = (GHIDRA_CAST<BitSet128 *>((&g_tearFlagExplosive)))->BitSet128::__bnot(GHIDRA_CAST<BitSet128 *>(notExplosiveFlags2));
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_16c)) + 0x0))) = local_10c[0x10a];
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_16c)) + 0x4))) = local_10c[0x10b];
|
||||
iStack_164 = local_10c[0x10c];
|
||||
pEStack_160 = GHIDRA_CAST<Entity_Tear *>(local_10c[0x10d]);
|
||||
pBVar7 = BitSet128::operator_and(GHIDRA_CAST<BitSet128 *>(local_124),GHIDRA_CAST<BitSet128 *>(local_16c),pBVar7);
|
||||
Entity_Tear::SetTearFlags(orbitTear,*pBVar7);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(orbitTear) + 0x3c))(local_ec,0xffffffff,0xff,0,1);
|
||||
local_f0 = GHIDRA_CAST<Entity_Tear *>(((float)local_10c[0x108] * 0.5));
|
||||
ppEVar8 = &local_f0;
|
||||
if ((float)local_10c[0x108] * 0.5 <= 0.01) {
|
||||
ppEVar8 = &local_f4;
|
||||
}
|
||||
pEVar12 = *ppEVar8;
|
||||
orbitTear->_baseScale = (float)pEVar12;
|
||||
orbitTear->_fScale = (float)pEVar12;
|
||||
Entity_Tear::ResetSpriteScale(orbitTear);
|
||||
orbitTear->_entityGridCollisionClass = 0;
|
||||
local_f0 = orbitTear;
|
||||
if (piVar11 == childTearsCap) {
|
||||
msvc::vector<unsigned_int>::_Emplace_reallocate(piVar11,&local_f0);
|
||||
childTearsCap = local_144;
|
||||
}
|
||||
else {
|
||||
*piVar11 = GHIDRA_INT(orbitTear);
|
||||
childTearsEnd = piVar11 + 1;
|
||||
}
|
||||
local_e8 = GHIDRA_CAST<Entity_Tear *>((GHIDRA_INT(local_e8) + -1));
|
||||
piVar11 = childTearsEnd;
|
||||
piVar14 = local_10c;
|
||||
} while (local_e8 != GHIDRA_CAST<Entity_Tear *>(0x0));
|
||||
local_100 = childTearsBegin;
|
||||
}
|
||||
LAB_00a07202:
|
||||
puVar13 = GHIDRA_CAST<uint8_t *>((GHIDRA_INT(piVar11) - GHIDRA_INT(local_100) >> 2));
|
||||
local_e8 = GHIDRA_CAST<Entity_Tear *>(0x0);
|
||||
orbitTear = local_100;
|
||||
piVar11 = piVar14;
|
||||
if (puVar13 != GHIDRA_CAST<uint8_t *>(0x0)) {
|
||||
do {
|
||||
local_ec = *GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(orbitTear) + GHIDRA_INT(local_e8) * 4));
|
||||
local_f0 = GHIDRA_CAST<Entity_Tear *>((piVar11 + 0xf0));
|
||||
if (*GHIDRA_CAST<int *>(local_f0) != 0) {
|
||||
local_12c.y = (float)local_f0;
|
||||
msvc::multiset<unsigned_int>::erase(&local_12c.y);
|
||||
orbitTear = local_100;
|
||||
}
|
||||
*GHIDRA_CAST<int **>(local_f0) = local_ec;
|
||||
if (local_ec != GHIDRA_CAST<int *>(0x0)) {
|
||||
msvc::multiset<unsigned_int>::insert(local_f0);
|
||||
orbitTear = local_100;
|
||||
}
|
||||
piVar11 = *GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(orbitTear) + GHIDRA_INT(local_e8) * 4));
|
||||
if (g_game->_frameCount == piVar11[0xca]) {
|
||||
(**(code **)(*piVar11 + 0xc))();
|
||||
piVar11 = *GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(local_100) + GHIDRA_INT(local_e8) * 4));
|
||||
orbitTear = local_100;
|
||||
}
|
||||
local_e8 = GHIDRA_CAST<Entity_Tear *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_e8)) + 0x1))));
|
||||
} while (local_e8 < puVar13);
|
||||
}
|
||||
}
|
||||
else if (local_e8 < local_f4) {
|
||||
pEVar12 = local_e8;
|
||||
do {
|
||||
local_f0 = luck;
|
||||
(**(code **)(**GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(orbitTear) + GHIDRA_INT(pEVar12) * 4)) + 0x28))();
|
||||
pEVar12 = GHIDRA_CAST<Entity_Tear *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((pEVar12)) + 0x1))));
|
||||
} while (pEVar12 < local_f4);
|
||||
luck = local_f0;
|
||||
piVar10 = GHIDRA_CAST<int *>((GHIDRA_INT(orbitTear) + GHIDRA_INT(local_e8) * 4));
|
||||
piVar11 = local_ec;
|
||||
piVar14 = local_10c;
|
||||
if (piVar10 != local_ec) {
|
||||
piVar11 = piVar10;
|
||||
childTearsEnd = piVar10;
|
||||
}
|
||||
goto LAB_00a07202;
|
||||
}
|
||||
pEVar9 = ownerPlayer;
|
||||
if (ownerPlayer != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
bVar3 = Entity_Player::HasCollectible(ownerPlayer,0xe5,0);
|
||||
if (bVar3 != 0) {
|
||||
piVar11 = GHIDRA_CAST<int *>(0x0);
|
||||
local_f0 = GHIDRA_CAST<Entity_Tear *>(0x0);
|
||||
orbitTearsBegin = GHIDRA_CAST<Entity_Tear *>(0x0);
|
||||
orbitTearsEnd = GHIDRA_CAST<int *>(0x0);
|
||||
local_ec = GHIDRA_CAST<int *>(0x0);
|
||||
orbitTearsCap = GHIDRA_CAST<int *>(0x0);
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
|
||||
EntityList::QuerySublist
|
||||
(GHIDRA_CAST<EntityList *>((GHIDRA_INT(g_game->_room) + 0x1218)),GHIDRA_CAST<EntityList_EL *>(local_16c),2,-1,5,0,0);
|
||||
local_8 = (float)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),2);
|
||||
local_e8 = pEStack_160;
|
||||
if (pEStack_160 == GHIDRA_CAST<Entity_Tear *>(0x0)) {
|
||||
orbitTear = GHIDRA_CAST<Entity_Tear *>(0x0);
|
||||
}
|
||||
else {
|
||||
piVar10 = GHIDRA_CAST<int *>(0x0);
|
||||
local_f4 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Entity_Tear *>(local_16c))) + 0x4)));
|
||||
do {
|
||||
if (*GHIDRA_CAST<int **>((*GHIDRA_CAST<int *>(local_f4) + 0x3bc)) == piVar14) {
|
||||
if (piVar11 == piVar10) {
|
||||
msvc::vector<unsigned_int>::_Emplace_reallocate(piVar11,local_f4);
|
||||
local_ec = orbitTearsCap;
|
||||
piVar10 = orbitTearsCap;
|
||||
piVar11 = orbitTearsEnd;
|
||||
}
|
||||
else {
|
||||
*piVar11 = *GHIDRA_CAST<int *>(local_f4);
|
||||
orbitTearsEnd = piVar11 + 1;
|
||||
piVar11 = orbitTearsEnd;
|
||||
}
|
||||
}
|
||||
local_f4 = GHIDRA_CAST<Entity_Tear *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_f4)) + 0x4))));
|
||||
local_e8 = GHIDRA_CAST<Entity_Tear *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_e8[-1])) + 0x847))));
|
||||
} while (local_e8 != GHIDRA_CAST<Entity_Tear *>(0x0));
|
||||
local_f0 = orbitTearsBegin;
|
||||
local_e8 = GHIDRA_CAST<Entity_Tear *>(0x0);
|
||||
orbitTear = orbitTearsBegin;
|
||||
}
|
||||
weapon = self;
|
||||
if (GHIDRA_INT(piVar11) - GHIDRA_INT(orbitTear) < 4) {
|
||||
pEVar2 = *GHIDRA_CAST<Entity **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((self)) + 0x4))));
|
||||
if ((pEVar2 == GHIDRA_CAST<Entity *>(0x0)) || (pEVar2->_type != 1)) {
|
||||
iVar5 = 0;
|
||||
}
|
||||
else {
|
||||
iVar5 = GHIDRA_INT(*GHIDRA_CAST<char *>((pEVar2[5]._sprite._championColor._tint + 3)));
|
||||
}
|
||||
Entity_Player::GetTearHitParams(ownerPlayer,&tearParams,8,1.0,iVar5,pEVar2);
|
||||
local_fc.y = 0.01;
|
||||
local_10c = GHIDRA_CAST<int *>(&DAT_00000005);
|
||||
do {
|
||||
uVar4 = Random();
|
||||
fVar15 = (float)((double)GHIDRA_INT(uVar4) + __uint_to_double_fixup[-(GHIDRA_INT(uVar4) >> 0x1f)]) *
|
||||
2.3283064e-10 * 3.14;
|
||||
local_12c.y = fVar15 + fVar15;
|
||||
VStack_134.y = sin(local_12c.y);
|
||||
uVar4 = Random();
|
||||
local_e8 = (Entity_Tear *)
|
||||
((float)((double)GHIDRA_INT(uVar4) + __uint_to_double_fixup[-(GHIDRA_INT(uVar4) >> 0x1f)]) *
|
||||
2.3283064e-10 * 20.0 + 5.0);
|
||||
fVar15 = cos(local_12c.y);
|
||||
local_f4 = GHIDRA_CAST<Entity_Tear *>((fVar15 * (float)local_e8));
|
||||
local_e8 = GHIDRA_CAST<Entity_Tear *>(((float)local_e8 * VStack_134.y));
|
||||
uVar4 = Random();
|
||||
local_11c.x = (float)local_f4 + (float)piVar14[0xcf];
|
||||
local_11c.y = (float)local_e8 + (float)piVar14[0xd0];
|
||||
orbitTear = (Entity_Tear *)
|
||||
Game::Spawn(g_game,2,tearParams._tearVariant,&local_11c,&g_vectorZero,
|
||||
*GHIDRA_CAST<Entity **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((weapon)) + 0x4)))),5,uVar4);
|
||||
if ((orbitTear == GHIDRA_CAST<Entity_Tear *>(0x0)) || (orbitTear->_type != 2)) {
|
||||
orbitTear = GHIDRA_CAST<Entity_Tear *>(0x0);
|
||||
}
|
||||
(orbitTear->_parentOffset).x = (float)local_f4;
|
||||
(orbitTear->_parentOffset).y = (float)local_e8;
|
||||
if (orbitTear->_parent != 0) {
|
||||
VStack_134.y = (float)&orbitTear->_parent;
|
||||
msvc::multiset<unsigned_int>::erase(&VStack_134.y);
|
||||
}
|
||||
orbitTear->_parent = piVar14;
|
||||
msvc::multiset<unsigned_int>::insert(&orbitTear->_parent);
|
||||
orbitTear->_height = -40.0;
|
||||
fVar15 = Entity_Tear::get_height_offset_y(orbitTear,-40.0);
|
||||
game = g_game;
|
||||
(orbitTear->_posOffset).y = fVar15;
|
||||
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 8)) == 0x10) {
|
||||
(orbitTear->_posOffset).y = -18.0;
|
||||
}
|
||||
(**(code **)(*GHIDRA_CAST<int *>(orbitTear) + 0x40))(piVar14[0xe2]);
|
||||
pBVar7 = (GHIDRA_CAST<BitSet128 *>((&g_tearFlagExplosive)))->BitSet128::__bnot(¬ExplosiveFlags);
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_13c)) + 0x0))) = piVar14[0x10a];
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_13c)) + 0x4))) = piVar14[0x10b];
|
||||
VStack_134.x = (float)piVar14[0x10c];
|
||||
VStack_134.y = (float)piVar14[0x10d];
|
||||
pBVar7 = BitSet128::operator_and(&tearFlagsTmp,GHIDRA_CAST<BitSet128 *>(local_13c),pBVar7);
|
||||
Entity_Tear::SetTearFlags(orbitTear,*pBVar7);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(orbitTear) + 0x3c))(piVar14 + 0x3c,0xffffffff,0xff,0,1);
|
||||
uVar4 = Random();
|
||||
VStack_134.y = ((float)((double)GHIDRA_INT(uVar4) + __uint_to_double_fixup[-(GHIDRA_INT(uVar4) >> 0x1f)]
|
||||
) * 2.3283064e-10 * 0.75 + 0.5) * (float)piVar14[0x108];
|
||||
pVVar6 = &VStack_134;
|
||||
if (VStack_134.y <= 0.01) {
|
||||
pVVar6 = &local_fc;
|
||||
}
|
||||
fVar15 = pVVar6->y;
|
||||
orbitTear->_baseScale = fVar15;
|
||||
orbitTear->_fScale = fVar15;
|
||||
Entity_Tear::ResetSpriteScale(orbitTear);
|
||||
local_10c = GHIDRA_CAST<int *>((GHIDRA_INT(local_10c) + -1));
|
||||
orbitTear->_entityGridCollisionClass = 0;
|
||||
weapon = self;
|
||||
} while (local_10c != GHIDRA_CAST<int *>(0x0));
|
||||
}
|
||||
if (local_16c[0] == '\0') {
|
||||
if (g_mainHeap == (void *)0x0) {
|
||||
allocatedBytesPtr = &g_allocatedBytesNoHeap;
|
||||
}
|
||||
else {
|
||||
allocatedBytesPtr = GHIDRA_CAST<uint64_t *>((GHIDRA_INT(g_mainHeap) + 0x30));
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Entity_Tear *>(local_16c))) + 0x4))) != GHIDRA_CAST<Entity_Tear *>(0x0)) {
|
||||
uVar4 = *GHIDRA_CAST<uint32_t *>(&(GHIDRA_CAST<Entity_Tear *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_16c)) + 0x4)))(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(( + -0x848))))) + 0x844))));
|
||||
allocatedBytes = *allocatedBytesPtr;
|
||||
*GHIDRA_CAST<uint32_t *>(allocatedBytesPtr) = GHIDRA_UINT(*allocatedBytesPtr) - uVar4;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(allocatedBytesPtr) + 4)) =
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(allocatedBytesPtr) + 4)) - GHIDRA_UINT((GHIDRA_UINT(allocatedBytes) < uVar4));
|
||||
free(&(GHIDRA_CAST<Entity_Tear *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_16c)) + 0x4)))(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(( + -0x848))))) + 0x844))));
|
||||
}
|
||||
}
|
||||
local_8 = (float)(GHIDRA_UINT(local_8) & 0xffffff00);
|
||||
if (local_f0 != GHIDRA_CAST<Entity_Tear *>(0x0)) {
|
||||
uVar4 = GHIDRA_INT(local_ec) - GHIDRA_INT(local_f0) & 0xfffffffc;
|
||||
orbitTear = local_f0;
|
||||
if (0xfff < uVar4) {
|
||||
orbitTear = *GHIDRA_CAST<Entity_Tear **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_f0[-1])) + 0x844))));
|
||||
uVar4 = uVar4 + 0x23;
|
||||
if (0x1f < GHIDRA_UINT((GHIDRA_INT(local_f0) + (-4 - GHIDRA_INT(orbitTear))))) goto LAB_00a07ae8;
|
||||
}
|
||||
operator_delete(orbitTear,uVar4);
|
||||
}
|
||||
pEVar9 = ownerPlayer;
|
||||
}
|
||||
iVar5 = Entity::GetIntervalTicks(GHIDRA_CAST<Entity *>(pEVar9),*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((self)) + 0x10)))),0.0);
|
||||
if (iVar5 != 0) {
|
||||
iVar5 = 0xa07781;
|
||||
bVar3 = Entity_Player::HasCollectible(pEVar9,0x57,0);
|
||||
if ((bVar3 != 0) &&
|
||||
((local_fc.y = (float)__ftoui3(), GHIDRA_CAST<Entity_Tear *>(local_fc.y) == GHIDRA_CAST<Entity_Tear *>(0x0) ||
|
||||
(uVar4 = Random(), uVar4 % GHIDRA_UINT(local_fc.y) == 0)))) {
|
||||
local_11c.x = shotSpeed * 10.0;
|
||||
VStack_134.x = (float)piVar14[0xcf];
|
||||
VStack_134.y = (float)piVar14[0xd0];
|
||||
local_11c.y = shotSpeed * 0.0;
|
||||
local_fc.y = local_11c.x;
|
||||
local_ec = GHIDRA_CAST<int *>(local_11c.y);
|
||||
Weapon::fire_tear(self,&VStack_134,&local_11c,6,iVar5,1.0,0.0);
|
||||
VStack_134.y = shotSpeed * -10.0;
|
||||
local_12c.x = (float)piVar14[0xcf];
|
||||
local_12c.y = (float)piVar14[0xd0];
|
||||
local_11c.y = (float)local_ec;
|
||||
local_11c.x = VStack_134.y;
|
||||
Weapon::fire_tear(self,&local_12c,&local_11c,6,iVar5,1.0,0.0);
|
||||
local_fc.x = (float)piVar14[0xcf];
|
||||
local_11c.x = (float)local_ec;
|
||||
local_11c.y = local_fc.y;
|
||||
local_fc.y = (float)piVar14[0xd0];
|
||||
Weapon::fire_tear(self,&local_fc,&local_11c,6,iVar5,1.0,0.0);
|
||||
local_fc.x = (float)piVar14[0xcf];
|
||||
local_fc.y = (float)piVar14[0xd0];
|
||||
local_11c.x = (float)local_ec;
|
||||
local_11c.y = VStack_134.y;
|
||||
Weapon::fire_tear(self,&local_fc,&local_11c,6,iVar5,1.0,0.0);
|
||||
}
|
||||
iVar5 = 0xa079a4;
|
||||
bVar3 = Entity_Player::HasCollectible(pEVar9,0x37,0);
|
||||
if ((bVar3 != 0) &&
|
||||
((uVar4 = __ftoui3(), uVar4 == 0 || (rngResult = Random(), rngResult % uVar4 == 0)))) {
|
||||
uVar4 = Random();
|
||||
shotSpeed = shotSpeed * 10.0;
|
||||
fVar15 = (float)((double)GHIDRA_INT(uVar4) + __uint_to_double_fixup[-(GHIDRA_INT(uVar4) >> 0x1f)]) *
|
||||
2.3283064e-10 * 3.14;
|
||||
local_fc.y = fVar15 + fVar15;
|
||||
fVar15 = cos(local_fc.y);
|
||||
local_11c.x = fVar15 * shotSpeed;
|
||||
fVar15 = sin(local_fc.y);
|
||||
VStack_134.x = (float)piVar14[0xcf];
|
||||
local_11c.y = fVar15 * shotSpeed;
|
||||
VStack_134.y = (float)piVar14[0xd0];
|
||||
Weapon::fire_tear(self,&VStack_134,&local_11c,6,iVar5,1.0,0.0);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (local_100 != (void *)0x0) {
|
||||
uVar4 = GHIDRA_INT(childTearsCap) - GHIDRA_INT(local_100) & 0xfffffffc;
|
||||
orbitTear = local_100;
|
||||
if (0xfff < uVar4) {
|
||||
orbitTear = *GHIDRA_CAST<Entity_Tear **>((GHIDRA_CAST<char *>(local_100) + -4));
|
||||
uVar4 = uVar4 + 0x23;
|
||||
if (0x1f < GHIDRA_UINT((GHIDRA_INT(local_100) + (-4 - GHIDRA_INT(orbitTear))))) {
|
||||
LAB_00a07ae8:
|
||||
/* WARNING: Subroutine does not return */
|
||||
_invalid_parameter_noinfo_noreturn();
|
||||
}
|
||||
}
|
||||
operator_delete(orbitTear,uVar4);
|
||||
}
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
@@ -1,525 +0,0 @@
|
||||
#include "classes.h"
|
||||
|
||||
// 00a08d40
|
||||
void Weapon_Rockets::Fire(Vector *aimDirection, uint8_t isShooting, uint8_t isInterpolated)
|
||||
{
|
||||
void *player = this;
|
||||
int iVar1;
|
||||
uint64_t qVar2;
|
||||
uint8_t bVar3;
|
||||
char extraout_AL;
|
||||
short rocketCount;
|
||||
uint32_t uVar4;
|
||||
Entity *mainTarget;
|
||||
Entity *extraTarget;
|
||||
int iVar5;
|
||||
BitSet128 *maskedFlags;
|
||||
Vector *pVVar6;
|
||||
Entity_Player *extraout_ECX;
|
||||
float *unusedArg;
|
||||
Entity_Player *pEVar7;
|
||||
float *extraout_ECX_00;
|
||||
float *extraout_ECX_01;
|
||||
float *extraout_ECX_02;
|
||||
float *extraout_ECX_03;
|
||||
int extraout_ECX_04;
|
||||
int extraout_ECX_05;
|
||||
uint64_t *allocCounter;
|
||||
Entity_Player *player;
|
||||
Weapon *pWVar8;
|
||||
Entity_Player *familiar;
|
||||
bool bVar9;
|
||||
float fVar10;
|
||||
float fVar11;
|
||||
float fVar12;
|
||||
undefined3 in_stack_00000009;
|
||||
undefined3 in_stack_0000000d;
|
||||
uint32_t uVar13;
|
||||
TypeDescriptor *pTVar14;
|
||||
TypeDescriptor *pTVar15;
|
||||
uint32_t uVar16;
|
||||
short multiShotParams [14];
|
||||
char local_6b;
|
||||
char local_6a;
|
||||
uint16_t local_68;
|
||||
BitSet128 tearFlags;
|
||||
BitSet128 local_54;
|
||||
Vector tmpPos;
|
||||
Vector local_3c;
|
||||
float angleSin;
|
||||
uint32_t *local_30;
|
||||
Weapon *weapon;
|
||||
Vector local_28;
|
||||
float local_20;
|
||||
float local_1c;
|
||||
float local_18;
|
||||
uint32_t local_14;
|
||||
void *local_10;
|
||||
uint8_t *puStack_c;
|
||||
uint32_t local_8;
|
||||
uint32_t *parentRef;
|
||||
int *targetRef;
|
||||
|
||||
local_8 = 0xffffffff;
|
||||
puStack_c = &LAB_00b1089d;
|
||||
local_10 = ExceptionList;
|
||||
ExceptionList = &local_10;
|
||||
local_1c = (float)_isInterpolated;
|
||||
local_30 = GHIDRA_CAST<uint32_t *>(_isShooting);
|
||||
weapon = player;
|
||||
Weapon::Fire(player,aimDirection,isShooting,isInterpolated);
|
||||
pEVar7 = *GHIDRA_CAST<Entity_Player **>((GHIDRA_CAST<char *>(player) + 4));
|
||||
_isShooting = pEVar7;
|
||||
if (pEVar7 == GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
LAB_00a08dcb:
|
||||
player = GHIDRA_CAST<Entity_Player *>(0x0);
|
||||
if ((pEVar7 != GHIDRA_CAST<Entity_Player *>(0x0)) && (pEVar7->_type == 1)) goto LAB_00a08dde;
|
||||
LAB_00a08da6:
|
||||
_isShooting = GHIDRA_CAST<Entity_Player *>(0x0);
|
||||
if ((pEVar7 == GHIDRA_CAST<Entity_Player *>(0x0)) || (pEVar7->_type != 3)) goto LAB_00a08dde;
|
||||
local_14 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(player) + 0x34)) >> 0x1f;
|
||||
_isShooting = GHIDRA_CAST<Entity_Player *>(0x0);
|
||||
familiar = pEVar7;
|
||||
LAB_00a08e26:
|
||||
pEVar7 = *GHIDRA_CAST<Entity_Player **>(&pEVar7->_isControlsEnabled);
|
||||
if (pEVar7 == GHIDRA_CAST<Entity_Player *>(0x0)) goto LAB_00a08e3a;
|
||||
local_28.y = (float)pEVar7->_markedTarget;
|
||||
}
|
||||
else {
|
||||
if (pEVar7->_type != 1) {
|
||||
if (pEVar7->_type != 3) goto LAB_00a08dcb;
|
||||
player = *GHIDRA_CAST<Entity_Player **>(&pEVar7->_isControlsEnabled);
|
||||
goto LAB_00a08da6;
|
||||
}
|
||||
player = pEVar7;
|
||||
LAB_00a08dde:
|
||||
local_14 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(player) + 0x34)) >> 0x1f;
|
||||
familiar = GHIDRA_CAST<Entity_Player *>(0x0);
|
||||
bVar3 = (uint8_t)(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(player) + 0x34)) >> 0x1f);
|
||||
_isInterpolated = GHIDRA_CAST<int *>(CONCAT13(bVar3,_isInterpolated));
|
||||
if (pEVar7 != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
local_14 = CONCAT31((int3)(GHIDRA_UINT(player) >> 8),bVar3);
|
||||
if (pEVar7->_type == 1) {
|
||||
local_14 = GHIDRA_UINT(bVar3);
|
||||
local_28.y = (float)pEVar7->_markedTarget;
|
||||
goto LAB_00a08e3c;
|
||||
}
|
||||
if (pEVar7->_type == 3) goto LAB_00a08e26;
|
||||
}
|
||||
LAB_00a08e3a:
|
||||
local_28.y = 0.0;
|
||||
}
|
||||
LAB_00a08e3c:
|
||||
if ((((char)local_14 == '\0') && (GHIDRA_CAST<Entity *>(local_28.y) != GHIDRA_CAST<Entity *>(0x0))) &&
|
||||
(player != GHIDRA_CAST<Entity_Player *>(0x0))) {
|
||||
bVar3 = Entity_Player::HasCollectible(player,0x18a,0);
|
||||
pEVar7 = extraout_ECX;
|
||||
if (bVar3 == 0) goto LAB_00a08e63;
|
||||
unusedArg = GHIDRA_CAST<float *>(CONCAT31((int3)(GHIDRA_UINT(extraout_ECX) >> 8),1));
|
||||
}
|
||||
else {
|
||||
LAB_00a08e63:
|
||||
unusedArg = GHIDRA_CAST<float *>((GHIDRA_UINT(pEVar7) & 0xffffff00));
|
||||
}
|
||||
iVar5 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(player) + 0x44));
|
||||
local_3c.y = (float)(GHIDRA_INT(player) + 0x44);
|
||||
_isInterpolated = GHIDRA_CAST<int *>(CONCAT13((char)unusedArg,_isInterpolated));
|
||||
if (iVar5 != 0) {
|
||||
if ((char)unusedArg == '\0') {
|
||||
pVVar6 = GHIDRA_CAST<Vector *>(aimDirection->x);
|
||||
local_18 = aimDirection->y;
|
||||
fVar11 = (float)pVVar6 * (float)pVVar6 + local_18 * local_18;
|
||||
aimDirection = pVVar6;
|
||||
if (1.0 < fVar11) {
|
||||
fVar11 = sqrtf(fVar11);
|
||||
unusedArg = extraout_ECX_00;
|
||||
if (0.0 < fVar11) {
|
||||
aimDirection = GHIDRA_CAST<Vector *>(((float)pVVar6 * (1.0 / fVar11)));
|
||||
local_18 = local_18 * (1.0 / fVar11);
|
||||
}
|
||||
}
|
||||
if (player == GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
LAB_00a08fb1:
|
||||
fVar11 = local_18;
|
||||
}
|
||||
else {
|
||||
bVar3 = Entity_Player::HasCollectible(player,0x166,0);
|
||||
unusedArg = extraout_ECX_01;
|
||||
if (bVar3 == 0) goto LAB_00a08fb1;
|
||||
bVar3 = Entity_Player::HasCollectible(player,0xf5,0);
|
||||
unusedArg = extraout_ECX_02;
|
||||
if (bVar3 != 0) goto LAB_00a08fb1;
|
||||
local_20 = cos(0.7853982);
|
||||
fVar11 = sin(0.7853982);
|
||||
fVar10 = (float)aimDirection * fVar11;
|
||||
aimDirection = GHIDRA_CAST<Vector *>(((float)aimDirection * local_20 - local_18 * fVar11));
|
||||
unusedArg = extraout_ECX_03;
|
||||
fVar11 = local_18 * local_20 + fVar10;
|
||||
}
|
||||
iVar5 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(player) + 0x44));
|
||||
*GHIDRA_CAST<float *>((iVar5 + 0x360)) =
|
||||
(float)aimDirection * 8.0 * *GHIDRA_CAST<float *>((iVar5 + 0x39c)) + *GHIDRA_CAST<float *>((iVar5 + 0x360));
|
||||
*GHIDRA_CAST<float *>((iVar5 + 0x364)) =
|
||||
fVar11 * 8.0 * *GHIDRA_CAST<float *>((iVar5 + 0x39c)) + *GHIDRA_CAST<float *>((iVar5 + 0x364));
|
||||
}
|
||||
else {
|
||||
unusedArg = GHIDRA_CAST<float *>((iVar5 + 0x33c));
|
||||
fVar11 = (GHIDRA_CAST<Vector *>((GHIDRA_INT(local_28.y) + 0x33c)))->x;
|
||||
fVar10 = (GHIDRA_CAST<Vector *>((GHIDRA_INT(local_28.y) + 0x33c)))->y;
|
||||
if (familiar != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
fVar10 = (fVar10 + (familiar->_pos).y) -
|
||||
*GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(&familiar->_isControlsEnabled) + 0x340));
|
||||
fVar11 = (fVar11 + (familiar->_pos).x) -
|
||||
*GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(&familiar->_isControlsEnabled) + 0x33c));
|
||||
}
|
||||
*unusedArg = fVar11;
|
||||
*GHIDRA_CAST<float *>((iVar5 + 0x340)) = fVar10;
|
||||
}
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1c)) + 0x0))) != '\0') {
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
Weapon::GetMultiShotParams(player,multiShotParams,GHIDRA_INT(unusedArg));
|
||||
iVar5 = extraout_ECX_04;
|
||||
if ((char)local_14 == '\0') {
|
||||
LAB_00a09039:
|
||||
rocketCount = multiShotParams[0];
|
||||
}
|
||||
else {
|
||||
bVar3 = Entity_Player::HasCollectible(player,0x164,0);
|
||||
iVar5 = extraout_ECX_05;
|
||||
if (bVar3 == 0) goto LAB_00a09039;
|
||||
rocketCount = multiShotParams[0] * 2;
|
||||
}
|
||||
if (((char)local_30 != '\0') || ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_stack_0000000d)) + 0x2))) != '\0')) {
|
||||
Weapon::SetBlinkTime(player,10,iVar5);
|
||||
if (((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(player) + 0x44)) == 0) ||
|
||||
((extraout_AL != '\0' && (*GHIDRA_CAST<char *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(player) + 0x44)) + 0x173)) != '\0')))) &&
|
||||
((*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0xc)) <= 0.0 && *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0xc)) != 0.0 ||
|
||||
((char)local_14 != '\0')))) {
|
||||
local_20 = (float)((rocketCount * 5 + 0x14) * 2);
|
||||
iVar5 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(player) + 4));
|
||||
if (iVar5 == 0) {
|
||||
tmpPos.x = g_vectorZero.x;
|
||||
tmpPos.y = g_vectorZero.y;
|
||||
}
|
||||
else {
|
||||
tmpPos.x = *GHIDRA_CAST<float *>((iVar5 + 0x33c));
|
||||
tmpPos.y = *GHIDRA_CAST<float *>((iVar5 + 0x340));
|
||||
}
|
||||
local_18 = g_vectorOne.x;
|
||||
local_1c = g_vectorOne.y;
|
||||
if (familiar != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
local_18 = g_vectorOne.x * 0.8;
|
||||
local_1c = g_vectorOne.y * 0.8;
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_stack_0000000d)) + 0x2))) != '\0') {
|
||||
tmpPos.x = (GHIDRA_CAST<Vector *>((GHIDRA_INT(local_28.y) + 0x33c)))->x;
|
||||
tmpPos.y = (GHIDRA_CAST<Vector *>((GHIDRA_INT(local_28.y) + 0x33c)))->y;
|
||||
}
|
||||
uVar4 = Random();
|
||||
mainTarget = Game::Spawn(g_game,1000,0x1e,&tmpPos,&g_vectorZero,*GHIDRA_CAST<Entity **>((GHIDRA_CAST<char *>(player) + 4)),0,
|
||||
uVar4);
|
||||
(mainTarget->_sprite)._scale.x = local_18;
|
||||
*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(mainTarget[1])) + 0x40)))) = GHIDRA_INT(rocketCount);
|
||||
*GHIDRA_CAST<float *>((mainTarget[1]._sprite._filename._buf + 4)) = local_20;
|
||||
*GHIDRA_CAST<float *>((mainTarget[1]._sprite._filename._buf + 8)) = local_20;
|
||||
(mainTarget->_sprite)._scale.y = local_1c;
|
||||
if (((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_stack_0000000d)) + 0x2))) != '\0') && (familiar == GHIDRA_CAST<Entity_Player *>(0x0))) {
|
||||
mainTarget->_visible = 0;
|
||||
}
|
||||
targetRef = GHIDRA_CAST<int *>((GHIDRA_INT(player) + 0x44));
|
||||
local_28.y = (float)mainTarget;
|
||||
if (*GHIDRA_CAST<Entity **>((GHIDRA_CAST<char *>(player) + 0x44)) != mainTarget) {
|
||||
if (*GHIDRA_CAST<Entity **>((GHIDRA_CAST<char *>(player) + 0x44)) != GHIDRA_CAST<Entity *>(0x0)) {
|
||||
_isInterpolated = targetRef;
|
||||
msvc::multiset<unsigned_int>::erase(&isInterpolated);
|
||||
}
|
||||
*targetRef = GHIDRA_INT(mainTarget);
|
||||
msvc::multiset<unsigned_int>::insert(targetRef);
|
||||
}
|
||||
if (local_6b != '\0') {
|
||||
uVar4 = Random();
|
||||
uVar16 = 0;
|
||||
pTVar15 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar14 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar13 = 0;
|
||||
extraTarget = Game::Spawn(g_game,1000,0x1e,&tmpPos,&g_vectorZero,*GHIDRA_CAST<Entity **>((GHIDRA_CAST<char *>(player) + 4))
|
||||
,0,uVar4);
|
||||
iVar5 = __RTDynamicCast(extraTarget,uVar13,pTVar14,pTVar15,uVar16);
|
||||
if (*GHIDRA_CAST<int *>((iVar5 + 0x3bc)) != 0) {
|
||||
_isInterpolated = GHIDRA_CAST<int *>((iVar5 + 0x3bc));
|
||||
msvc::multiset<unsigned_int>::erase(&isInterpolated);
|
||||
}
|
||||
*GHIDRA_CAST<uint32_t *>((iVar5 + 0x3bc)) = mainTarget;
|
||||
msvc::multiset<unsigned_int>::insert(GHIDRA_CAST<uint32_t *>((iVar5 + 0x3bc)));
|
||||
*GHIDRA_CAST<float *>((iVar5 + 0x45c)) = local_20;
|
||||
*GHIDRA_CAST<float *>((iVar5 + 0x460)) = local_20;
|
||||
*GHIDRA_CAST<float *>((iVar5 + 0xe4)) = local_18;
|
||||
*GHIDRA_CAST<float *>((iVar5 + 0xe8)) = local_1c;
|
||||
*GHIDRA_CAST<int *>((iVar5 + 0x450)) = GHIDRA_INT(rocketCount);
|
||||
*GHIDRA_CAST<uint32_t *>((iVar5 + 0x30)) = 1;
|
||||
}
|
||||
if (local_6a != '\0') {
|
||||
_isInterpolated = GHIDRA_CAST<int *>(0x2);
|
||||
do {
|
||||
uVar4 = Random();
|
||||
uVar16 = 0;
|
||||
pTVar15 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar14 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar13 = 0;
|
||||
mainTarget = Game::Spawn(g_game,1000,0x1e,&tmpPos,&g_vectorZero,
|
||||
*GHIDRA_CAST<Entity **>((GHIDRA_CAST<char *>(player) + 4)),0,uVar4);
|
||||
iVar5 = __RTDynamicCast(mainTarget,uVar13,pTVar14,pTVar15,uVar16);
|
||||
parentRef = GHIDRA_CAST<uint32_t *>((iVar5 + 0x3bc));
|
||||
if (*GHIDRA_CAST<int *>((iVar5 + 0x3bc)) != 0) {
|
||||
local_30 = parentRef;
|
||||
msvc::multiset<unsigned_int>::erase(&local_30);
|
||||
}
|
||||
mainTarget = GHIDRA_CAST<Entity *>(local_28.y);
|
||||
*parentRef = local_28.y;
|
||||
msvc::multiset<unsigned_int>::insert(parentRef);
|
||||
*GHIDRA_CAST<float *>((iVar5 + 0x45c)) = local_20;
|
||||
*GHIDRA_CAST<float *>((iVar5 + 0x460)) = local_20;
|
||||
*GHIDRA_CAST<int *>((iVar5 + 0x450)) = GHIDRA_INT(rocketCount);
|
||||
*GHIDRA_CAST<int **>((iVar5 + 0x30)) = _isInterpolated;
|
||||
_isInterpolated = GHIDRA_CAST<int *>((GHIDRA_INT(_isInterpolated) + 1));
|
||||
*GHIDRA_CAST<float *>((iVar5 + 0xe4)) = local_18;
|
||||
*GHIDRA_CAST<float *>((iVar5 + 0xe8)) = local_1c;
|
||||
} while (GHIDRA_INT(_isInterpolated) < 4);
|
||||
}
|
||||
_isInterpolated = GHIDRA_CAST<int *>(GHIDRA_UINT(local_68));
|
||||
while (_isInterpolated != GHIDRA_CAST<int *>(0x0)) {
|
||||
uVar4 = Random();
|
||||
uVar16 = 0;
|
||||
pTVar15 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar14 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar13 = 0;
|
||||
extraTarget = Game::Spawn(g_game,1000,0x1e,&tmpPos,&g_vectorZero,*GHIDRA_CAST<Entity **>((GHIDRA_CAST<char *>(player) + 4))
|
||||
,0,uVar4);
|
||||
local_28.y = (float)__RTDynamicCast(extraTarget,uVar13,pTVar14,pTVar15,uVar16);
|
||||
parentRef = GHIDRA_CAST<uint32_t *>((GHIDRA_INT(local_28.y) + 0x3bc));
|
||||
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(local_28.y) + 0x3bc)) != 0) {
|
||||
local_30 = parentRef;
|
||||
msvc::multiset<unsigned_int>::erase(&local_30);
|
||||
}
|
||||
*parentRef = mainTarget;
|
||||
msvc::multiset<unsigned_int>::insert(parentRef);
|
||||
fVar11 = local_28.y;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(local_28.y) + 0x45c)) = local_20;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(local_28.y) + 0x460)) = local_20;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(local_28.y) + 0xe4)) = local_18;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(local_28.y) + 0xe8)) = local_1c;
|
||||
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(local_28.y) + 0x450)) = GHIDRA_INT(rocketCount);
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(local_28.y) + 0x30)) = 4;
|
||||
uVar4 = Random();
|
||||
fVar10 = (float)((double)GHIDRA_INT(uVar4) + __uint_to_double_fixup[-(GHIDRA_INT(uVar4) >> 0x1f)]) *
|
||||
2.3283064e-10 * 3.14;
|
||||
local_30 = GHIDRA_CAST<uint32_t *>((fVar10 + fVar10));
|
||||
angleSin = sin((float)local_30);
|
||||
uVar4 = Random();
|
||||
local_28.y = (float)((double)GHIDRA_INT(uVar4) + __uint_to_double_fixup[-(GHIDRA_INT(uVar4) >> 0x1f)]) *
|
||||
2.3283064e-10 * 80.0 + 10.0;
|
||||
fVar10 = cos((float)local_30);
|
||||
_isInterpolated = GHIDRA_CAST<int *>((GHIDRA_INT(_isInterpolated) - 1));
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(fVar11) + 0x34c)) = fVar10 * local_28.y;
|
||||
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(fVar11) + 0x350)) = local_28.y * angleSin;
|
||||
}
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(player) + 0xc)) = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(player) + 0x10));
|
||||
_isInterpolated = GHIDRA_CAST<int *>(0x0);
|
||||
}
|
||||
}
|
||||
pWVar8 = GHIDRA_CAST<Weapon *>((GHIDRA_INT(player) + 0x44));
|
||||
if (*GHIDRA_CAST<int *>(pWVar8) == 0) goto LAB_00a09959;
|
||||
Weapon::get_owner_tear_flags(player,&tearFlags);
|
||||
maskedFlags = BitSet128::operator_and(&local_54,&tearFlags,&g_tearFlagAttractor);
|
||||
if ((GHIDRA_INT(maskedFlags->_l) != 0 || *GHIDRA_CAST<int *>((GHIDRA_INT(&maskedFlags->_l) + 4)) != 0) ||
|
||||
(GHIDRA_INT(maskedFlags->_h) != 0 || *GHIDRA_CAST<int *>((GHIDRA_INT(&maskedFlags->_h) + 4)) != 0)) {
|
||||
tmpPos.x = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(pWVar8) + 0x33c));
|
||||
tmpPos.y = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(pWVar8) + 0x340));
|
||||
Game::AttractEntities(g_game,&tmpPos,(void *)0x0,(void *)0x0,10.0,250.0);
|
||||
EntityList::QuerySublist
|
||||
(GHIDRA_CAST<EntityList *>((GHIDRA_INT(g_game->_room) + 0x1218)),GHIDRA_CAST<EntityList_EL *>(&local_54),1000,0x1e,-1,0
|
||||
,0);
|
||||
iVar5 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_54._l)) + 0x4)));
|
||||
uVar4 = 0;
|
||||
local_8 = 0;
|
||||
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_54._h)) + 0x4))) != 0) {
|
||||
do {
|
||||
iVar1 = *GHIDRA_CAST<int *>((iVar5 + uVar4 * 4));
|
||||
if (*GHIDRA_CAST<int *>((iVar1 + 0x3bc)) == *GHIDRA_CAST<int *>(pWVar8)) {
|
||||
tmpPos.x = *GHIDRA_CAST<float *>((iVar1 + 0x33c));
|
||||
tmpPos.y = *GHIDRA_CAST<float *>((iVar1 + 0x340));
|
||||
Game::AttractEntities(g_game,&tmpPos,(void *)0x0,(void *)0x0,10.0,250.0);
|
||||
}
|
||||
uVar4 = uVar4 + 1;
|
||||
} while (uVar4 < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_54._h)) + 0x4))));
|
||||
player = weapon;
|
||||
}
|
||||
local_8 = 0xffffffff;
|
||||
if ((char)local_54._l == '\0') {
|
||||
if (g_mainHeap == (void *)0x0) {
|
||||
allocCounter = &g_allocatedBytesNoHeap;
|
||||
}
|
||||
else {
|
||||
allocCounter = GHIDRA_CAST<uint64_t *>((GHIDRA_INT(g_mainHeap) + 0x30));
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_54._l)) + 0x4))) != 0) {
|
||||
uVar4 = *GHIDRA_CAST<uint32_t *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_54._l)) + 0x4))) + -4));
|
||||
qVar2 = *allocCounter;
|
||||
*GHIDRA_CAST<uint32_t *>(allocCounter) = GHIDRA_UINT(*allocCounter) - uVar4;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(allocCounter) + 4)) =
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(allocCounter) + 4)) - GHIDRA_UINT((GHIDRA_UINT(qVar2) < uVar4));
|
||||
free(GHIDRA_CAST<uint32_t *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_54._l)) + 0x4))) + -4)));
|
||||
}
|
||||
local_8 = 0xffffffff;
|
||||
}
|
||||
}
|
||||
maskedFlags = BitSet128::operator_and(&local_54,&tearFlags,&g_tearFlagHoming);
|
||||
if ((GHIDRA_INT(maskedFlags->_l) != 0 || *GHIDRA_CAST<int *>((GHIDRA_INT(&maskedFlags->_l) + 4)) != 0) ||
|
||||
(GHIDRA_INT(maskedFlags->_h) != 0 || *GHIDRA_CAST<int *>((GHIDRA_INT(&maskedFlags->_h) + 4)) != 0)) {
|
||||
tmpPos.x = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(pWVar8) + 0x33c));
|
||||
tmpPos.y = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(pWVar8) + 0x340));
|
||||
EntityList::QueryRadius
|
||||
(GHIDRA_CAST<EntityList *>((GHIDRA_INT(g_game->_room) + 0x1218)),GHIDRA_CAST<EntityList_EL *>(&local_54),&tmpPos,200.0,
|
||||
8);
|
||||
fVar11 = 999999.0;
|
||||
uVar4 = 0;
|
||||
aimDirection = GHIDRA_CAST<Vector *>(0x0);
|
||||
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_54._h)) + 0x4))) != 0) {
|
||||
_isInterpolated = *GHIDRA_CAST<int **>(&g_game->_deathmatchManager);
|
||||
do {
|
||||
pVVar6 = *GHIDRA_CAST<Vector **>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_54._l)) + 0x4))) + uVar4 * 4));
|
||||
if ((GHIDRA_INT(_isInterpolated) < 2) || (pVVar6[5].x != 1.4013e-45)) {
|
||||
fVar10 = pVVar6[5].x;
|
||||
if ((GHIDRA_INT(fVar10) - 10U < 0x3de) &&
|
||||
(((fVar10 != 4.62428e-44 && (fVar10 != 2.38221e-44)) && (fVar10 != 4.09179e-43)))) {
|
||||
if (fVar10 == 1.24015e-42) {
|
||||
bVar9 = pVVar6[5].y == 1.4013e-44;
|
||||
}
|
||||
else {
|
||||
if ((fVar10 == 1.34525e-42) || (fVar10 == 1.35225e-42)) goto LAB_00a0972d;
|
||||
bVar9 = fVar10 == 3.43318e-43;
|
||||
}
|
||||
if (!bVar9) goto LAB_00a096e7;
|
||||
}
|
||||
LAB_00a0972d:
|
||||
iVar5 = *GHIDRA_CAST<int *>(local_3c.y);
|
||||
}
|
||||
else {
|
||||
LAB_00a096e7:
|
||||
if (*GHIDRA_CAST<char *>((GHIDRA_INT(&pVVar6[0x2e].x) + 3)) != '\0') goto LAB_00a0972d;
|
||||
iVar5 = *GHIDRA_CAST<int *>(local_3c.y);
|
||||
fVar12 = *GHIDRA_CAST<float *>((iVar5 + 0x340)) - pVVar6[0x68].x;
|
||||
fVar10 = *GHIDRA_CAST<float *>((iVar5 + 0x33c)) - pVVar6[0x67].y;
|
||||
fVar10 = fVar12 * fVar12 + fVar10 * fVar10;
|
||||
if (fVar10 < fVar11) {
|
||||
fVar11 = fVar10;
|
||||
aimDirection = pVVar6;
|
||||
}
|
||||
}
|
||||
uVar4 = uVar4 + 1;
|
||||
} while (uVar4 < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_54._h)) + 0x4))));
|
||||
player = weapon;
|
||||
if (aimDirection != GHIDRA_CAST<Vector *>(0x0)) {
|
||||
_isInterpolated = GHIDRA_CAST<int *>((aimDirection[0x68].x - *GHIDRA_CAST<float *>((iVar5 + 0x340))));
|
||||
fVar10 = aimDirection[0x67].y - *GHIDRA_CAST<float *>((iVar5 + 0x33c));
|
||||
fVar11 = sqrtf((float)_isInterpolated * (float)_isInterpolated + fVar10 * fVar10);
|
||||
targetRef = _isInterpolated;
|
||||
if (0.0 < fVar11) {
|
||||
fVar10 = fVar10 * (1.0 / fVar11);
|
||||
targetRef = GHIDRA_CAST<int *>(((float)_isInterpolated * (1.0 / fVar11)));
|
||||
}
|
||||
fVar11 = *GHIDRA_CAST<float *>((iVar5 + 0x36c));
|
||||
if (fVar11 != 0.0) {
|
||||
*GHIDRA_CAST<float *>((iVar5 + 0x364)) =
|
||||
(*GHIDRA_CAST<float *>((iVar5 + 0x39c)) * (float)targetRef) / fVar11 + *GHIDRA_CAST<float *>((iVar5 + 0x364));
|
||||
*GHIDRA_CAST<float *>((iVar5 + 0x360)) =
|
||||
(*GHIDRA_CAST<float *>((iVar5 + 0x39c)) * fVar10) / fVar11 + *GHIDRA_CAST<float *>((iVar5 + 0x360));
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((char)local_54._l == '\0') {
|
||||
if (g_mainHeap == (void *)0x0) {
|
||||
allocCounter = &g_allocatedBytesNoHeap;
|
||||
}
|
||||
else {
|
||||
allocCounter = GHIDRA_CAST<uint64_t *>((GHIDRA_INT(g_mainHeap) + 0x30));
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_54._l)) + 0x4))) != 0) {
|
||||
uVar4 = *GHIDRA_CAST<uint32_t *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_54._l)) + 0x4))) + -4));
|
||||
qVar2 = *allocCounter;
|
||||
*GHIDRA_CAST<uint32_t *>(allocCounter) = GHIDRA_UINT(*allocCounter) - uVar4;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(allocCounter) + 4)) =
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(allocCounter) + 4)) - GHIDRA_UINT((GHIDRA_UINT(qVar2) < uVar4));
|
||||
free(GHIDRA_CAST<uint32_t *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_54._l)) + 0x4))) + -4)));
|
||||
}
|
||||
local_8 = 0xffffffff;
|
||||
}
|
||||
pWVar8 = GHIDRA_CAST<Weapon *>((GHIDRA_INT(player) + 0x44));
|
||||
}
|
||||
if ((*GHIDRA_CAST<Entity **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Weapon *>(player)))) + 0x4)))) == GHIDRA_CAST<Entity *>(0x0)) ||
|
||||
(iVar5 = Entity::GetIntervalTicks
|
||||
(*GHIDRA_CAST<Entity **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Weapon *>(player)))) + 0x4)))),
|
||||
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Weapon *>(player)))) + 0x10)))),0.0), iVar5 == 0))
|
||||
goto LAB_00a09959;
|
||||
iVar5 = *GHIDRA_CAST<int *>(pWVar8);
|
||||
if (iVar5 == 0) {
|
||||
LAB_00a098fd:
|
||||
uVar4 = Random();
|
||||
fVar11 = (float)((double)GHIDRA_INT(uVar4) + __uint_to_double_fixup[-(GHIDRA_INT(uVar4) >> 0x1f)]) *
|
||||
2.3283064e-10 * 3.14;
|
||||
fVar11 = fVar11 + fVar11;
|
||||
local_28.x = cos(fVar11);
|
||||
local_28.y = sin(fVar11);
|
||||
pVVar6 = &local_28;
|
||||
}
|
||||
else {
|
||||
fVar11 = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Weapon *>(player)))) + 0x4)))) + 0x33c));
|
||||
fVar10 = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Weapon *>(player)))) + 0x4)))) + 0x340));
|
||||
if ((*GHIDRA_CAST<float *>((iVar5 + 0x33c)) == fVar11) && (*GHIDRA_CAST<float *>((iVar5 + 0x340)) == fVar10))
|
||||
goto LAB_00a098fd;
|
||||
_isInterpolated = GHIDRA_CAST<int *>((*GHIDRA_CAST<float *>((iVar5 + 0x340)) - fVar10));
|
||||
fVar11 = *GHIDRA_CAST<float *>((iVar5 + 0x33c)) - fVar11;
|
||||
local_3c.x = fVar11;
|
||||
local_3c.y = (float)_isInterpolated;
|
||||
fVar10 = sqrtf((float)_isInterpolated * (float)_isInterpolated + fVar11 * fVar11);
|
||||
if (0.0 < fVar10) {
|
||||
local_3c.y = (1.0 / fVar10) * (float)_isInterpolated;
|
||||
local_3c.x = (1.0 / fVar10) * fVar11;
|
||||
}
|
||||
pVVar6 = &local_3c;
|
||||
}
|
||||
Weapon::TriggerTearEffects(player,pVVar6,1);
|
||||
LAB_00a09959:
|
||||
if ((*GHIDRA_CAST<int *>(pWVar8) != 0) && (*GHIDRA_CAST<char *>((*GHIDRA_CAST<int *>(pWVar8) + 0x173)) != '\0')) {
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Weapon *>(player)))) + 0xc)))) = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Weapon *>(player)))) + 0x10))));
|
||||
if (((char)local_14 != '\0') && (_isShooting != GHIDRA_CAST<Entity_Player *>(0x0))) {
|
||||
Entity_Player::ResetItemState(_isShooting);
|
||||
}
|
||||
}
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
|
||||
// 00a099a0
|
||||
int Weapon_Rockets::GetMarkedTargetVariant()
|
||||
{
|
||||
void *player = this;
|
||||
uint8_t isHasMarked;
|
||||
Entity_Player *player;
|
||||
|
||||
player = *GHIDRA_CAST<Entity_Player **>((GHIDRA_CAST<char *>(player) + 4));
|
||||
if (player != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
if (player->_type == 1) goto LAB_00a099be;
|
||||
if (player->_type == 3) {
|
||||
player = *GHIDRA_CAST<Entity_Player **>(&player->_isControlsEnabled);
|
||||
goto LAB_00a099be;
|
||||
}
|
||||
}
|
||||
player = GHIDRA_CAST<Entity_Player *>(0x0);
|
||||
LAB_00a099be:
|
||||
isHasMarked = Entity_Player::HasCollectible(player,0x18a,0);
|
||||
return -GHIDRA_UINT((isHasMarked != 0)) & 0x1e;
|
||||
}
|
||||
Reference in new issue
Block a user