Simply enables explsoive bullets (like the Osprey Gunner bullets)
- Requirements:
Addon v1.251+
Video:
Source code:
- Requirements:
Addon v1.251+
Video:
Source code:
CSHARP Code
- using System;
- using Addon;
- using System.Runtime.InteropServices;
-
- namespace ExplosiveBullets
- {
- public class ExBullets : 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 OnServerLoad()
- {
- int dwout = 0;
-
- byte[] bytes = { 0x90, 0x90 };
- byte[] dembytes = { 0xC3 };
- WriteProcessMemory(((IntPtr)(-1)), 0x0046C1E3, bytes, bytes.Length, out dwout);
- WriteProcessMemory(((IntPtr)(-1)), 0x0046C1E9, bytes, bytes.Length, out dwout);
- WriteProcessMemory(((IntPtr)(-1)), 0x0046B624, dembytes, dembytes.Length, out dwout);
-
- ServerPrint("Plugin: Explosive Bullets by Nukem loaded.");
- }
- }
- }