Jump to content

Final Destination 2 (free)


HunT

Recommended Posts

  • 3 weeks later...
Hey we've played it with 28 people but the roadtrain doesn't go fast enough, i blocked after hitting 1/2 of the people, mb try to iincrease the speed?

1. Kick Players With Low Fps :mrgreen:

2. change final_c.lua with this.

--[[ 
    ===================================================== 
    Race map name  : Final Destination 2  
    Autor  : ST3REO (the best mapper)  
    Build  : 22/02/2011 
    ===================================================== 
]]-- 
  
local root = getRootElement() 
local this = getThisResource() 
local resourceRoot = getResourceRootElement(this) 
local localPlayer = getLocalPlayer() 
local Marker = {} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        Marker[1] = createMarker(3524.8, -1776.4, 6, "corona", 10, 0, 0, 0) 
        Marker[2] = createMarker(3688.7, -1776.4, 6, "corona", 5, 0, 0, 0) 
         
         
    end 
) 
  
addEventHandler("onClientResourceStop", root, 
    function(res) 
        if res == this then 
             
             
     
     
     
      
        end 
    end 
) 
  
addEventHandler("onClientMarkerHit", root, 
    function(player, matchingDimension) 
        if not matchingDimension then return end 
         
        if player == localPlayer and isPedInVehicle(player) then 
            local vehicle = getPedOccupiedVehicle(player) 
  
             
            if source == Marker[1] then 
            setElementVelocity(vehicle, 0, 0, 0) 
                setVehicleTurnVelocity(vehicle, 0, 0, 0) 
                 
                setElementPosition(vehicle, 3524.8, -1776.4, 6) 
                setElementVelocity(vehicle, 2, 0, 0)  
             
             
                                 
                 
            elseif source == Marker[2] then 
            setElementVelocity(vehicle, 0, 0, 0) 
                setVehicleTurnVelocity(vehicle, 0, 0, 0) 
                 
  setElementPosition(vehicle, 3688.7, -1776.4, 6) <-- Marker  
  setElementVelocity(vehicle, -2, 0, 0)  <---- Velocity . . . Edit  pos. X  with   -2.5  or  -3   or -4 
                                 
                 
                             
            end 
        end 
    end 
) 
  
  

Link to comment
  • 2 weeks later...
to bad you couldnt use an object though to kick of the players, but i guess thats because the objects just go through the players?

Yup the physic SUX hard for the vehicles with objects (sux in general), I make a Giant door and replace a gta sa dynamic door. The door move a little, but the vehicle go through it :/ !

Its Okay with peds.

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...