Sign in to follow this  
Followers 0
aLTis

Vehicle boosting

Hold crouch key to boost while in a vehicle. Only works when the vehicle is on the ground, moving and not flipped over. Add the vehicles you want to VEHICLES table and set their boost rate to whatever you think fits it.

 

boost.lua

 

tarikja, Takka, Aer and 1 other like this

08f9474ede.jpg

Share this post


Link to post
Share on other sites

Tiddy-bits:

Updated the script. Turns out giraffe was right about driver seat checking, in the old version of the script the more passengers the vehicle had - the baster it boosted lol. Also added FLYING_VEHICLES table which should be used for ghosts and other vehicles that don't touch the ground while moving.


08f9474ede.jpg

Share this post


Link to post
Share on other sites

Looks quite fun!

 

If I had anything to say, it's this particular line:

local name = read_string(read_dword(read_word(vehicle) * 32 + 0x40440038))

On some protected maps, this line will crash the game, because this relies on the tag array being at the default location. However, the tag array is not guaranteed to be in this location.

 

I'd do either:

local name = read_string(read_dword(lookup_tag(read_dword(vehicle)) + 16))

or

local name = read_string(read_dword(read_word(vehicle) * 32 + read_dword(0x40440000) + 16))

 

This is certainly not a big deal - there are probably less than 5 maps floating around that actually use the protection scheme I'm talking about.

aLTis and Takka like this

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.