Frictional Games Forum (read-only)
How to make the Flashlight\Lantern FLICKER?[SOLVED] Thanks Fatalist. - 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: How to make the Flashlight\Lantern FLICKER?[SOLVED] Thanks Fatalist. (/thread-26118.html)

Pages: 1 2 3


RE: How to make the Flashlight\Lantern FLICKER? - Romulator - 09-14-2014

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


RE: How to make the Flashlight\Lantern FLICKER? - DnALANGE - 09-14-2014

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!


RE: How to make the Flashlight\Lantern FLICKER? - MrBehemoth - 09-14-2014

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?


RE: How to make the Flashlight\Lantern FLICKER? - DnALANGE - 09-15-2014

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


RE: How to make the Flashlight\Lantern FLICKER? - Slanderous - 09-15-2014

Without the source code, it's not possible.


RE: How to make the Flashlight\Lantern FLICKER? - Neelke - 09-15-2014

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.


RE: How to make the Flashlight\Lantern FLICKER? - MrBehemoth - 09-18-2014

(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


RE: How to make the Flashlight\Lantern FLICKER? - DnALANGE - 09-18-2014

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!


RE: How to make the Flashlight\Lantern FLICKER? - Fatalist - 09-20-2014

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);


RE: How to make the Flashlight\Lantern FLICKER? - DnALANGE - 09-20-2014

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