To the dev's- Pitstop repair?

Discussion in 'Ideas and Suggestions' started by theWOODman, Oct 20, 2013.

  1. theWOODman

    theWOODman
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    91
    I know that the devs are working on triggers at the moment so I was wondering if it would be possible to code some type of triggering system to automatically repair a damaged car after a given "x" amount of time. My thought on that was to be able to create a pit stop of sorts with maybe a car sized trigger box so when you pull into it and stop, it will repair the damage instead of using the reset button.

    My thought is that when we eventually have multiplayer capability, you don't want people being able to instantly repair damage because of sloppy driving ( like myself ) by hitting control+R and then continuing on with the race. By creating maps with maybe a couple of garages/pits strategically placed about the map, people with damaged cars could pull into the pits, wait a few seconds ( a wait penalty ) and then continue on.

    Your thoughts?
     
  2. Davidbc

    Davidbc
    Expand Collapse

    Joined:
    Mar 20, 2013
    Messages:
    1,332
    Good idea, but I think we won't see online in months if not years.
     
  3. metalmuncher

    metalmuncher
    Expand Collapse

    Joined:
    Aug 6, 2012
    Messages:
    257
    I think that the trigger system will be tied into lua, and since the repair button is just tied into a lua function it should be easy to repair, refuel, and otherwise change the attributes of a vehicle.
     
  4. Captain

    Captain
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    18
    That sounds entirely doable. Even if the devs don't add it you could probably do it your self once the scripting system in implemented.
     
  5. Incognito

    Incognito
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    246
    Triggers are working now. For example, the following code will return the car (with id = 0) to the spawn (CTRL + I):
    Code:
    local b = BeamEngine:getSlot(0)
        if b ~= nil then
            b:queueLuaCommand("obj:requestReset(RESET_PHYSICS)")
        end
    
    I will ask tdev, is it possible to reset the car in place by the LUA (like CTRL + R).
     
  6. theWOODman

    theWOODman
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    91
    Sounds promising, but I wonder if that could still be done without it effecting the respawn. In other words if you manually repair the vehicle would it take you back to the pit/repair station?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice