onaid Posted January 26, 2016 Share Posted January 26, 2016 is there a way to change the default flashlight / torch for a light more like a zippo/lighter type of light , if that makes sense ? could i use the fire pit plane/ light instead of the flashlight.. just as if you where in the dark woods and light a zippo to see where your going with the light flickering .......if that makes sense cheers Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 26, 2016 Share Posted January 26, 2016 You can either use the firepit light or the cage light used in the AI demo map (above the monsters door). Quote Link to comment Share on other sites More sharing options...
onaid Posted January 27, 2016 Author Share Posted January 27, 2016 thanks , how would i go about applying it to the fps .lua ? Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 14, 2016 Share Posted February 14, 2016 On the train on my phone, so typing scripts is too painfull. Lets start simple. The Flashlight is currently a spotlight. Use API to figure out how to make a pointlight instead. Next is adding fluctuation to the intensity of the light. Try looking in to the firepit how that is done. In your fps script, in the update check if Flashlight is active. If so, aplly the fluctuation you found in the firepit script. If you are really stuck let me know, and I will create a basic version for you. Also if you manage to get it working partially, post your script so that we can have a look. Quote Link to comment Share on other sites More sharing options...
onaid Posted February 15, 2016 Author Share Posted February 15, 2016 found how to change the spot light to point light, added fluctuation lines from fire pitt lua but nothing hapens FPSPlayer.lua cheers again for your help mate Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 15, 2016 Share Posted February 15, 2016 Okay I will have look at it. It is good to see you try. You can also remove the rotation for the point light, since the point light shines in every direction. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 20, 2016 Share Posted February 20, 2016 The fluctuation code needs to be inside the update loop. There we check if the flashlight is on. I haven't play tested it. See the attached script. FPSPlayer.lua Quote Link to comment Share on other sites More sharing options...
onaid Posted February 29, 2016 Author Share Posted February 29, 2016 thanks Aggror , fpsplayer.lua dose work but only if i check the flash light on box. problem is flash light is on at start game, where i would like the flash light off at the start of game, also if i leave the box unchecked and then turn on flash light in game with F key it uses default flash light (not the flickering zippo light) if that makes sense, its like by checking the box im turning off or on the part you modified in the fps script ? and is there a way to adjust light level ? cheers again Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted March 22, 2016 Share Posted March 22, 2016 Try this. The flashlight is now hidden when the checkbox is false. I also added an option for the intensity range. FPSPlayer.lua Quote Link to comment Share on other sites More sharing options...
onaid Posted March 25, 2016 Author Share Posted March 25, 2016 Thanks again Aggror Jorn , that is perfect you are the man Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.