Jump to content

Removed


ProHunter

Recommended Posts

There is no resource called ("Auto - B") , it's just a modified race resource copy

if you want to let the last player keep driving until he lose , follow this steps

1 - go into this path

\mods\deathmatch\resources\[gamemodes]\[race]\race\modes

2 - open destructionderby.lua for editing

3 - find this function DestructionDerby:onPlayerWasted and replace it with

function DestructionDerby:onPlayerWasted(player) 
    if isActivePlayer(player) then 
        self:handleFinishActivePlayer(player) 
        if getActivePlayerCount() <= 0 then 
            RaceMode.endMap() 
        else 
            TimerManager.createTimerFor("map",player):setTimer(clientCall, 2000, 1, player, 'Spectate.start', 'auto') 
        end 
    end 
    RaceMode.setPlayerIsFinished(player) 
    showBlipsAttachedTo(player, false) 
end 

4 - also find this function DestructionDerby:onPlayerQuit , replace it with

function DestructionDerby:onPlayerQuit(player) 
    if isActivePlayer(player) then 
        self:handleFinishActivePlayer(player) 
        if getActivePlayerCount() <= 0 then 
            RaceMode.endMap() 
        end 
    end 
end 

5 - save the file , done.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...