ItsMods
[Release] Jumpheight - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: [Release] Jumpheight (/Thread-Release-Jumpheight.html)

Pages: 1 2


Jumpheight - JariZ - 01-02-2012



Credits
- @Nukem
- @JariZ

Download

.zip   JumpHack.zip (Size: 2.12 KB / Downloads: 556)

Source (on request of @zxz0O0)
Code:
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using Addon; namespace plugin_test { //"<class name> : CPlugin" is needed to inherit the functions public class plugin_test : CPlugin { //Example overrides for functions public override void OnServerFrame() { } [DllImport("kernel32.dll")] static extern bool VirtualProtect(IntPtr lpAddress, uint dwSize, uint flNewProtect, out uint lpflOldProtect); unsafe public override void OnServerLoad() { ServerPrint("Plugin: Jumpheight by Nukem & JariZ loaded"); uint lol = 0; uint size = 0x4; uint pro = 0x40; IntPtr addr = (IntPtr)0x6DA708; IntPtr addr2 = (IntPtr)0x6D9634; IntPtr addr3 = (IntPtr)0x6DE490; plugin_test.VirtualProtect(addr, size, pro, out lol); plugin_test.VirtualProtect(addr2, size, pro, out lol); plugin_test.VirtualProtect(addr3, size, pro, out lol); *(float*)0x6DA708 = 1000.0f; *(float*)0x6D9634 = 999999.0f; *(float*)0x6DE490 = 1000000.0f; } public override ChatType OnSay(string Message, ServerClient Client) { return Addon.ChatType.ChatContinue; } public override string OnCheckBan(string xuid) { //Return a string if the player is banned //otherwise return null //xuid = xuid in the "status" command return null; } } }



RE: Jumpheight - Pozzuh - 01-02-2012

Cool, you should make a config setting to change the height though.


RE: Jumpheight - nyu_vo - 01-02-2012

my server wont loaded :\


RE: Jumpheight - JariZ - 01-02-2012

@nyu_vo Did you update it already?
It uses the new API


RE: Jumpheight - nyu_vo - 01-02-2012

ye have update to 1.15, but server console not show on startup plugins loaded..


RE: Jumpheight - krzy - 01-02-2012

awesome i cant wait to use this


RE: Jumpheight - barata - 01-02-2012

Recorded with a toaster Troll

OnTopic:

You guys are getting better, maybe i get back to play MW "three" again.

Thanks Barata...


RE: Jumpheight - JariZ - 01-02-2012

@barata haha, 240p FTW


RE: Jumpheight - zxz0O0 - 01-03-2012

I'd love to see source code like with your previous plugins.


RE: Jumpheight - Pozzuh - 01-03-2012

It's basically this
Code:
//This lowers the protection level of the adress so you can change it. IntPtr jumpheight = (IntPtr)0x??????;//the jump height address uint size = 4; //size is 4 bytes because the value is a float. uint newProtect = 0x40; uint oldProtect = 0; VirtualProtect(jumpheight, size, newProtect, out oldProtect); //The change: *(float*)0x?????? = 1000f;//the jump height address