Raised This Month: $ Target: $400
 0% 

[Orpheu] Call CGrenade::Detonate


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fl0werD
Senior Member
Join Date: May 2011
Old 07-06-2012 , 12:40   [Orpheu] Call CGrenade::Detonate
Reply With Quote #1

Hello, I want to use a virtual function with orpheu, namely: "CGrenade :: Detonate". How do I do?

Sorry for my bad english: (

fl0werD is offline
Send a message via ICQ to fl0werD
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-06-2012 , 12:56   Re: [Orpheu] Call CGrenade::Detonate
Reply With Quote #2

Such funcion is not virtual. You have to use the signature.

See, https://forums.alliedmods.net/showpo...2&postcount=11, it should help.
__________________

Last edited by Arkshine; 07-06-2012 at 12:58.
Arkshine is offline
fl0werD
Senior Member
Join Date: May 2011
Old 07-06-2012 , 13:07   Re: [Orpheu] Call CGrenade::Detonate
Reply With Quote #3

Thank you very much! But the sound of the explosion and the explosion sprite, and the game closes.
fl0werD is offline
Send a message via ICQ to fl0werD
fl0werD
Senior Member
Join Date: May 2011
Old 07-06-2012 , 13:12   Re: [Orpheu] Call CGrenade::Detonate
Reply With Quote #4

Oh, I was wrong, everything works fine, just blew the player XD. Thanks!
fl0werD is offline
Send a message via ICQ to fl0werD
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-06-2012 , 13:13   Re: [Orpheu] Call CGrenade::Detonate
Reply With Quote #5

If you expect some help, start to give concrete informations on what you're doing. Saying it crashes without the context/code, doesn't help.
__________________
Arkshine is offline
fl0werD
Senior Member
Join Date: May 2011
Old 07-06-2012 , 13:18  
Reply With Quote #6

Good.

MERGE EDIT 1:
From the explosion damage is not applied.

MERGE EDIT 2:
Can be used ShootTimed2? Signature, please.

Last edited by YamiKaitou; 07-06-2012 at 16:56.
fl0werD is offline
Send a message via ICQ to fl0werD
Bos93
Veteran Member
Join Date: Jul 2010
Old 07-06-2012 , 18:06   Re: [Orpheu] Call CGrenade::Detonate
Reply With Quote #7

Arkshine, please help me to create the signature, I think that I made it incorrectly

CGrenade__ShootTimed2
Code:
.text:1008A650                                                                       ; sub_1008B150+B4o ...
.text:1008A650
.text:1008A650                               var_18          = dword ptr -18h
.text:1008A650                               var_14          = dword ptr -14h
.text:1008A650                               var_10          = dword ptr -10h
.text:1008A650                               var_8           = dword ptr -8
.text:1008A650                               var_4           = dword ptr -4
.text:1008A650                               arg_0           = dword ptr  4
.text:1008A650
.text:1008A650 8B 44 24 04                                   mov     eax, [esp+arg_0]
.text:1008A654 83 EC 18                                      sub     esp, 18h
.text:1008A657 8B 50 04                                      mov     edx, [eax+4]
.text:1008A65A 55                                            push    ebp
.text:1008A65B 56                                            push    esi
.text:1008A65C 8B F1                                         mov     esi, ecx
.text:1008A65E 8B 8A 08 02 00 00                             mov     ecx, [edx+208h]
.text:1008A664 57                                            push    edi
.text:1008A665 8B 6E 04                                      mov     ebp, [esi+4]
.text:1008A668 3B 8D 98 01 00 00                             cmp     ecx, [ebp+198h]
.text:1008A66E 0F 84 83 02 00 00                             jz      loc_1008A8F7
.text:1008A674 A1 B8 25 16 10                                mov     eax, dword_101625B8
.text:1008A679 8B 0A                                         mov     ecx, [edx]
.text:1008A67B 53                                            push    ebx
.text:1008A67C BF 74 24 11 10                                mov     edi, offset aFunc_breakab_0 ; "func_breakable"
.text:1008A681 8B 80 98 00 00 00                             mov     eax, [eax+98h]
.text:1008A687 03 C1                                         add     eax, ecx




Code:
[0x8b, 0x44, "*", "*", 0x83, 0xec, "*", 0x8b, 0x50, "*", 0x55, 0x56, 0x8b,0xf1, 0x8b, 0x8a, "*", "*","*","*",0x57,0x6e,"*",0x3b,0x8d,0x98,"*","*","*","*",0x84,0x83,"*","*","*",0xa1,0xb8,0x25,0x16,0x10,0x8b,"*",0x53,0xbf,0x74,"*","*","*",0x8b,0x80,0x98,"*","*","*","*",0xc1]
COuld you explain when I need to use "*"

Arskhine please help me to make a complete signature?
__________________

Last edited by Bos93; 07-06-2012 at 18:13.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-06-2012 , 18:26   Re: [Orpheu] Call CGrenade::Detonate
Reply With Quote #8

That sig is wrong.
See tutorial on how to make sigs.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 07-06-2012 , 18:45   Re: [Orpheu] Call CGrenade::Detonate
Reply With Quote #9

I have read this, and succeeded:


[0x8b, 0x44, "*", "*", 0x83, 0xec, 0x18, 0x8b, 0x50, "*", 0x55, 0x56, 0x8b,0xf1, 0x8b, 0x8a, "*", "*","*","*",0x57,0x8b,"*",0x3b,0x8d,"*","*"," *","*",0x0f,"*","*","*","*","*",0xa1,0xb8,"*" ,"*","*",0x8b,0x0a,0x53,0xbf,0x74,"*","*","*" ,0x8b,0x80,"*","*","*","*",0x03,0xc1]

Where is my error?
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-06-2012 , 18:58   Re: [Orpheu] Call CGrenade::Detonate
Reply With Quote #10

Quote:
Originally Posted by Bos93 View Post
Arkshine, please help me to create the signature, I think that I made it incorrectly



Code:
[0x8b, 0x44, "*", "*", 0x83, 0xec, "*", 0x8b, 0x50, "*", 0x55, 0x56, 0x8b,0xf1, 0x8b, 0x8a, "*", "*","*","*",0x57,0x6e,"*",0x3b,0x8d,0x98,"*","*","*","*",0x84,0x83,"*","*","*",0xa1,0xb8,0x25,0x16,0x10,0x8b,"*",0x53,0xbf,0x74,"*","*","*",0x8b,0x80,0x98,"*","*","*","*",0xc1]
COuld you explain when I need to use "*"

Arskhine please help me to make a complete signature?

Funcion is exported, so you don't need signatures, but the symbol name :
Code:
ShootTimed2__8CGrenadeP9entvars_sG6VectorT2fiUs
__________________
Arkshine is offline
Reply



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 15:07.


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