Jump to content

olseric

Member
  • Content Count

    20
  • Joined

  • Last visited

  • Medals

Everything posted by olseric

  1. olseric

    SEB Ia Trang Map

    Hey guys... Been looking for a JPG, PDF, whatever of SEB NAM Ia Drang map. Apparently, my computer doesn't like the SHIFT - Topography trick as everytime it would make the file, it would delete it 10 seconds later from my HDD. So...the question is, does anyone have that map in JPG, PDF, anything image format wise that I could have a copy of? Thanks!
  2. olseric

    Daylight Hours

    Haven't tested this yet as I did it while at my desk here at work, however, it should work: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">;Header Information _days = 0 _month = missionStart select 2 _day = missionStart select 3 _hour = daytime _month = _month - 1 ;Determine Day of the Year #MonthLoop ?(_month == 0):goto "LoopEnd" _dayssofar = _days ;30 days has SEP, APR, JUN, & NOV :) ?(_month == 2):_days = _days + 28 ?(_month == 9) OR (_month == 4) OR (_month == 6) OR (_month == 11):_days = _days + 30 ?(_dayssofar == _days):_days = _days + 31 _month = _month - 1 goto "MonthLoop" #LoopEnd ;Day of the Year Calculation _dayofyear = _days + _day ;Calculate days from an equinox _equinox = 0 ?(_dayofyear < 80):_equinox = _dayofyear - 80 ?(_dayofyear > 80):_equinox = _dayofyear - 80 ?(_dayofyear > 172):_equinox = 265 - _dayofyear ?(_dayofyear > 265):_equinox = 265 - _dayofyear ?(_dayofyear > 356):_equinox = _dayofyear - 445 ;Calculate Sunrise/Sunset _sunrise = ((_equinox * -.013889) + 6) _sunset = ((_equinox * .013889) + 18) ;Change stuff below to suit...examples listed. if (_hour < _sunrise) OR (_hour > _sunset) then {hint "It's Dark!"} else {hint "It's Light!"} The actual dates of the solstaces and equinoxes may need to be adjusted to fit the game, but I tested it on paper and it seems to work well.
  3. Anyone know of a simple way to find out if the sun is shining or not? Tried polling a streetlamp (i.e. on at night, off during day), however, that didn't work. And...setting it by the hour doesn't work because of the season difference (i.e. sun up earlier in the summer).
  4. olseric

    need realistic radio man script

    Make a trigger big enough to fit the whole map. In the condition field, "this AND satcomguy hasWeapon "bas_satcom"" In the init field, "satcomguy addAction ["Use Satcom","satcom.sqs"]
  5. olseric

    Daylight Hours

    LOL! Â Okay, I'll try and work on that part of it then. -EDIT- From the research labs, I have determined: Equinox days: Approx sunrise 6AM, sunset 6PM there is 2:30 of additional sunlight during the summer solstace (1:15 each way) and 2:30 of less sunlight during the winter solstace (1:15 each way).
  6. olseric

    Daylight Hours

    Looks great! The only problem is, you need to set it to check from June 22nd and December 22nd - the two solstaces as they are respectively, the longest and shortest days of the year. But, for rough and quick, great job!
  7. olseric

    Daylight Hours

    You'd think there would be a simple command for this, wouldn't ya? Â I mean, there's gotta be something in the internal game coding that drives the streetlamps in AUTO mode. I suppose if someone was ambitious, you could prolly figure it out simply by "waiting" in game and determining sunrise and sunset on both the summer and winter solstace and then calculating the rate of time increase between the two. Â I would suspect that it's set so it's a steady incline/decline. I just hope daylight savings time isn't in play here. ;) If I have some time in the next couple days, maybe I'll try and write out a function for it. If I do, I'll make sure you get a copy, sniper.
  8. I had to open that up and tweak it a bit. LOL! They were WAYYY to bright.
  9. olseric

    integer

    From OFPEC...
  10. olseric

    Hosting non-dedicated games on the internet

    Depends upon what you're using as a firewall, sniper. I know several people that even with firewalls "off" and routers properly configured still can not host games. I suspect this problem is due to either: A. Router not properly handling traffic. B. Firewall not off. I lean more towards option B as most firewalls comercially installed never really do remove themselves.
  11. olseric

    Dynamic Object Names

    It works. Thanks!
  12. I need an expert opinion on this one. I'm trying to make targets randomly pop-up in a given time frame...in short, the problem that I'm having is the script won't acknowledge the dynamically generated object names. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">target1 setdammage 0.8 Will work just fine...but... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_targetname = target1 _targetname setdammage 0.8 Will not work at all. Suggestions? Â Ideas? Â I think the easy way would be to get the now string value variable converted back to an object, however, I can't seem to figure out how. Â Furthermore, I have already considered passing an array to it, however, I want to somehow "short form" this. Thanks for your help in advance.
  13. olseric

    Dynamic Object Names

    Okay, tried that, no avail. I should add this. The error that I'm getting is an "Object Expected, Sting Presented" one. Basically, what I'm doing to create the random object selector is taking a number and slapping it on the end of target using the format command...i.e. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_thistarget = format ["target%1",_number]; Apparently, this is causing it to be treated as a string. So, the question of the day is, is there some way to change the variable type? Or, is there a way to join two variables to achieve my overall goal here?
  14. Okay, I feel stupid. How do you use this command effectively? Here's what I'm trying to do: Find the object nearest to a jeep without actually choosing the jeep. Everytime I put it in, all I get back for a return is the jeep itself. Any help would be appreciated. Thanks, Eric
  15. olseric

    Nearest object

    Just a thanks guys...I did eventually get it to work. The nearestobject (myguy,"string") format didn't work for me. Â Couldn't get it to work correctly. Â But, as I am doing a towing script, I fixed the problem by using x,y,z format and specifing a spot 15m behind me. Â Works great now. Basically, what I created it for was the Nimitz carrier. Â I found that my deck got clutted because I couldn't put the planes away after landing. Â Now, I can tow them around. If anyone wants the script, just drop me a line: Â olseric@charter.net -Eric
  16. olseric

    Nearest object

    Let's try and break this down: Obviously, _o is returning the nearest object to the jeep, with whatever _x stands for. What does _x stand for here? The _distatk is measuring the distance from the jeep to the object...I got that. Next it's checking to make sure it's within range, and if so, assigns _object to the value of _o, sorting for A10's. If I got that right, great. If not, tell me what I'm missing...especially that _x...I should be able to put something there according to the command ref, or, am I misreading that?
  17. olseric

    Nearest object

    Okay, I see what you're saying now. What I'm trying to do is implement this into a towing script. Â Right now, I have it so I can tow one object with the jeep. Â This is because the object is defined in the script. Â What I want to do is have dynamic assignment to the object to be towed based upon it being closest to my tow truck. Â Bottom line is, I can't turn planes around on the deck of the Nimitz...I need a tug. So, with that in mind, theoretically, if I wrote <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">nearestObject[myJeep,"A10"] it would find the nearest A10. Â But, if what you're saying is correct, I can't use it to find, say, the nearest aircraft. Is it possible to designate that "type" as an array? Â With a loop, I know it is, but just as written? If the above isn't possible, then I guess I'll have to revert to square one and using the x,y,z format. Thanks for your help.
  18. olseric

    Watchtower lookout question

    If you don't want the object in the game, create it as a Game Logic unit (from the editor). That way it's there, but, not.
  19. olseric

    Nearest object

    I see what you're saying...basically, from the snippet that you posted there, you're using the X,Y,Z format of nearestObject. There is *supposedly* a second format as well, similar to nearestObject [objectname,"type"] The problem is, type means nothing to me and I can't seem to find anything in the editing references to this. I've thought about using the X,Y,Z format, but I feel the other way would be more efficient...if at all possible. Any further thoughts?
×