21 KiB
21 KiB
| 1 | # address | Qualified::Name | note (evidence; who/what found it) |
|---|---|---|---|
| 2 | # Forced renames: they beat ZHL, vtable, Lua and NpcTable names. Anything in NpcAI:: is typed __fastcall(Entity_NPC *npc), | ||
| 3 | # so put helpers that take other arguments in NpcHelper:: instead. Apply: scripts/apply_db.py (dump, instant), build.sh --db (Ghidra). | ||
| 4 | # | ||
| 5 | # NPC dispatch targets that carry wrong ZHL/ICF names (npc_ai.tsv column 4 shows the wrong name) | ||
| 6 | 005111b0 | NpcAI::ENTITY_HOST | type 27 + 859 Floating Host; sig matched as Entity::TeleportToRandomPosition |
| 7 | 0045fc00 | NpcAI::ENTITY_GATE | type 263; was MinimapConfig::Render |
| 8 | 00547b60 | NpcAI::ENTITY_LEPER | type 310; was GameOver::Show |
| 9 | 005492c0 | NpcAI::ENTITY_MR_MINE | type 311; was Entity_Familiar::Render (ICF); strs DigIn/DigOut/Shoot |
| 10 | 004f8df0 | NpcAI::ENTITY_BOMB_GRIMACE | type 809; was GridEntity_Fire::Update |
| 11 | 004dd7f0 | NpcAI::ENTITY_GASBAG | type 856; was FXLayers::AddPoopFx; strs Attack/Shoot/Sound |
| 12 | 00561a20 | NpcAI::ENTITY_FARTIGAN | type 874 (gas dwarf); was Entity_NPC::moms_heart_mausoleum_death |
| 13 | 00503af0 | NpcAI::ENTITY_DUST | type 882; was PlayerHUD::RenderActiveItem |
| 14 | # | ||
| 15 | # Bosses: real AI bodies the dispatcher reaches through a stub, or wrong names | ||
| 16 | 0057bec0 | NpcAI::ENTITY_ROTGUT_face | Rotgut face phase; was REPENTOGON Backdrop::pre_render_walls; strs Munch/FallIn/Attack1Begin |
| 17 | 004b1210 | NpcHelper::gideon_choose_attack | Gideon; was Console::SubmitInput; strs Attack2Start/Attack4Start |
| 18 | 0058aed0 | NpcAI::ENTITY_SINGE_body | Singe main AI; strs Blast/SuperFart/JumpBlast |
| 19 | 0058d8b0 | NpcAI::ENTITY_SINGE_ball | npc_ai.tsv names this ENTITY_SINGE but it is the ball (singe_ball.png, RollHori) |
| 20 | 0059a2d0 | NpcAI::ENTITY_TUFF_TWINS | strs ButtAttack/GutsAttack/AttackHead* |
| 21 | 005af800 | NpcAI::ENTITY_WORMWOOD_main | strs HeadBackStunned/HeadFrontStunned |
| 22 | 0049d130 | NpcAI::ENTITY_CHIMERA_body | strs RunHoriHeadless/Brimstone*/Leap |
| 23 | 005864b0 | NpcAI::ENTITY_SCOURGE_main | strs BroccoliAttack/Slice*/TrapDown |
| 24 | 0058ec70 | NpcAI::ENTITY_SIREN_main | strs Attack1*/Attack2B*/Recall/Revive |
| 25 | 0058e680 | NpcHelper::siren_pick | Siren helper (salvage siren_pick.c); verify |
| 26 | 004cca10 | NpcAI::ENTITY_MEGA_SATAN_hand | strs Smash/SmashHand1/Hiding/Reveal |
| 27 | 004830e0 | NpcHelper::the_lamb_pattern | The Lamb bullet pattern (salvage fb_lambpat.c) |
| 28 | 005ab4d0 | NpcAI::ENTITY_VISAGE_mask | strs ChargeBegin%s/LeftEye/RightEye/Break |
| 29 | # | ||
| 30 | # Enemy variant handlers reached from a shared type routine | ||
| 31 | 004da590 | NpcAI::ENTITY_ROTTEN_GAPER | 10.3, from NpcAI::ENTITY_GAPER |
| 32 | 004ddf00 | NpcAI::ENTITY_MAMA_FLY | 61.4, from NpcAI::ENTITY_FLY |
| 33 | 0054bca0 | NpcAI::ENTITY_BULB | 61.5/61.6, from NpcAI::ENTITY_FLY; strs Dash/FlyLit |
| 34 | 0054fa80 | NpcAI::ENTITY_WRINKLY_BABY | 38.3, from NpcAI::ENTITY_BABY |
| 35 | 005581b0 | NpcHelper::willo_orbit | Willo helper |
| 36 | 005583d0 | NpcHelper::willo_attack | Willo helper; str Shoot |
| 37 | 00557f70 | NpcHelper::willo_slot | Willo helper |
| 38 | 004b7e30 | NpcHelper::hornfel_charge | Hornfel; strs Charge*/Idle* |
| 39 | 004b8ca0 | NpcHelper::hornfel_attack | Hornfel; strs Attack1Double/Attack1Left... |
| 40 | # | ||
| 41 | # Player / familiar | ||
| 42 | 0064e0c0 | Entity_Familiar::ai_blood_clot | strs Float/Walk*; salvage c4_clot.c (Tainted Eve) |
| 43 | 007d5170 | Entity_Player::bag_of_crafting_collect | salvage c5_bag.c; str Collect |
| 44 | 007d6670 | Entity_Player::poop_spell_roll | salvage spellq.c (Tainted ???); weighted pick; verify |
| 45 | 0073e0a0 | Level::generate_greed | salvage greedgen.c; verify |
| 46 | # | ||
| 47 | # Imported from src/anm2 and src/rooms decompile labels (hand-verified there) | ||
| 48 | 0082c720 | RoomConfig::GetRoomByStageTypeAndVariant | src/rooms labels; ZHL said ResetRoomWeights |
| 49 | 004a5cf0 | Sprite::GetDefaultAnimationName | src/anm2 labels (lua_GetDefaultAnimationName); ZHL said Config::GetNullItems |
| 50 | 00407170 | Color::Color | src/anm2 decompile labels (Color::Color()) |
| 51 | 004071f0 | Color::operator_assign | src/anm2 decompile labels (Color::operator=(const&)) |
| 52 | 00407690 | ANM2::ANM2 | src/anm2 decompile labels (ANM2::ANM2(copy)) |
| 53 | 00407a60 | LayerState::~LayerState | src/anm2 decompile labels (LayerState::~LayerState) |
| 54 | 00407e90 | ANM2::operator_assign | src/anm2 decompile labels (ANM2::operator=(ANM2)) |
| 55 | 00407f10 | ANM2::Reset | src/anm2 decompile labels (ANM2::Reset) |
| 56 | 00408170 | ANM2::~ANM2 | src/anm2 decompile labels (ANM2::~ANM2) |
| 57 | 004081d0 | LayerState::LayerState | src/anm2 decompile labels (LayerState::LayerState) |
| 58 | 00408310 | LayerState::Init | src/anm2 decompile labels (LayerState::Init(LayerInfo*)) |
| 59 | 00408590 | LayerState::GetTexture | src/anm2 decompile labels (LayerState::GetTexture) |
| 60 | 00408640 | LayerState::SetTexture | src/anm2 decompile labels (LayerState::SetTexture) |
| 61 | 004086e0 | AnimationState::AnimationState | src/anm2 decompile labels (AnimationState::AnimationState(owner,copy)) |
| 62 | 004087a0 | AnimationState::~AnimationState | src/anm2 decompile labels (AnimationState::~AnimationState) |
| 63 | 00408830 | AnimationState::SetAnimationData | src/anm2 decompile labels (AnimationState::SetAnimationData) |
| 64 | 00408970 | AnimationState::ChangeAnimationKeepFrame | src/anm2 decompile labels (AnimationState::ChangeAnimationKeepFrame) |
| 65 | 00408b90 | AnimationState::AdvanceLayerPosition | src/anm2 decompile labels (AnimationState::AdvanceLayerPosition(idx,xmm2 frame)) |
| 66 | 00408c10 | AnimationState::AdvanceNullLayerPosition | src/anm2 decompile labels (AnimationState::AdvanceNullLayerPosition(idx,xmm2 frame)) |
| 67 | 00408c90 | AnimationState::FireTriggersAtCurrentFrame | src/anm2 decompile labels (AnimationState::FireTriggersAtCurrentFrame) |
| 68 | 00408e00 | AnimationState::SetFrameFloat | src/anm2 decompile labels (AnimationState::SetFrameFloat(xmm1)) |
| 69 | 00408ef0 | AnimationState::SetLayerFrame | src/anm2 decompile labels (AnimationState::SetLayerFrame(layer,frame)) |
| 70 | 00408f70 | AnimationState::GetLayerFrameIdx | src/anm2 decompile labels (AnimationState::GetLayerFrameIdx(layer)) |
| 71 | 00408fc0 | AnimationState::SetNullLayerFrame | src/anm2 decompile labels (AnimationState::SetNullLayerFrame(null,frame)) |
| 72 | 00409030 | AnimationState::Update | src/anm2 decompile labels (AnimationState::Update) |
| 73 | 0040a1b0 | AnimationState::Rewind | src/anm2 decompile labels (AnimationState::Rewind) |
| 74 | 0040a220 | AnimationState::GetLayerFrame | src/anm2 decompile labels (AnimationState::GetLayerFrame(layer)->AnimationFrame*) |
| 75 | 0040a5d0 | ANM2::SetAnimation | src/anm2 decompile labels (ANM2::SetAnimation(cstr,reset)) |
| 76 | 0040add0 | AnimationState::IsEventTriggered | src/anm2 decompile labels (AnimationState::IsEventTriggered(name)) |
| 77 | 0040ae70 | AnimationState::WasEventTriggered | src/anm2 decompile labels (AnimationState::WasEventTriggered(name)) |
| 78 | 0040bea0 | ANM2::Reload | src/anm2 decompile labels (ANM2::Reload) |
| 79 | 0040c000 | ANM2::LoadGraphics | src/anm2 decompile labels (ANM2::LoadGraphics) |
| 80 | 0040c1e0 | LayerAnimation::LayerAnimation | src/anm2 decompile labels (LayerAnimation::LayerAnimation()) |
| 81 | 0040ca70 | memcmp_eq | src/anm2 decompile labels (memcmp_eq(ecx,edx,n)) |
| 82 | 0040cae0 | str_eq | src/anm2 decompile labels (str_eq(ecx,edx=len,s2,len2)) |
| 83 | 0040d240 | AnmCache::~AnmCache | src/anm2 decompile labels (AnmCache::~AnmCache) |
| 84 | 0040d4c0 | AnmCache::LogMemoryUsage | src/anm2 decompile labels (AnmCache::LogMemoryUsage) |
| 85 | 0040d850 | AnmFileData::Clear | src/anm2 decompile labels (AnmFileData::Clear) |
| 86 | 0040db90 | AnmCache::Load | src/anm2 decompile labels (AnmCache::Load(path,ANM2*)) |
| 87 | 0040e110 | AnmCache::AddRef | src/anm2 decompile labels (AnmCache::AddRef) |
| 88 | 0040e2b0 | AnmCache::RemoveRef | src/anm2 decompile labels (AnmCache::RemoveRef) |
| 89 | 0040e470 | AnmCache::Clear | src/anm2 decompile labels (AnmCache::Clear) |
| 90 | 0040e520 | TextureCache::Add | src/anm2 decompile labels (TextureCache::Add) |
| 91 | 0040e5d0 | TextureCache::Has | src/anm2 decompile labels (TextureCache::Has) |
| 92 | 0040e740 | TextureCache::Release | src/anm2 decompile labels (TextureCache::Release) |
| 93 | 0040e910 | TextureCache::Purge | src/anm2 decompile labels (TextureCache::Purge) |
| 94 | 0040ea10 | TextureCache::Preload | src/anm2 decompile labels (TextureCache::Preload) |
| 95 | 0040ea50 | AnmCache::Preload | src/anm2 decompile labels (AnmCache::Preload) |
| 96 | 0040ed50 | AnmCache::ParseFile | src/anm2 decompile labels (AnmCache::ParseFile(path,key)) |
| 97 | 00413bf0 | xml_node::first_attribute | src/anm2 decompile labels (xml_node::first_attribute(name)) |
| 98 | 00413c70 | xml_node::first_node | src/anm2 decompile labels (xml_node::first_node(name)) |
| 99 | 00414e00 | InterpolateNullFrames | src/anm2 decompile labels (InterpolateNullFrames(ecx=buf,edx=&count,scratch)) |
| 100 | 00415170 | InterpolateLayerFrames | src/anm2 decompile labels (InterpolateLayerFrames(ecx=buf,edx=&count,scratch)) |
| 101 | 00440e50 | set_PlaybackSpeed | src/anm2 decompile labels (set_PlaybackSpeed) |
| 102 | 00499d20 | fmodf | src/anm2 decompile labels (fmodf) |
| 103 | 0067f670 | ResolveRelativePath | src/anm2 decompile labels (ResolveRelativePath(out,anmPath,edx=rel)) |
| 104 | 006828b0 | LerpAngleDeg | src/anm2 decompile labels (LerpAngleDeg(xmm0 a,xmm1 b,xmm2 t)) |
| 105 | 006832e0 | Color::Lerp | src/anm2 decompile labels (Color::Lerp(out,a,b,t)) |
| 106 | 00a112c0 | KAGE_LogMessage | src/anm2 decompile labels (KAGE_LogMessage(level,fmt,...)) |
| 107 | 00a16060 | FileSystem::GetMountPrefixes | src/anm2 decompile labels (FileSystem::GetMountPrefixes) |
| 108 | 00a17180 | FileSystem::ResolvePath | src/anm2 decompile labels (FileSystem::ResolvePath) |
| 109 | 00a68490 | GetTimeNs | src/anm2 decompile labels (GetTimeNs) |
| 110 | 004288a0 | std::set<int>::find_node | src/rooms decompile labels (std::set<int>::find_node) |
| 111 | 006da750 | std::bitset<8>::any | src/rooms decompile labels (std::bitset<8>::any) |
| 112 | 006ef3e0 | RoomConfigRoom::dtor | src/rooms decompile labels (RoomConfigRoom::dtor (name only)) |
| 113 | 006f3c00 | Game::ReloadStagesXmlOnLuaReset | src/rooms decompile labels (Game::ReloadStagesXmlOnLuaReset) |
| 114 | 006f4740 | Game::LoadConfigXmls | src/rooms decompile labels (Game::LoadConfigXmls(stages,curses,...)) |
| 115 | 006f9400 | Seeds::GetForcedCurses | src/rooms decompile labels (Seeds::GetForcedCurses?) |
| 116 | 006f95a0 | Seeds::GetPreventedCurses | src/rooms decompile labels (Seeds::GetPreventedCurses?) |
| 117 | 00744940 | Level::Init | src/rooms decompile labels (Level::Init) |
| 118 | 00751650 | Level::GenerateHome | src/rooms decompile labels (Level::GenerateHome?) |
| 119 | 00752c30 | std::bitset<8>::to_string | src/rooms decompile labels (std::bitset<8>::to_string(out)) |
| 120 | 007e9080 | RNG::RandomFloat | src/rooms decompile labels (RNG::RandomFloat) |
| 121 | 007e90f0 | RNG::Next | src/rooms decompile labels (RNG::Next) |
| 122 | 007ec100 | Room::TransformEntry | src/rooms decompile labels (Room::TransformEntry?(out,gridIdx,seed)) |
| 123 | 007ed310 | Room::SpawnEntry | src/rooms decompile labels (Room::SpawnEntry(gridIdx,Entry*,seed,b,b) ret14) |
| 124 | 007f2800 | Room::Init | src/rooms decompile labels (Room::Init(cfgRoom,desc)) |
| 125 | 00828b60 | RoomConfigMode::ctor | src/rooms decompile labels (RoomConfigMode::ctor) |
| 126 | 00828c00 | RoomConfigMode::Clear | src/rooms decompile labels (RoomConfigMode::Clear) |
| 127 | 00828f00 | RoomConfigStage::ctor | src/rooms decompile labels (RoomConfigStage::ctor) |
| 128 | 00829260 | RoomConfigMode::dtor | src/rooms decompile labels (RoomConfigMode::dtor?) |
| 129 | 00829290 | VariantRanges::Insert | src/rooms decompile labels (VariantRanges::Insert(variant)->bool newlyInserted) |
| 130 | 00829500 | RoomConfigStage::GetDisplayName | src/rooms decompile labels (RoomConfigStage::GetDisplayName) |
| 131 | 00829710 | RoomConfig::LoadRoomFromXmlFile | src/rooms decompile labels (RoomConfig::LoadRoomFromXmlFile(ecx=Room*,edx=path) (--load-room)) |
| 132 | 00829af0 | RoomConfigRoom::ParseXml | src/rooms decompile labels (RoomConfigRoom::ParseXml(node)) |
| 133 | 0082a9c0 | RoomConfig::ResetStageWeights | src/rooms decompile labels (RoomConfig::ResetStageWeights(stageId,mode) ret8) |
| 134 | 0082aa40 | RoomConfig::LoadStageBinary | src/rooms decompile labels (RoomConfig::LoadStageBinary(stageId,mode) thiscall ret8) |
| 135 | 0082aea0 | RoomConfig::ReadRoom | src/rooms decompile labels (RoomConfig::ReadRoom(ecx=mode,edx=idx,stack:stageId,File*)) |
| 136 | 0082b2f0 | RoomConfig::LoadStagesXml | src/rooms decompile labels (RoomConfig::LoadStagesXml(path) thiscall ret4) |
| 137 | 0082bd60 | RoomConfigStage::operator_assign | src/rooms decompile labels (RoomConfigStage::operator=(const&)) |
| 138 | 0082bf00 | RoomConfig::LoadCursesXml | src/rooms decompile labels (RoomConfig::LoadCursesXml(path,flag)?) |
| 139 | 0082cdd0 | RoomConfig::GetRandomRoomWithFallbackStage | src/rooms decompile labels (RoomConfig::GetRandomRoomWithFallbackStage? ret34) |
| 140 | 0082ce40 | RoomConfig::CollectRooms | src/rooms decompile labels (RoomConfig::CollectRooms(out vector<Room*>,stageId,type,shape,minVar,maxVar,minDiff,maxDiff,doors*,subtype,mode) ret2c) |
| 141 | 0082d000 | RoomConfig::GetStageDisplayName | src/rooms decompile labels (RoomConfig::GetStageDisplayName(out,stageId,?)) |
| 142 | 0082d100 | RoomConfig::GetStageIdByName | src/rooms decompile labels (RoomConfig::GetStageIdByName?(std::string*)) |
| 143 | 0082d320 | RoomConfig::ClearGeneratedRooms | src/rooms decompile labels (RoomConfig::ClearGeneratedRooms) |
| 144 | 0082d4a0 | RoomConfig::MergeRoomsIntoGenerated | src/rooms decompile labels (RoomConfig::MergeRoomsIntoGenerated?(roomA,roomB,shape)) |
| 145 | 0082d880 | RoomConfig::GetRandomSplitRoom | src/rooms decompile labels (RoomConfig::GetRandomSplitRoom (Curse of Giant) ret30) |
| 146 | 008f8040 | ModManager::LoadModRooms | src/rooms decompile labels (ModManager::LoadModRooms(stageId,mode) ret8) |
| 147 | 008f86c0 | ModManager::LoadModCurses | src/rooms decompile labels (ModManager::LoadModCurses) |
| 148 | 008f99c0 | Mod::GetContentPath | src/rooms decompile labels (Mod::GetContentPath(out,name) (content-dlc3/ then content/)) |
| 149 | 00a0f4e0 | operator_new_tracked | src/rooms decompile labels (operator_new_tracked) |
| 150 | 00a178d0 | FileSystem::Open | src/rooms decompile labels (FileSystem::Open) |
| 151 | 0x0059e730 | NpcHelper::UltraGreed_Smash | shockwave+blast+door lasers (ultra greed port) |
| 152 | 0x0059e630 | NpcHelper::UltraDoor_Opposite | door slot -> opposite door entity |
| 153 | 0x0059e2a0 | NpcHelper::UltraGreed_Heal | hp += mhp*.00125*n, i2+=n |
| 154 | 0x00801ee0 | Room::UpdateGreedWave | greed timer, stage 7 boss trigger |
| 155 | 0x006bf120 | NpcHelper::ChampionDrop | champion death drop, off in greed |
| 156 | # | ||
| 157 | # Lua registration beats a short REPENTOGON sig that matched the wrong function (game's own Lua table names these) | ||
| 158 | 007fb250 | Room::SpawnClearAward | Lua Room:SpawnClearAward; ZHL sig said Entity_Bomb::Update; called from Room::TriggerClear |
| 159 | 006ae0a0 | Entity::AddFear | Lua Entity:AddFear; ZHL sig said Entity_Familiar::RemoveFromPlayer |
| 160 | 006d0ca0 | Entity_NPC::QueryNPCsSpawnerType | Lua EntityNPC:QueryNPCsSpawnerType; ZHL sig said PersistentGameData::SaveLocally |
| 161 | 00780560 | Entity_Player::GetBombFlags | Lua EntityPlayer:GetBombFlags; ZHL sig said GridEntity_Pit::Update |
| 162 | 007ab380 | Entity_Player::AnimateCollectible | Lua EntityPlayer:AnimateCollectible; ZHL sig said HasCollectible (real one 007706e0) |
| 163 | 007bf1a0 | Entity_Player::FireDelayedBrimstone | Lua EntityPlayer:FireDelayedBrimstone; ZHL sig said Entity_NPC::MakeBloodSplash |
| 164 | 007e6300 | PathFinder::MoveRandomly | Lua PathFinder:MoveRandomly; ZHL said NPCAI_Pathfinder::MoveRandomlyBoss |
| 165 | # | ||
| 166 | # Most-called unnamed helpers of gameplay code (subagent review of body + strings, 2026-10-24); check the evidence before relying on one | ||
| 167 | 006eef60 | Random | global MT19937 genrand (624-word state, tempering) with rand() fallback; ZHL `unsigned int Random()`; result used as spawn seed |
| 168 | 004cf210 | std::multiset<unsigned_int>::erase | tree equal_range by key, counts and erases nodes; used to unregister EntityPtr slot before reassigning |
| 169 | 00435c70 | EntityRef::EntityRef | zeroes type/variant/spawner, pos/vel = zero vector, flags/entity 0; EntityRef layout 0x28 |
| 170 | 00431310 | EntityRef::constructor | fills EntityRef from Entity* (type 0x28, variant 0x2c, pos 0x33c, vel 0x360, charm/friendly flags); ZHL EntityRef::constructor(Entity*) |
| 171 | 0040b090 | ANM2::WasEventTriggered | null-checks anim state at +0x34 then AnimationState::WasEventTriggered |
| 172 | 006d7cf0 | spawn_blood_explosion | Game::Spawn(1000,2=EFFECT BLOOD_EXPLOSION, pos, vel, spawner) then vtable+0x3c SetColor(color,-1,255,false,true) and sets scale |
| 173 | 004073d0 | Sprite::SetColor | copies 0x2c-byte Color into ANM2+0xa8 (Lua Sprite.Color getter returns this+0xa8) |
| 174 | 0067f260 | vector_to_direction | returns LEFT 0/UP 1/RIGHT 2/DOWN 3 from dominant axis sign of a Vector |
| 175 | 0040a6e0 | ANM2::SetFrame | SetAnimation(name) then AnimationState::SetFrameFloat and clears playing flag; ZHL ANM2::SetFrame(anim, frame) |
| 176 | 00417170 | BitSet128::operator_and | ANDs four dwords of two 128-bit masks (entity flag sets) |
| 177 | 004e45c0 | std::set<int>::insert | find_node, allocates 0x14 node with key, returns pair<iterator,bool> |
| 178 | 007ca7c0 | Entity_Player::ClampGoldenHearts | caps golden hearts (0x194c) to heart containers count; called from AddMaxHearts/AddHearts/AddSoulHearts/RemoveBlackHeart |
| 179 | 009be6b0 | PlayerManager::FirstTrinketOwner | iterates player list, GetTrinketMultiplier, prefers player with Mom's Box (439); REPENTOGON PlayerManager::FirstTrinketOwner shape |
| 180 | 00930220 | TemporaryEffects::AddEffect | merges/pushes 16-byte {ItemConfig*,count,cooldown} entry, ORs item cache flags (+0x54), AddCostume on owning player |
| 181 | 006a9360 | Entity::SetSpawnerEntity | EntityPtr assign to this+0x3c8 (Lua Entity.SpawnerEntity getter reads 0x3c8): unregister old, register new |
| 182 | 006a9140 | Entity::GetPlayerAncestor | walks Parent (0x3bc) then SpawnerEntity (0x3c8) chains with cycle-guard set, returns first entity of type 1 (player) |
| 183 | 00431450 | Entity::AddVelocity | velocity(0x360) += vec * (ignoreFriction ? 1 : friction 0x39c); Lua Entity:AddVelocity |
| 184 | 006a9ba0 | Entity::GetCollisionCapsule | Capsule::constructor(pos+offset, size 0x374, ...); ZHL Entity::GetCollisionCapsule(Vector*) |
| 185 | 0041cb60 | std::min<int> | returns pointer to smaller of two ints |
| 186 | 00956110 | input_is_action_pressed | game-level wrapper: Lua hook, then each controller vfunc or Input::IsActionPressed callback FUN_00a20940 |
| 187 | 009561e0 | input_is_action_triggered | same wrapper as input_is_action_pressed but with IsActionTriggered callback FUN_00a209e0 |
| 188 | 0042f430 | std::vector<Vector>::_Emplace_reallocate | growth 1.5x of 8-byte elements, length_error at 0x1fffffff |
| 189 | 0040d0e0 | Color::Color | sets tint r,g,b,a, zero colorize, offsets r,g,b (11-float Color layout) |
| 190 | 00435a50 | sqrtf | float sqrt wrapper calling libm_sse2_sqrt_precise for negatives |
| 191 | 00aef15c | operator_delete | thunk to free-like; called with (ptr,size) from string _Tidy |
| 192 | 00499d60 | atan2f | float wrapper around _CIatan2 |
| 193 | 0040d040 | std::string::_Tidy_deallocate | frees heap buffer if cap>15, resets size 0 cap 15 |
| 194 | 00aef29d | _Init_thread_header | MSVC thread-safe static init guard with critical section/_Init_thread_wait |
| 195 | 0040c340 | std::string::string_from_cstr | strlen then assign; init cap 15 |
| 196 | 00417840 | std::vector::size | (end-begin)>>2, ICF-folded |
| 197 | 00a10450 | Vector::operator_add_assign | adds x,y in place |
| 198 | 00a10540 | Vector::operator_mul_assign | scales x,y by float in place |
| 199 | 00435c20 | BitSet128::operator_or | ors four dwords of two 128-bit sets |
| 200 | 00682740 | normalize_angle_degrees | fmod by 360 when |a|>360, compare against 180 |
| 201 | 006d0300 | Entity_NPC::SetBossColorIdx | writes _bosscoloridx, reloads graphics and reapplies animation |
| 202 | 0041d520 | sin | tail-calls libm_sse2_sin_precise |
| 203 | 00956780 | seed_fart_sound_override | if SEED_FART_SOUNDS(7) active, replaces sound id with 37 (fart) or 1/20 301 |
| 204 | 00a10630 | Vector::operator_ne | compares two float pairs, returns 1 if different |
| 205 | 00a0f4c0 | operator_new | allocator used by std::_Allocate; calls FUN_00a648b0(size,0) |
| 206 | 0067f170 | Vector::ToCardinal | snaps vector to dominant axis unit vector (+-1,0)/(0,+-1) |
| 207 | 0040cf00 | std::_Allocate | MSVC allocate with >=0x1000 32-byte alignment path (+0x23, store raw ptr at -4) |
| 208 | 0040cf50 | std::string::string | copy ctor: SSO copy if <16 else allocate+memcpy |
| 209 | 00435a80 | Color::Color | writes 11 floats: rgb, a=1, colorize/offset zeroed (Color struct layout) |
| 210 | 00aef253 | _Init_thread_footer | increments epoch under critical section, __Init_thread_notify |
| 211 | 006b6470 | play_sound_with_fart_seed | applies fart-seed override then SoundEffects::Play |
| 212 | 00aefca0 | __ftoui3 | float->uint conversion, AVX512 vcvttss2usi fast path |
| 213 | 004171b0 | BitSet128::IsNonZero | true if any of four dwords nonzero (tear-flag style 128-bit set) |
| 214 | 00592230 | BitSet128::IsZero | true if all four dwords zero |
| 215 | 0041cb80 | std::max<int> | returns pointer to larger of two ints |
| 216 | 004f8940 | PlayerManager::AnyoneHasCollectible | FirstCollectibleOwner(id,..,1) != null |
| 217 | 004171d0 | Vector::operator_mul | float scalar times vector |
| 218 | 004a11c0 | std::vector<8byte>::_Emplace_reallocate | grow 1.5x, insert 8-byte element, memmove halves |
| 219 | 00428590 | std::vector<4byte>::_Emplace_reallocate | grow 1.5x, insert 4-byte element, memmove halves |
| 220 | 00435ad0 | Color::Color | rgb,a floats plus int offsets /255 into Color struct |
| 221 | 0067f0d0 | RandomVector | RNG xorshift(3,1,14) float*2pi -> cos,sin unit vector |
| 222 | 0044bcc0 | std::deque<int>::resize | grows map blocks of 4 via operator_new(0x10), shrinks size |
| 223 | 006f0090 | EntityFactory::Create | pool alloc by type (1000 -> effect ring of 0x400), strings 'EntityFactory cannot spawn Entity_Player' |
| 224 | 0041d540 | cos | thunk to libm_sse2_cos_precise |
| 225 | 004e4690 | pow | thunk to libm_sse2_pow_precise |
| 226 | 0040b030 | Sprite::IsEventTriggered | null-checks anm data (+0x34) then AnimationState::IsEventTriggered |
| 227 | 0040b1d0 | Sprite::GetNullFrame | null-checks anm data then AnimationState::GetNullFrame(this+0x30) |
| 228 | 0040b200 | Sprite::GetLayer | thunk to ANM2::GetLayer on same this |
| 229 | 00a10600 | Vector::operator_eq | compares x and y floats of two vectors |
| 230 | 00a0fe90 | Vector::Vector | stores XMM1/XMM2 into x,y |
| 231 | 0041cb70 | std::max<float> | returns pointer to larger of two floats |
| 232 | 004238f0 | Color::Color | sets 4 tint floats, zeroes colorize+offset (0x2c struct) |
| 233 | 0042cfd0 | Color::Color | tint rgb + alpha 1.0, colorize 0, 3 offset params (0x2c struct) |
| 234 | 00435b50 | Color::Color | all 11 fields of 0x2c Color struct from args |
| 235 | 004071c0 | Color::operator_assign | copies 0x2c-byte (11 dword) Color struct |
| 236 | 00709c40 | GridEntity::GridEntity | writes GridEntity vftable and constructs ANM2 member |
| 237 | 006b5b50 | EntityPtr::SetReference | release old ref (004cf210), store entity, add ref (004cdcf0) |
| 238 | 006a92e0 | Entity::SetChild | EntityPtr set on Entity+0x3c0 (_child) |
| 239 | 006a9320 | Entity::SetTarget | EntityPtr set on Entity+0x3c4 (_target) |
| 240 | 009e24a0 | std::map<unsigned_long_long>::find | lower_bound + 64-bit key compare, returns end() on miss |