Penumbra: Overture
Frictional Games's 2007 survival horror game, the first in the Penumbra series, lit by a battery-powered flashlight and a glow stick.
Facts
- Released
- 2007
- Genre
- Survival horror, Adventure, Puzzle
- Platforms
- Linux, Windows, macOS
- Developer
- Frictional Games
- Publisher
- Paradox Interactive, Strategy First
- Series
- Penumbra
- Code
- Source release by Frictional Games
- Evidence
- Code (4)
- Sources
- 1
On this page
#How it plays
The flashlight runs on a power value from 0 to 100, which starts empty, and each battery picked up adds 101. Lit, it burns 0.1 a second, so a full charge lasts 1,000 seconds and a battery 100; the drain stops while the inventory, notebook, or a keypad is open2. In its last 30 seconds it flickers out for moments at a time3. This is a light-source timer that the player refills. The glow stick uses no power at all, and lighting it puts the flashlight away4.
Mechanics
| Mechanic | Kind | How |
|---|---|---|
| Light-source timer | Refillable count | a flashlight that burns 0.1 power a second from a pool of 100, refilled by 10 a battery, beside a glow stick that never runs out |
Every claim about this game, by concept (4)
References
- ^CodeFrictionalGames/PenumbraOverturePlayer.cpp 332–337, 1373; GameItemType.cpp 196–200
How we know
The flashlight runs on one power value from 0 to 100, which starts at 0. Each battery picked up adds 10, and adding stops at 100.
332void cPlayer::AddPower(float afX) ⋮ 334 mfPower += afX; 335 if(mfPower > 100) mfPower =100; 336 if(mfPower < 0) mfPower =0;
Player.cpp lines 332–337 at 6a6953a · upstream ↗ 1373 mfPower =0;Player.cpp line 1373 at 6a6953a · upstream ↗ 196bool cGameItemType_Battery::OnPickUp(cInventoryItem *apItem, bool abInGame) ⋮ 198 mpInit->mpPlayer->AddPower(10.0f); 199 return false;
GameItemType.cpp lines 196–200 at 6a6953a · upstream ↗ - ^CodeFrictionalGames/PenumbraOverturePlayerHelper.cpp 1466–1477, 1517–1524
How we know
While the flashlight is on, power falls by 0.1 a second, except while the inventory, the notebook, or a keypad is open. At 0 the flashlight switches off, and it won't switch on again without power. A full 100 lasts 1,000 seconds, about 16 minutes 40 seconds, and each battery's 10 adds 100 seconds (computed).
1466 //Player power 1467 if( mbActive && 1468 mpInit->mpInventory->IsActive()==false && 1469 mpInit->mpNotebook->IsActive() == false && 1470 mpInit->mpNumericalPanel->IsActive() == false) ⋮ 1472 mpInit->mpPlayer->AddPower(-0.1f * afTimeStep); 1473 if(mpInit->mpPlayer->GetPower()==0) ⋮ 1475 SetActive(false);
PlayerHelper.cpp lines 1466–1477 at 6a6953a · upstream ↗ 1517void cPlayerFlashLight::SetActive(bool abX) ⋮ 1519 cSoundHandler *pSoundHanlder = mpInit->mpGame->GetSound()->GetSoundHandler(); ⋮ 1521 if(abX && (mpInit->mpPlayer->GetPower()==0 || mbDisabled)) { 1522 pSoundHanlder->PlayGui("item_flashlight_nopower",false,1); 1523 return;
PlayerHelper.cpp lines 1517–1524 at 6a6953a · upstream ↗ - ^CodeFrictionalGames/PenumbraOverturePlayerHelper.cpp 1479–1511
How we know
Below 3 power, the last 30 seconds of light (computed), the flashlight flickers while the inventory is closed: it goes dark for 0.04 to 0.15 seconds at a time, with a sound, between lit spells of 0.05 to 1.5 seconds.
1481 if(mbActive && mpInit->mpInventory->IsActive()==false && 1482 pHudModel->msName == "Flashlight") ⋮ 1484 if(mpInit->mpPlayer->GetPower() < 3.0f) ⋮ 1488 if(pHudModel->mvLights[0]->IsVisible()) ⋮ 1490 pHudModel->mvLights[0]->SetVisible(false); 1491 pHudModel->mvBillboards[0]->SetVisible(false); ⋮ 1493 mfFlickerTime = cMath::RandRectf(0.04f,0.15f); ⋮ 1497 pSoundHanlder->PlayGui("item_flashlight_flicker",false,1); ⋮ 1503 mfFlickerTime = cMath::RandRectf(0.05f,1.5f);
PlayerHelper.cpp lines 1479–1511 at 6a6953a · upstream ↗ - ^CodeFrictionalGames/PenumbraOverturePlayerHelper.cpp 1619–1621; GameItemType.cpp 259–277
How we know
The glow stick uses no power: its update does nothing. Switching it on puts the flashlight away.
1619void cPlayerGlowStick::Update(float afTimeStep)PlayerHelper.cpp lines 1619–1621 at 6a6953a · upstream ↗ 259bool cGameItemType_GlowStick::OnAction(cInventoryItem *apItem, int alActionNum) ⋮ 265 if(mpInit->mpPlayer->GetGlowStick()->IsActive()) ⋮ 267 mpInit->mpPlayer->GetGlowStick()->SetActive(false); ⋮ 269 else ⋮ 271 mpInit->mpPlayer->GetGlowStick()->SetActive(true); 272 mpInit->mpPlayer->GetFlashLight()->SetActive(false);
GameItemType.cpp lines 259–277 at 6a6953a · upstream ↗
Sources
Code
- Games, Frictional. 2010. “Penumbra: Overture: the source release (FrictionalGames/PenumbraOverture).” Commit 6a6953a. FrictionalGames/PenumbraOverture @ 6a6953a · licence, all uses