mirror of https://github.com/PrimeDecomp/prime.git
parent
e2c87919cb
commit
0a7aa39f41
|
@ -292,7 +292,7 @@ LIBS = [
|
||||||
["MetroidPrime/BodyState/CABSIdle", True],
|
["MetroidPrime/BodyState/CABSIdle", True],
|
||||||
"MetroidPrime/BodyState/CABSFlinch",
|
"MetroidPrime/BodyState/CABSFlinch",
|
||||||
"MetroidPrime/BodyState/CABSAim",
|
"MetroidPrime/BodyState/CABSAim",
|
||||||
"MetroidPrime/ScriptObjects/CScriptPlayerStateChange",
|
["MetroidPrime/ScriptObjects/CScriptPlayerStateChange", True],
|
||||||
"MetroidPrime/Enemies/CThardus",
|
"MetroidPrime/Enemies/CThardus",
|
||||||
"MetroidPrime/CActorParticles",
|
"MetroidPrime/CActorParticles",
|
||||||
"MetroidPrime/Enemies/CWallCrawlerSwarm",
|
"MetroidPrime/Enemies/CWallCrawlerSwarm",
|
||||||
|
|
|
@ -21,6 +21,8 @@ public:
|
||||||
void Accept(IVisitor& visit) override;
|
void Accept(IVisitor& visit) override;
|
||||||
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
|
||||||
~CScriptPlayerStateChange();
|
~CScriptPlayerStateChange();
|
||||||
|
|
||||||
|
bool Filtered() { return x44_ctrlCmdOpt == kCCO_Filtered; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _CSCRIPTPLAYERSTATECHANGE
|
#endif // _CSCRIPTPLAYERSTATECHANGE
|
||||||
|
|
|
@ -259,7 +259,7 @@ METROIDPRIME :=\
|
||||||
$(BUILD_DIR)/src/MetroidPrime/BodyState/CABSIdle.o\
|
$(BUILD_DIR)/src/MetroidPrime/BodyState/CABSIdle.o\
|
||||||
$(BUILD_DIR)/asm/MetroidPrime/BodyState/CABSFlinch.o\
|
$(BUILD_DIR)/asm/MetroidPrime/BodyState/CABSFlinch.o\
|
||||||
$(BUILD_DIR)/asm/MetroidPrime/BodyState/CABSAim.o\
|
$(BUILD_DIR)/asm/MetroidPrime/BodyState/CABSAim.o\
|
||||||
$(BUILD_DIR)/asm/MetroidPrime/ScriptObjects/CScriptPlayerStateChange.o\
|
$(BUILD_DIR)/src/MetroidPrime/ScriptObjects/CScriptPlayerStateChange.o\
|
||||||
$(BUILD_DIR)/asm/MetroidPrime/Enemies/CThardus.o\
|
$(BUILD_DIR)/asm/MetroidPrime/Enemies/CThardus.o\
|
||||||
$(BUILD_DIR)/asm/MetroidPrime/CActorParticles.o\
|
$(BUILD_DIR)/asm/MetroidPrime/CActorParticles.o\
|
||||||
$(BUILD_DIR)/asm/MetroidPrime/Enemies/CWallCrawlerSwarm.o\
|
$(BUILD_DIR)/asm/MetroidPrime/Enemies/CWallCrawlerSwarm.o\
|
||||||
|
|
|
@ -28,7 +28,7 @@ void CScriptPlayerStateChange::AcceptScriptMsg(EScriptObjectMessage msg, TUnique
|
||||||
if (x44_ctrlCmdOpt != kCCO_Unfiltered) {
|
if (x44_ctrlCmdOpt != kCCO_Unfiltered) {
|
||||||
switch (x40_ctrl) {
|
switch (x40_ctrl) {
|
||||||
case kC_Filtered:
|
case kC_Filtered:
|
||||||
bool filtered = !(1 - x44_ctrlCmdOpt);
|
bool filtered = Filtered();
|
||||||
ControlMapper::SetCommandFiltered(ControlMapper::kC_OrbitClose, filtered);
|
ControlMapper::SetCommandFiltered(ControlMapper::kC_OrbitClose, filtered);
|
||||||
ControlMapper::SetCommandFiltered(ControlMapper::kC_OrbitConfirm, filtered);
|
ControlMapper::SetCommandFiltered(ControlMapper::kC_OrbitConfirm, filtered);
|
||||||
ControlMapper::SetCommandFiltered(ControlMapper::kC_OrbitDown, filtered);
|
ControlMapper::SetCommandFiltered(ControlMapper::kC_OrbitDown, filtered);
|
||||||
|
|
Loading…
Reference in New Issue