public WeaponType FromSlot(int slot)
        {
            VarPointer type  = new VarPointer();
            VarPointer dummy = new VarPointer();

            Internal.Function.Call(0x04B8, _character, slot, type, dummy, dummy);

            return(this[(WeaponId)type.Value]);
        }
        public static Vector3 GetRightStick()
        {
            VarPointer x = new VarPointer();
            VarPointer y = new VarPointer();

            Internal.Function.Call(0x0494, 0, new VarPointer(), new VarPointer(), x, y);

            return(new Vector3((int)x, (int)y));
        }
Exemple #3
0
        public static Vector3 GetRightStick()
        {
            VarPointer x = new VarPointer();
            VarPointer y = new VarPointer();

            Internal.Function.Call(0x0494, 0, new VarPointer(), new VarPointer(), x, y);

            return new Vector3((int)x, (int)y);
        }
Exemple #4
0
        public Vector3 GetClosestCarPathWithHeading(ref float heading)
        {
            VarPointer pX = new VarPointer();
            VarPointer pY = new VarPointer();
            VarPointer pZ = new VarPointer();
            VarPointer pA = new VarPointer();

            Internal.Function.Call(0x03d3, this, pX, pY, pZ, pA);

            heading = (float)pA;

            return(new Vector3((float)pX, (float)pY, (float)pZ));
        }
Exemple #5
0
        public Vector3 GetClosestPathCoordinates(PathType type)
        {
            uint opcode = 0;

            switch (type)
            {
            case PathType.Car:
                opcode = 0x02c1;
                break;

            case PathType.Ped:
                opcode = 0x02c0;
                break;
            }

            VarPointer pX = new VarPointer();
            VarPointer pY = new VarPointer();
            VarPointer pZ = new VarPointer();

            Internal.Function.Call(opcode, this, pX, pY, pZ);

            return(new Vector3((float)pX, (float)pY, (float)pZ));
        }
Exemple #6
0
        public WeaponType FromSlot(int slot)
        {
            VarPointer type = new VarPointer();
            VarPointer dummy = new VarPointer();

            Internal.Function.Call(0x04B8, character, slot, type, dummy, dummy);

            return this[(WeaponID)type.Value];
        }
Exemple #7
0
        public Vector3 GetClosestPathCoordinates(PathType type)
        {
            uint opcode = 0;

            switch (type)
            {
                case PathType.Car:
                    opcode = 0x02c1;
                    break;
                case PathType.Ped:
                    opcode = 0x02c0;
                    break;
            }

            VarPointer pX = new VarPointer();
            VarPointer pY = new VarPointer();
            VarPointer pZ = new VarPointer();

            Internal.Function.Call(opcode, this, pX, pY, pZ);

            return new Vector3((float)pX, (float)pY, (float)pZ);
        }
Exemple #8
0
        public Vector3 GetClosestCarPathWithHeading(ref float heading)
        {
            VarPointer pX = new VarPointer();
            VarPointer pY = new VarPointer();
            VarPointer pZ = new VarPointer();
            VarPointer pA = new VarPointer();

            Internal.Function.Call(0x03d3, this, pX, pY, pZ, pA);

            heading = (float)pA;

            return new Vector3((float)pX, (float)pY, (float)pZ);
        }