Jump to content

tonnic

Community Member
  • Posts

    7
  • Joined

  • Last visited

  • Donations

    0.00 GBP 

Posts posted by tonnic

  1. I would rather look at accelerated time instead of a random start-time.

     

    It should be possible to speed-up the game-time so the day last about 2 hours, and the dawn&dust period to cover a total of 1 hour (30min to go dar, and 30min to get light again) while skipping the actual night itself.

     

    Unfortunately i didnt yet have the time to experiment with this myself, but the scripting-tools are there, just have a look on the wiki searching for "time" related functions.

     

    PS: Jester is right about your server reboots, i recommend you look at what statistically is your lowest player numbers, and reboot once a day max, in the middle of your slack-period.

     

     

    If you know how to do this, that would be awesome,....maybe not every 2 hours, but every 4 hours or so?.    In regards to the server restarts, I do put up 30 min, 15 min, 10 min, 5 min, 2 min, 1 min, 30 sec, 15 sec, 10 sec, 9 sec, 8 sec, 7 sec, 6 sec, 5 sec, 4 sec, 3 sec, 2 sec, and 1 sec warnings on the server :P.

     

    I had it restart 4 times a day just to ensure server performance, but I just changed it to 1 time at night (5am pst) and I'll keep an eye on performance.    Anyways, how would someone get the day cycle to go much faster?

  2. Is there a way that I can edit the file somewhere to have the start time random?   People sometimes like playing day/night and I have my server reboot often.. If I'm not on the server when it restarts, then I can't change the time...  is there a more elegant solution by adding a 'random' start time?

  3. Hey no problem, we've all been there.

     

    There is a couple of ways, one scripted definite way and the other is more of an ethical fix. Your pilots should be in the pilot seat of their aircraft correct? so they can lock the controls or unlock at their will, however if your pilots are (for some reason) doing something they shouldn't be, another player will happily highlight this for you and take his helicopter away from the undeserving pilot.

     

    As for the scripting way, it would be similar to the aforementioned however with a difference (i can't remember off the bat what it would say) here:

     

    if (driver _v == player) then { // if player is driver of that vehicle

    I would say the ethical solution fares better though! :)

     

    The problem lies when a helo goes down and people are spawn camping the helos and jump in them before the pilot gets into the helicopter..  Perhaps not allowing the 'take controls' unless you are a pilot. ...  unfortunately I have never scripted for Arma... where could you point me to look into this further?

  4. The report button is to report topics with questionable content so as they can be looked at by admins in a timely fashion. Not to report that your server isn't working. 

    For example one might report this post for being excessively troll like.

    Note: don't report for excess trolling I was demonstrating an example. 

     

    Ya sorry, I thought I hit reply and then I noticed it didn't show here... my bad.

     

     

     

     

     

    This line doesn't work any more, see the post above your last post for the fix, I''m not sure how you missed it but there's the fix

     

     

     

    ...omg.... I posted the wrong one......it's one of those weeks...

     

     

     

     

     

     

    OK.....now that I have facepalmed a couple of times and let this week catch up to me.... sorry again guys......     Is there a way to prevent people bypassing the pilot slot by jumping in as co-pilot and then taking controls?

  5. This is what my pilotCheck.sqf looks like and it still doesn't work.   I'm using 2.65b Altis.

     

    /*
          ::: ::: :::             ::: :::             :::
         :+: :+:   :+:           :+:   :+:           :+:
        +:+ +:+     +:+         +:+     +:+         +:+
       +#+ +#+       +#+       +#+       +#+       +#+
      +#+ +#+         +#+     +#+         +#+     +#+
     #+# #+#           #+#   #+#           #+#   #+#
    ### ###             ### ###             ### ###
     
    | AHOY WORLD |
     
    PilotCheck.sqf was created by Kamaradski [AW]
    You may alter, use or change this code as you wish as long as you keep the original authors name in it.
     
    */
     
    kARRdisallowed = ["B_Heli_Transport_01_F","I_Heli_Transport_02_F","B_Heli_Transport_01_camo_F","B_Heli_Light_01_armed_F","B_Heli_Light_01_F"];
     
    while {true} do {
    waitUntil {sleep 0.5; alive player}; // wait till player is alive
    if (typeOf player != "B_Helipilot_F") then { // if player is type of pilot
    private "_v"; // set _v for this client only (private)
    while {alive player} do { // as long as player is alive
    waitUntil {sleep 0.5; vehicle player != player}; // wait till player enters a vehicle
    kSTRvehname = typeOf vehicle player; // Get vehicle classname of current vehicle
    _v = vehicle player; // SET _v as the vehicle the player is in
    if ( kSTRvehname in kARRdisallowed ) then { // if the vehicle is in the dis-allowed list
    if (driver _v == player) then { // if player is driver of that vehicle
    player action ["eject", _v]; // eject player
    waitUntil {sleep 0.5; vehicle player == player}; // wait till player is booted out of the vehicle
    player action ["engineOff", _v]; // turn off the engine of the vehicle
    hint "You must be a pilot to fly!"; // message on screen
    };
    };
    };
    } else { // if player is not pilot
    waitUntil {sleep 0.5; !alive player}; // Wait till player is alive
    };
    };
×
×
  • Create New...