AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Orpheu] Call CGrenade::Detonate (https://forums.alliedmods.net/showthread.php?t=189378)

fl0werD 07-06-2012 12:40

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

Sorry for my bad english: (

:cry::cry:

Arkshine 07-06-2012 12:56

Re: [Orpheu] Call CGrenade::Detonate
 
Such funcion is not virtual. You have to use the signature.

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

fl0werD 07-06-2012 13:07

Re: [Orpheu] Call CGrenade::Detonate
 
Thank you very much! But the sound of the explosion and the explosion sprite, and the game closes.

fl0werD 07-06-2012 13:12

Re: [Orpheu] Call CGrenade::Detonate
 
Oh, I was wrong, everything works fine, just blew the player XD. Thanks!

Arkshine 07-06-2012 13:13

Re: [Orpheu] Call CGrenade::Detonate
 
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.

fl0werD 07-06-2012 13:18

Good.

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

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

Bos93 07-06-2012 18:06

Re: [Orpheu] Call CGrenade::Detonate
 
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?

ConnorMcLeod 07-06-2012 18:26

Re: [Orpheu] Call CGrenade::Detonate
 
That sig is wrong.
See tutorial on how to make sigs.

Bos93 07-06-2012 18:45

Re: [Orpheu] Call CGrenade::Detonate
 
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?

Arkshine 07-06-2012 18:58

Re: [Orpheu] Call CGrenade::Detonate
 
Quote:

Originally Posted by Bos93 (Post 1744950)
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


All times are GMT -4. The time now is 15:07.

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