ItsMods

Full Version: Explosive Bullets
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Simply enables explsoive bullets (like the Osprey Gunner bullets)

- Requirements:
Addon v1.251+

Video:


Source code:
CSHARP Code
  1. using System;
  2. using Addon;
  3. using System.Runtime.InteropServices;
  4.  
  5. namespace ExplosiveBullets
  6. {
  7. public class ExBullets : CPlugin
  8. {
  9. [DllImport("kernel32.dll", SetLastError = true)]
  10. public static extern bool WriteProcessMemory(IntPtr hProcess, int lpBaseAddress, byte[] lpBuffer, int nSize, out int lpNumberOfBytesWritten);
  11.  
  12. public override void OnServerLoad()
  13. {
  14. int dwout = 0;
  15.  
  16. byte[] bytes = { 0x90, 0x90 };
  17. byte[] dembytes = { 0xC3 };
  18. WriteProcessMemory(((IntPtr)(-1)), 0x0046C1E3, bytes, bytes.Length, out dwout);
  19. WriteProcessMemory(((IntPtr)(-1)), 0x0046C1E9, bytes, bytes.Length, out dwout);
  20. WriteProcessMemory(((IntPtr)(-1)), 0x0046B624, dembytes, dembytes.Length, out dwout);
  21.  
  22. ServerPrint("Plugin: Explosive Bullets by Nukem loaded.");
  23. }
  24. }
  25. }


omg, that's good !

Video/Screenshot?

(01-21-2012, 19:44)Se7en Wrote: [ -> ]omg, that's good !

Video/Screenshot?

You can't really show a screenshot of this...and I have nothing to record a video for this.
Theater mode.
i tested it with him and it is like HC ricochet but awesomeness involved.
Explsoive
I use an interpreter and I can not understand what it is.
You can plug more describe and give the command?
(01-21-2012, 21:47)gato Wrote: [ -> ]I use an interpreter and I can not understand what it is.
You can plug more describe and give the command?

It writes to its own memory, that's all there is.
You need to have the adress and a value to change the adress to in able to do this process.
nukem better do a no-knife plugin that will be the best for sniper servers
Code & DLL updated, the turret error should be fixed now.
Pages: 1 2