f3cuk / WICKED-AI

Wicked AI missions for your server
30 stars 59 forks source link

Ai now have NVG's again :) #7

Closed nerdalertdk closed 10 years ago

nerdalertdk commented 10 years ago

Re added NVG's

nerdalertdk commented 10 years ago

another way is this

if (_dayTime > 18.5 && _dayTime < 6) then {
    _unit addweapon "NVGoggles";
};
f3cuk commented 10 years ago

Yeah that seems a proper way of doing it. Maybe even add the mission time to _dayTime to make sure it won't be nightfall before the mission ends.

nerdalertdk commented 10 years ago

Ahh so if the mission gos by 18.5 a clock ?

f3cuk commented 10 years ago

Exactly. I dont really know how timing works and if it's possible to do something like timeadd(_dayTime, missiontime); Will have to look that up.

f3cuk commented 10 years ago

Okay i'll merge this and enhance it further :)

nerdalertdk commented 10 years ago

Hmm dont think the time/moon is necessary since the AI turn the NVG on if they need them. seems this will overcomplicate a simple thing.

f3cuk commented 10 years ago

Agreed. Will use if (_dayTime > 18.5 && _dayTime < 6) then {

nerdalertdk commented 10 years ago

why not just always give the AI NVG's ? " if " makes script a little tinybit slower.

f3cuk commented 10 years ago

Seems less realistic to have AI running around with NV equipped during the day. Now i think of it, how realistic is it that they ALWAYS have NV even during night? It should be chance and missiontype related. AI that are defending the bandit base are likely to be more organised then a few roque ones that are defending something worth a little.

Maybe do it like this, each mission has a % chance of NV on AI. NV will only equip when it is (close to) nightfall.

Like for instance we could set it to 90% on the Bandit base, 90% Ikea, 70% mv22, etc.