MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / SayNo

Function SayNo

TombEngine/Sound/sound.cpp:1150–1168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1148}
1149
1150void SayNo(std::optional<Vector3i> referencePosition)
1151{
1152 static int lastNoTimestamp = NO_VALUE;
1153 static Vector3i lastReferencePosition = Vector3i::Zero;
1154
1155 if (referencePosition.has_value())
1156 {
1157 if (referencePosition.value() == lastReferencePosition)
1158 return;
1159
1160 lastReferencePosition = referencePosition.value();
1161 }
1162
1163 if ((GlobalCounter - lastNoTimestamp) > FPS)
1164 {
1165 lastNoTimestamp = GlobalCounter;
1166 SoundEffect(SFX_TR4_LARA_NO_ENGLISH, nullptr, SoundEnvironment::Always);
1167 }
1168}
1169
1170void PlaySecretTrack()
1171{

Callers 12

PuzzleHoleCollisionFunction · 0.85
KeyHoleCollisionFunction · 0.85
DoorCollisionFunction · 0.85
CollisionPulleySwitchFunction · 0.85
CrowbarSwitchCollisionFunction · 0.85
CollideStatuePlinthFunction · 0.85
DoInventoryMethod · 0.85
DoLoadMethod · 0.85
HandlePlayerFlyCheatFunction · 0.85
PickupCollisionFunction · 0.85
InteractMethod · 0.85

Calls 3

SoundEffectFunction · 0.85
has_valueMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected