ItsMods

Full Version: Jump | Speed | Gravity
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Who can help me with disabling FallDamage
I tried to find the value with IDA, but did not find...

PHP Code:
//All game versions
using Addon;
using System;

namespace 
JSG
{
    public class 
JSG CPlugin
    
{

        public static 
unsafe int Gravity
        
{
            
get
            
{
                return *(
int*)(IntPtr)(4679878);
            }
            
set
            
{
                *(
int*)(IntPtr)(4679878) = value;
            }
        }
        public static 
unsafe int Speed
        
{
            
get
            
{
                return *(
int*)(IntPtr)(4677866);
            }
            
set
            
{
                *(
int*)(IntPtr)(4677866) = value;
            }
        }

        public static 
unsafe float JumpHeight
        
{
            
get
            
{
                return *(
float*)(IntPtr)(7186184);
            }
            
set
            
{
                *(
float*)(IntPtr)(7186184) = value;
            }
        }

        public 
unsafe JSG()
        {
            *(
sbyte*)(IntPtr)(5132827) = (sbyte)-21;
        }
    }