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
How to make the Flashlight\Lantern FLICKER?[SOLVED] Thanks Fatalist.
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#11
RE: How to make the Flashlight\Lantern FLICKER?

Taking a proper look at it now. I'll report back later on.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
09-14-2014, 12:58 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#12
RE: How to make the Flashlight\Lantern FLICKER?

Thanks Rom..
I'm on Skype.. if you want to talk\test ome stuff i'm there.
Also The First Captain is trying to find how this get to work!
09-14-2014, 01:19 PM
Find
MrBehemoth Offline
Senior Member

Posts: 408
Threads: 19
Joined: Feb 2014
Reputation: 40
#13
RE: How to make the Flashlight\Lantern FLICKER?

Since the SetLanternFlickerActive() function that Badcat found was excluded from the AMFP patch, I would guess it relies on functionality that The Chinese Room hardcoded into the AMFP version of the engine, so no dice Lange.

If all else fails, could you just use a looping timer to randomly switch it on and off during a set period?

09-14-2014, 11:00 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#14
RE: How to make the Flashlight\Lantern FLICKER?

Quote:If all else fails, could you just use a looping timer to randomly switch it on and off during a set period?
That would look Ridiculous!
Have tried it before hahha... looks so weird..
you will see the hand +Flashlight go away\Showing\GoAway\wtcc.. Tongue Just.. Nahhh Wink
I don;t know how to hard code the egine Tongue Anyone know how to "Hack" the engine :p
(This post was last modified: 09-15-2014, 05:35 PM by DnALANGE.)
09-15-2014, 05:33 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#15
RE: How to make the Flashlight\Lantern FLICKER?

Without the source code, it's not possible.
09-15-2014, 07:58 PM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#16
RE: How to make the Flashlight\Lantern FLICKER?

You can try setting an invisible radius to the enemy and then set the flicker more intense the closer the player gets to the enemy.

Derp.
09-15-2014, 08:21 PM
Find
MrBehemoth Offline
Senior Member

Posts: 408
Threads: 19
Joined: Feb 2014
Reputation: 40
#17
RE: How to make the Flashlight\Lantern FLICKER?

(09-15-2014, 05:33 PM)DnALANGE Wrote:
Quote:If all else fails, could you just use a looping timer to randomly switch it on and off during a set period?
That would look Ridiculous!
Have tried it before hahha... looks so weird..
you will see the hand +Flashlight go away\Showing\GoAway\wtcc.. Tongue Just.. Nahhh Wink
I don;t know how to hard code the egine Tongue Anyone know how to "Hack" the engine

Of course, you're totally right, sorry! That would not work. I forgot about the hand model.

I was thinking of my own flashlight, which has no hand model. Personally, when I use a torch IRL, I don't hold it up in front of my face like characters in 1st person games do Smile

09-18-2014, 05:18 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#18
RE: How to make the Flashlight\Lantern FLICKER?

Them still...
IF it is a flashlight (to press f) it will NOT work!
I have found a solution for it..
WOn;t spoil it now..
People will have to wait till i will release it.. ever??
WIP with my little brother.
Just added 900MB of new textures :p
THe mod is now 6 GB.....
I will remove stuff witch will NOT be used at the end!
Damn 6 gb of useable stuff!
-
Still nobody has an idea how to do this..
Pm'd Patrik here is his quote;
Quote:Hey! Of course I know you, we've talked a lot about the patch. Smile
Unfortunately I don't think there's a way to make the lantern flicker. At least not a simple function to do so. There might be some way of hacking it in there.

Things like this will be a lot easier in HPL3.

Best regards,
Patrik

SO...
We KNOW by this, Hlp3 will be much more "free \ Modder-friendly"
Thanks Patrik and Frictional Games!
(This post was last modified: 09-18-2014, 05:29 PM by DnALANGE.)
09-18-2014, 05:27 PM
Find
Fatalist Offline
Member

Posts: 122
Threads: 8
Joined: Dec 2012
Reputation: 8
#19
RE: How to make the Flashlight\Lantern FLICKER?

It's easy to make.

SetLightFlickerActive("PlayerHands_SpotLight_3", true);

SpotLight_3 - name of your light in model editor.

Also, you can change lightsource color and radius. For example, FadeLightTo("PlayerHands_SpotLight_3", 0.645, 0.645, 0.645, 1, 12, 1);

09-20-2014, 10:20 AM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#20
RE: How to make the Flashlight\Lantern FLICKER?

This won;t work!
GIve us a small video then please..
From start to end..
From Modeleditor -> ingame test..
Everyone says it is NOT possible, even Patrik PM's it to me..
Playerhands... wher do you get that name from?
I have the flashlight, so is that the same name then?
AND how does that function now how to flicker AND how fast to flicker??
Then we must turn 1 spotlight OFF and ACTIVATE the flicker one isn't it??
Your function dons't have a how fast flicker function...
(This post was last modified: 09-20-2014, 11:57 AM by DnALANGE.)
09-20-2014, 11:56 AM
Find




Users browsing this thread: 2 Guest(s)