The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 7 Vote(s) - 3.14 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Battery for Flashlight [Battery Item & Flashlight Item]
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#1
Battery for Flashlight [Battery Item & Flashlight Item]

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:
    <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:
<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

(This post was last modified: 08-07-2011, 08:53 PM by Tanshaydar.)
05-02-2011, 06:03 AM
Website Find


Messages In This Thread
Battery for Flashlight [Battery Item & Flashlight Item] - by Tanshaydar - 05-02-2011, 06:03 AM
RE: Battery for Flashlight - by ricky horror - 05-02-2011, 06:46 AM
RE: Battery for Flashlight - by Tanshaydar - 05-02-2011, 07:04 AM
RE: Battery for Flashlight - by thomsone - 05-02-2011, 07:15 AM
RE: Battery for Flashlight - by Tanshaydar - 05-02-2011, 08:36 AM
RE: Battery for Flashlight - by ricky horror - 05-02-2011, 10:17 AM
RE: Battery for Flashlight - by Tanshaydar - 05-02-2011, 04:22 PM
RE: Battery for Flashlight - by ricky horror - 05-02-2011, 04:34 PM



Users browsing this thread: 1 Guest(s)