Welcome to Open Carnage

A resource for Halo Custom Edition and MCC modding, with unique means of rewarding content creation and support. Have a wander to see why we're worth the time! - EST. 2012

Sign in to follow this  
Followers 0

Velocity Changer

heres a simple velocity changer that I wrote:

clua_version = 1.0;
set_callback("tick", "OnTick");
adjustedSpeed = false;
player = nil;
velocityMultiplier = 5;
playerSpeed = nil;
function OnTick()
    local object = get_player();
    if object ~= nil then
        if adjustedSpeed == false then
            playerSpeed = read_float(object + 0x6C);
            write_float(object + 0x6C, playerSpeed * velocityMultiplier);
            adjustedSpeed = true;
--        cout("object is returning nil");


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.