Frictional Games Forum (read-only)
Holdning the flashlight like in penumbra - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Holdning the flashlight like in penumbra (/thread-21685.html)

Pages: 1 2 3


RE: Holdning the flashlight like in penumbra - PutraenusAlivius - 06-03-2013

(06-02-2013, 08:26 PM)Kullin Wrote:
(06-02-2013, 08:23 PM)Smoke Wrote: Oh well, I thought it'd work.. Never used it myself. Maybe someone else could help you?
Oh, okey well thank you anyway!

I would be happy if someone could hepl me!

(06-01-2013, 02:03 AM)JustAnotherPlayer Wrote:
(05-31-2013, 04:00 PM)Smoke Wrote:
(05-31-2013, 10:57 AM)JustAnotherPlayer Wrote: Possible.

Really? Is that everything you're going to tell him?

Kullin: There is a lantern model you can use. You just have to create a FC to let the player use it.

I was going to edit that once I find out. But I was occupied watching this one film.

EDIT:
Unless you want the flashlight to be changed as well, you could just remove the hands, make a new animation, and done.
Well, how do I do that? :p

You need to find an animator/modeller to help you. I can't do it.


RE: Holdning the flashlight like in penumbra - Daemian - 06-03-2013

To remove the arm, just fill the .dds with alpha.
\redist\models\player\hands\hands.dds


Then include the alpha layer in the .mat with MaterialEditor.

This is just to avoid touching the .ent and .dae files of the hand.
They tend to crash a lot.

For the flashlight, get the model and put it here:
\redist\models\hand_objects\lantern


If your flashlight files are named flashlight.dae, flashlight.ent, flashlight.mat
Edit lantern.ho and change this value:
Model = "hand_lantern.ent" to "flashlight.ent"


To change the flashlight position ingame, in the same file lantern.ho change this value:
OffsetPosition = "-0.0105 -0.0035 0.002"

These are x, y, z. Starting at 0,0,0 from the left bottom of the screen.

-0.0035 is the one taking the lantern a little below the screen to fit better at the corner.
You may want to change this value to move the flashlight down.

That's all, that's what i did for my ifc to change the lantern.


RE: Holdning the flashlight like in penumbra - Kullin - 06-03-2013

(06-03-2013, 08:23 AM)Amn Wrote: To remove the arm, just fill the .dds with alpha.
\redist\models\player\hands\hands.dds


Then include the alpha layer in the .mat with MaterialEditor.

This is just to avoid touching the .ent and .dae files of the hand.
They tend to crash a lot.

For the flashlight, get the model and put it here:
\redist\models\hand_objects\lantern


If your flashlight files are named flashlight.dae, flashlight.ent, flashlight.mat
Edit lantern.ho and change this value:
Model = "hand_lantern.ent" to "flashlight.ent"


To change the flashlight position ingame, in the same file lantern.ho change this value:
OffsetPosition = "-0.0105 -0.0035 0.002"

These are x, y, z. Starting at 0,0,0 from the left bottom of the screen.

-0.0035 is the one taking the lantern a little below the screen to fit better at the corner.
You may want to change this value to move the flashlight down.

That's all, that's what i did for my ifc to change the lantern.
Okey, I did what you said but when i open the .dds files in the material editor its just black, and when i turn on the flashlight the hand is black. I don't know if i did that the dds corectly though


RE: Holdning the flashlight like in penumbra - Daemian - 06-04-2013

Great, it's working. You are just missing the alpha channel somehow.
Here:
hands.dds
hands.mat