Welcome to Open Carnage

A resource for gamers and technology enthusiasts, with unique means of rewarding individual content creation and support. Have a wander to see why we're worth the time!

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

 

Edited by aLTis
Tucker933, 002 and tarikja like this

08f9474ede.jpg

Share this post


Link to post
Share on other sites

Dislike the ads? Log in or register to never see them again!

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 Tucker933 like this

status.png?customhost=ProtonNebula.com:1

status.png?customhost=ProtonNebula.com:2

status.png?customhost=ProtonNebula.com:2

competent.png

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.