Amnesia: The Bunker

Amnesia: The Bunker

42 个评价
Infinite Magnet Lampe Duration
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
63.176 KB
2023 年 6 月 19 日 下午 12:10
2023 年 10 月 31 日 下午 8:17
2 项改动说明 ( 查看 )

订阅以下载
Infinite Magnet Lampe Duration

描述
"No longer in the realm of possibilities; this Magnet Lampe was left behind by some other worldly being." - Henri


Under ...\script\custom\props\Prop_DynamoLantern.hps:

"const float gfDynamoLantern_DefaultChargeDecreaseRate = (1.f / 40.f);"
changed to
"const float gfDynamoLantern_DefaultChargeDecreaseRate = (1.f / 99999.f);"


=======================================================================
A few new lines were added in the Halloween Update:

float GetChargeDecreaseRate()
{
uint lFlashlightDurationLevel = GameDifficulty_GetSettingValueByID_Int(eGameDifficultySetting_FlashlightChargeDuration);
if (lFlashlightDurationLevel==0)
return gfDynamoLantern_DefaultChargeDecreaseRate * 2.f;
else if (lFlashlightDurationLevel==2)
return gfDynamoLantern_DefaultChargeDecreaseRate * 0.5f;

return gfDynamoLantern_DefaultChargeDecreaseRate;
}

Under this assumption, the higher the difficulty, the lower the duration. Either way this should be infinite or at least long enough to be considered such.
15 条留言
CrazyAllaen  [作者] 5 月 13 日 下午 3:02 
Other then making sure you enable the mod correctly and it doesn't conflict with other ones
CrazyAllaen  [作者] 5 月 13 日 下午 3:01 
Well I'm not sure tbh. I haven't looked at the file in about half a year and I'm sure some updates would of broken shit
Corvo_Ex 5 月 12 日 下午 1:05 
This mod does not work for me, the duration is the same as normal, any solution?
CrazyAllaen  [作者] 2024 年 4 月 2 日 上午 4:38 
@Kevin I also need to say that I'm no programmer, and the Halloween update changed the Generator to such a degree that it broke my, and another persons, mod. I looked into the file and updated it to no success, so unless someone who has more knowledge on the Frictional Games engine comes around you probably won't be seeing many Standalone Generator mods.
RuthlessDev71 2024 年 3 月 31 日 下午 1:50 
@Kevin you don't need a mod , it's literally an option already in the custom settings. If eventually you don't have yet access to the custom settings, it's because you need to complete the game at least once , in a difficulty of your choice.
Kevin 2024 年 3 月 31 日 下午 1:44 
hey, can you do a mod to add this to generator?
RuthlessDev71 2024 年 1 月 17 日 上午 11:52 
Thanks ;)
CrazyAllaen  [作者] 2024 年 1 月 17 日 上午 10:07 
Yes! The Add-On still works as of the most recent update. The file structure, and file itself, did not change, however I did start a game with only this Add-On enabled and it works just fine.
RuthlessDev71 2024 年 1 月 17 日 上午 2:27 
Still works?
CrazyAllaen  [作者] 2023 年 10 月 31 日 下午 8:31 
Updated the file, however I noticed an extra bit further down the file that seems to point towards Difficulty having an effect on the Duration. The duration should still be "Infinite" or at least it should stay on roughly 9 hours on hardest difficulty. If anything, the game will glitch the light off before the light actually turns off.