Jump to content
Sign in to follow this  
katipo66

Hide #lightpoint from AI

Recommended Posts

I am using #lightpoint to create a light source for player like this for example:

amb1 = "#lightpoint" createVehicle position player;
amb1 setLightColor [1, 1, 1];
amb1 setLightAmbient [1, 1, 1];
amb1 setLightBrightness (0.09);
amb1 attachto [player,[0,-0.9,3]];

The idea is night play without NVGs or flashlight, it works well but also for AI who obviously can spot me too easily, is it possible to hide the lightpoint from all AI only?

Share this post


Link to post
Share on other sites

Strange request.

 

You want the player to have a light to be able to see at night but AI shouldn't be affected by that light.

 

Strange solutions:

 

- Change player traits to have more camouflageCoef. Like player setUnitTrait ["camouflageCoef",0.5]

- Play in MP dedi and create the ligh as local object in the player client.

Share this post


Link to post
Share on other sites

Strange request.

 

You want the player to have a light to be able to see at night but AI shouldn't be affected by that light.

 

Strange solutions:

 

- Change player traits to have more camouflageCoef. Like player setUnitTrait ["camouflageCoef",0.5]

- Play in MP dedi and create the ligh as local object in the player client.

 

Thanks for your solutions but i dont think they are what im after.

 

Regarding the strange request: Its just at night time it is completely black, i can only see black screen or stars if i look up, when using 3 sets of "#lightpoint" at different levels above player im able to create a believable night time unassisted vision that at least allows me to see where im going 10-15 meters ahead, its very low ambient light but somehow enough for ai to spot me 100 meters away.

 

I was hoping that somehow the #lightpoint could be made invisible to them.

Share this post


Link to post
Share on other sites

Have you compared the AI's ability to spot with lightpoints, to without? Dynamic lights may not even be considered for AI spotting routines.

Share this post


Link to post
Share on other sites

Have you compared the AI's ability to spot with lightpoints, to without? Dynamic lights may not even be considered for AI spotting routines.

 

Good point, Tbh no i have not tested 'scientifically' as such, but each time i ran the script i would be spotted 100% of the time from all sorts of distances in pitch black night where as without it they would stroll on by, but i will test again in controlled mission just to make sure.

 

Cheers

Share this post


Link to post
Share on other sites

All lights definitely affect AI's spotting abilities:

I didn't try different light intensities, but sounds like they don't matter at all, only the presence of light.

Scratch that. Intensity does have an effect, but even a very very dim light helps spotting.

 

And I can't think of anything else to circumvent this, other than what barbolani suggested.

Share this post


Link to post
Share on other sites

Agreed. Try setting your CamoflageCoef down to 0.1 when at night.

I also like playing at night only if you can see without NV. Too dark or playing only in NV is immersion breaking for me. Personal preference. I always feel you should click on the NV for detail only, or rare extra dark, no moon, overcast nights.

You also have the option to just press ESC and go into your Options and turn UP your Gamma for night games. That's what I started to do. Makes enjoying the night Ops bearable for me.

Share this post


Link to post
Share on other sites

Scratch that. Intensity does have an effect, but even a very very dim light helps spotting.

 

And I can't think of anything else to circumvent this, other than what barbolani suggested.

 

Cheers that video is the scientific test i dont need to do now, and correct about the dimness, ive had it so it barely makes any difference and they can still spot and target me accurately even if i go prone and try to move away.

 

 

Agreed. Try setting your CamoflageCoef down to 0.1 when at night.

I also like playing at night only if you can see without NV. Too dark or playing only in NV is immersion breaking for me. Personal preference. I always feel you should click on the NV for detail only, or rare extra dark, no moon, overcast nights.

You also have the option to just press ESC and go into your Options and turn UP your Gamma for night games. That's what I started to do. Makes enjoying the night Ops bearable for me.

 

Ok seems barbolani was on the right track, ill play around with setUnitTrait, ill try the Gamma setting also, could be as simple as that.

 

Cheers

Share this post


Link to post
Share on other sites
..., ill try the Gamma setting also, could be as simple as that.

Instead of the gamma, you could create a brightening post process effect. (Check out my signature. ;) )

  • Like 1

Share this post


Link to post
Share on other sites

Instead of the gamma, you could create a brightening post process effect. (Check out my signature. ;) )

Ha! good idea, ive already got that loaded, i did try barbolani's setUnitTrait option and it worked really well, great to have so many options for once!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×