03-05-2012, 19:15
(This post was last modified: 09-13-2012, 19:24 by blueberry9.)
i updated my sprint extend plugin to run on @Nukem's MW3 Server Addon version 1.413 with the 1.9.446 patch.
again, many thanks to @zxz0O0 for helping me out and for the offset.
new download link below.
This plugin extends the sprint duration to 17 seconds.
i tested it. it works.
source code updated.
The normal sprint duration is around 4 seconds.
It's near 8 seconds if you use the the extreme-
conditioning perk.
This plugin gives you more than double that duration.
And, more than 4 times the normal sprint duration.
No matter what weapon or perks you're using.
Requirements:
@Nukem's dedicated server addon v1.413
No commands needed.
Place the sprintExtend_1.5.dll in your plugins folder.
Enjoy.
A truckload of thanks to @zxz0O0.
This is my first plugin. I'm new to C# and coding.
I couldn't have made this plugin without his help!
Source code
again, many thanks to @zxz0O0 for helping me out and for the offset.
new download link below.
This plugin extends the sprint duration to 17 seconds.
i tested it. it works.
source code updated.
The normal sprint duration is around 4 seconds.
It's near 8 seconds if you use the the extreme-
conditioning perk.
This plugin gives you more than double that duration.
And, more than 4 times the normal sprint duration.
No matter what weapon or perks you're using.
Requirements:
@Nukem's dedicated server addon v1.413
No commands needed.
Place the sprintExtend_1.5.dll in your plugins folder.
Enjoy.
A truckload of thanks to @zxz0O0.
This is my first plugin. I'm new to C# and coding.
I couldn't have made this plugin without his help!
Source code
Code:
using System;
using System.Runtime.InteropServices;
using System.Security;
using Addon;
//Compile with /unsafe
//And a reference to "addon/dist/addon.dll"
namespace SprintExtend_1_4
{
public class Program : CPlugin
{
[DllImport("kernel32.dll", SetLastError = true)]
public static extern bool WriteProcessMemory(IntPtr hProcess, int lpBaseAddress, byte[] lpBuffer, int nSize, out int lpNumberOfBytesWritten);
public override void OnMapChange()
{
SetDvar("perk_sprintMultiplier", "999");
}
unsafe public override void OnServerLoad()
{
ServerPrint("Plugin: SprintExtend_1.4 by blueberry9 & zxz0O0 loaded.");
int oP;
byte[] bytes = { 0x90, 0x90 };
WriteProcessMemory(((IntPtr)(-1)), 0x40C8D7, bytes, bytes.Length, out oP);
}
}
}