Frictional Games Forum (read-only)

Full Version: Battery for Flashlight [Battery Item & Flashlight Item]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Battery:
Well, now that we have flashlight, we want to have batteries too! I thought it'd be harder to do this, but it turned out easier than I expected. Simply, I took the Penumbra: Black Plague battery and made it LampOil item. It's same as the normal LampOil item in terms of quantity it adds.

You have to add two new lines to Inventory category of your base_english.lang file though:
Code:
    <Entry Name="ItemName_Battery">Battery</Entry>
    <Entry Name="ItemDesc_Battery">Battery for flashlight.</Entry>

Images:
[1] [2] [3]

Download:
http://tanshaydar.com/resim/white_night/...attery.zip

Simply extract to your items folder.
Credits goes to Frictional guys for battery model and textures.

Flashlight:
Well, you should pick up flashlight as lantern item and show flashlight in your inventory.

I made DIGIByte's flashlight as a pickable item and once you pick it you have flashlight to light both in your hands and in your inventory. Inventory image is from Penumbra: Black Plague. This flashlight is only an item and different from actual flashlight you hold. Like lantern item and lantern you hold.

You have to add two new lines to Inventory category of your base_english.lang file though:
Code:
<Entry Name="ItemDesc_Flashlight">The flashlight will light up dark places. When in game press $ButLantern to turn it on.</Entry>
    <Entry Name="ItemName_Flashlight">Flashlight</Entry>

Download:
http://tanshaydar.com/resim/white_night/...hlight.zip

Simply extract to your items folder.
Once again, credits goes to Frictional guys for inventory textures.

Flashlight & Batteries Demonstration Video
http://www.moddb.com/mods/white-night/vi...onstration



Download the flashlight itself here: http://www.frictionalgames.com/forum/thread-7718.html
(05-02-2011, 06:03 AM)Tanshaydar Wrote: [ -> ]Well, now that we have flashlight, we want to have batteries too! I thought it'd be harder to do this, but it turned out easier than I expected. Simply, I took the Penumbra: Overture battery and made it LampOil item. It's same as the normal LampOil item in terms of quantity it adds.

You have to add two new lines to Inventory category of your base_english.lang file though:
Code:
    <Entry Name="ItemName_Battery">Battery</Entry>
    <Entry Name="ItemDesc_Battery">Battery for flashlight.</Entry>

Images:
[1] [2] [3]

Download:
http://tanshaydar.com/resim/white_night/...attery.zip

Simply extract to your items folder.
Once again, credits goes to Frictional guys for battery model and textures.

Amazing work!!! Big Grin
Did you make if for Large Oil containers too? :p

Edit: one quick question... does this replace the oil in game? or just usable for custom stories and conversion mods as of now?
It doesn't replace anything, it's a new entity. It can be used for custom stories and conversion mods.

Large oil with more batteries Tongue
Great work, this will be usefull Smile
Well, I got it all working. Flashlight image in inventory, flashlight as item, batteries, etc... However, I couldn't get the sound of using batteries to play. Only oil using sound plays and there is no way to change it without changing actual files.
(05-02-2011, 08:36 AM)Tanshaydar Wrote: [ -> ]Well, I got it all working. Flashlight image in inventory, flashlight as item, batteries, etc... However, I couldn't get the sound of using batteries to play. Only oil using sound plays and there is no way to change it without changing actual files.

You have the flashlight shown as a flashlight in the inventory? o-O It still shows as a lantern for us...
Well, the images I took were from the actual game, not the conversion I made. I have a demonstration video up in ModDB page.
(05-02-2011, 04:22 PM)Tanshaydar Wrote: [ -> ]Well, the images I took were from the actual game, not the conversion I made. I have a demonstration video up in ModDB page.

Yeah, I saw it [:

Will you be releasing it for the flashlight mod so that it's not a lantern in the mod? [:
I updated my first post.
I'll add this to the list of Custom Models.
Who should I give credit from this (since I've understood that many have worked with this)?
Pages: 1 2 3 4