Jump to content
Heads Up! This website is no longer maintained, if your a member from our era, consider joining the discord to say hello.
Sign in to follow this  

v1.16.1 Functions/Offsets/Notes

Recommended Posts

I figure i'll post this since its my first time :(.

 

BWFXN_PrintText			dd 48D0C0h
BWFXN_PlaySound		dd 48ED50h
BWFXN_Center		dd 48D1C0h
IssueCommand		dd 485BD0h
ptrGameState		dd 6D11ECh

 

BWTextDisplay proc			TextM:DWORD

	xor eax, eax
	mov edi, TextM
	call dword ptr [BWFXN_PrintText]
ret

BWTextDisplay endp

 

MiddleTextDisplay proc			TextM:DWORD

		xor eax, eax
	or eax, 0FFFFFFFFh
	push 00h
	push TextM
	call dword ptr [BWFXN_MiddleText]
ret

MiddleTextDisplay endp

 

MapStart proc

invoke BWTextDisplay, CTEXT ("SakenDrop.dll hosted by Ghoztcraft.net")
	invoke BWTextDisplay, CTEXT ("Programmed by: Saken")
ret

MapStart endp

 

Hook for MapStart:

invoke JmpPatch, 4CE6B7h, addr MapStart

 

Set low latency

invoke SendAction, 85,0,0 ;Sets latency to low

 

SendAction proc	uses ecx	Param1:BYTE, Param2:BYTE, Param3:BYTE

mov ecx, 20001h
  	mov edx, 3
mov bl, Param1
  	mov byte ptr [ecx], bl
mov bl, Param2
mov byte ptr [ecx+1], bl
mov bl, Param3
mov byte ptr [ecx+2], bl
  	call dword ptr [IssueCommand]
ret

SendAction endp

 

 

JmpPatch proc	uses ecx ebx	from:DWORD, to:DWORD

mov	ebx, to
mov	ecx, from
add	ecx, 05h
sub	ebx, ecx
lea	ecx, lgJmp
mov	byte ptr [ecx], 0E9h
mov	dword ptr [ecx+1], ebx
invoke WriteMem, from, addr lgJmp, 5
ret

JmpPatch endp

Share this post


Link to post

Saken,

SendAction proc	uses ecx	Param1:BYTE, Param2:BYTE, Param3:BYTE

mov ecx, 20001h
   mov edx, 3
mov bl, Param1
   mov byte ptr [ecx], bl
mov bl, Param2
mov byte ptr [ecx+1], bl
mov bl, Param3
mov byte ptr [ecx+2], bl
   call dword ptr [IssueCommand]
ret

SendAction endp

 

Why do you "mov ecx, 20001h"?

Share this post


Link to post

I don't really know what any of this means, but. . . Welcom to GC! :(

Share this post


Link to post

wat does all that crap mean

Share this post


Link to post

It's just stuff to make text appear on your screen.

Share this post


Link to post

Oh. Hi! *WAVES*

Edited by Rdy2Killz

Share this post


Link to post

hello masser. please gtfo =D

Share this post


Link to post

Im not Promasser, also do anyone want a hack that disable your ability to multicommand workers. I'll make it toggle with source if you do just post here.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×