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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Holdning the flashlight like in penumbra
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#21
RE: Holdning the flashlight like in penumbra

(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.

"Veni, vidi, vici."
"I came, I saw, I conquered."
06-03-2013, 01:59 AM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#22
RE: Holdning the flashlight like in penumbra

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.

06-03-2013, 08:23 AM
Find
Kullin Offline
Member

Posts: 218
Threads: 23
Joined: May 2013
Reputation: 3
#23
RE: Holdning the flashlight like in penumbra

(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
06-03-2013, 10:38 AM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#24
RE: Holdning the flashlight like in penumbra

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

06-04-2013, 02:02 AM
Find




Users browsing this thread: 1 Guest(s)