Raised This Month: $7 Target: $400
 1% 

Solved Block function call


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 06-30-2017 , 04:51   Block function call
Reply With Quote #1

How can I block the execution of a particular server function?

Example:
Code:
.text:00893280                               ; =============== S U B R O U T I N E =======================================
.text:00893280
.text:00893280                               ; Attributes: bp-based frame
.text:00893280
.text:00893280                               ; _DWORD __cdecl Music::OnSmokerSpawn(Music *this)
.text:00893280                               _ZN5Music13OnSmokerSpawnEv proc near    ; DATA XREF: .rodata:00C93D5Co
[...]
.text:008935A0                               loc_8935A0:                             ; CODE XREF: Music::OnSmokerSpawn(void)+7Fj
.text:008935A0 F3 0F 11 45 D8                                movss   [ebp+var_28], xmm0
.text:008935A5 89 34 24                                      mov     [esp], esi      ; this
.text:008935A8 E8 73 CB CB FF                                call    _ZNK14CountdownTimer3NowEv ; CountdownTimer::Now(void)
.text:008935AD F3 0F 10 45 D8                                movss   xmm0, [ebp+var_28]
.text:008935B2 D9 5D D4                                      fstp    [ebp+var_2C]
.text:008935B5 F3 0F 10 4D D4                                movss   xmm1, [ebp+var_2C]
.text:008935BA F3 0F 58 C8                                   addss   xmm1, xmm0
.text:008935BE 0F 2F 8B 2C 01 00 00                          comiss  xmm1, dword ptr [ebx+12Ch]
.text:008935C5 0F 85 6D 01 00 00                             jnz     loc_893738
I want to block a call _ZNK14CountdownTimer3NowEv. How can i do this?
Maybe this can be done by the function of the sourcemod? Example, StoreToAddress? But how?

UPD: Solved!
StoreToAddress(Address, 0x90, NumberType_Int; etc.

Last edited by Accelerator; 06-30-2017 at 05:33.
Accelerator is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode