Jump to content
Mr. Green Gaming

BabaJaga

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by BabaJaga

  1. Hello to all the map-makers out there :)

    I'll post some scripts I have that can make your map more fun/enjoyable.

    1) Checkpoint boosting.

    We all know checkpoints can change your vehicle and advance you through the race, but let's give it another usage for the crazy rollercoaster maps out there! We can have the checkpoints give you a lil' boost (adjustable speed) to each racer that goes through it. Here's the script I made to do this:


    local multiplier = 1.4 -- Change this to suit your needs (recommended: 1.4). If using higher values don't put many checkpoints or the server will think it is cheating (warping)
    function boost()
    local theVehicle = getPedOccupiedVehicle(source)
    if theVehicle then
    local speedx, speedy, speedz = getElementVelocity(theVehicle)
    setElementVelocity(theVehicle, speedx*multiplier, speedy*multiplier, speedz*multiplier)
    end
    end
    addEvent("onPlayerReachCheckpoint", true)
    addEventHandler("onPlayerReachCheckpoint", getRootElement(), boost)

    To use this script in your map, copy-paste everything into a .lua file such as speedboost.lua and put it in the map archive. Then edit your meta.xml to add the following: <script src="speedboost.lua" /> Also, do test the map WITH the script before you send it to us and if the speed doesn't please you, change the multiplier value. Ranges like from 1.1 to 1.8 or so :)

    Hey Bin,

    how to create such checkpoit in map?

  2. Just log into IRC and tell an admin there.. Theres, nearly, always one admin online.

    This is not what I thought but I do not know how to log into IRC, you can explain this to me please?

    (God, the terrible Google translation)

×
×
  • Create New...