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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable texture on lantern
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
Disable texture on lantern

Hi.
Is there a way I can disable the texture on the lantern (and hand model).

Since it's the only way for the player to make an input I can detect with a script, I'd like to use it without the lantern effects. But I can only detect it if the player has a lantern.

PHP Code: (Select All)
SetEntityVisible("hand_lantern"false); 
Did not work.

Any ideas?

Trying is the first step to success.
(This post was last modified: 06-14-2015, 04:14 PM by FlawlessHappiness.)
06-14-2015, 04:14 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Disable texture on lantern

Perhaps you can make it 100% black alpha on the texture, but of course that would require an IFC.

06-14-2015, 04:17 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#3
RE: Disable texture on lantern

(06-14-2015, 04:17 PM)Mudbill Wrote: Perhaps you can make it 100% black alpha on the texture, but of course that would require an IFC.

An IFC won't bother me a bit. If I can make some fun gameplay and pull it off, then I won't mind.

So you're saying I simply open the texture, delete everything, then edit the texture it the material editor?

Trying is the first step to success.
06-14-2015, 04:19 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#4
RE: Disable texture on lantern

Pretty much. You've also gotta edit the model to remove the pointlight/billboard that's there, and you have to edit the user variables to remove the sounds of the lantern turning on and off. Smile

Don't necessarily delete everything, but if you create an alpha channel that applies to the whole texture, it will make the texture completely invisible.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 06-14-2015, 04:24 PM by Romulator.)
06-14-2015, 04:23 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#5
RE: Disable texture on lantern

(06-14-2015, 04:23 PM)(拉赫兰) Romulator Wrote: Pretty much. You've also gotta edit the model to remove the pointlight/billboard that's there, and you have to edit the user variables to remove the sounds of the lantern turning on and off. Smile

Don't necessarily delete everything, but if you create an alpha channel that applies to the whole texture, it will make the texture completely invisible.

You're starting to speak in terms I'm not yet familiar with.

"Alpha channel". When you say I create an alpha channel, do you mean I create a new layer, that overwrites the other texture?

Trying is the first step to success.
(This post was last modified: 06-14-2015, 04:56 PM by FlawlessHappiness.)
06-14-2015, 04:55 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#6
RE: Disable texture on lantern

The texture has two channels that HPL uses. The first one is the diffuse, which is the actual texture. The other is the alpha, which determines where opacity/translucency/transparency shows. Diffuse is color strength, alpha is, well, alpha strength.

You can create alpha channels in GIMP, Photoshop, Paint.NET etc. Try to open one of them .tga icons, and you'll see it.

[Image: InPeBvg.png]

White = opaque, black = transparent. Anything in between (gray scale) determines the strength.

(This post was last modified: 06-14-2015, 05:05 PM by Mudbill.)
06-14-2015, 05:04 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#7
RE: Disable texture on lantern

I'm using paint.NET.
Where do I show channels?

Trying is the first step to success.
06-14-2015, 05:10 PM
Find
A.M Team Offline
Banned

Posts: 811
Threads: 63
Joined: Sep 2014
#8
RE: Disable texture on lantern

Can't he replace the textures of the lantern with an invisible 512x512 texture that is exactly the same name of the previous textures?

You can use google search there buddy...
06-14-2015, 05:23 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#9
RE: Disable texture on lantern

(06-14-2015, 05:23 PM)TheDoctorPoo Wrote: You can use google search there buddy...

You may say that, but I tried google searching without any luck.

When I open the .tga file Mudbill opened I get this
[Image: 52d84fd9a5.png].

I'm not sure where I'm supposed to edit an alpha channel, the way he could in photoshop.


Lag = Layers

EDIT:
Don't mind me. I got it working.... heh...




Trying is the first step to success.
(This post was last modified: 06-14-2015, 11:57 PM by FlawlessHappiness.)
06-14-2015, 05:42 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#10
RE: Disable texture on lantern

dat CS deagle

06-15-2015, 12:40 AM
Find




Users browsing this thread: 1 Guest(s)