Raised This Month: $ Target: $400
 0% 

[Orpheu] Problem with signature.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owner123
Member
Join Date: Jun 2010
Old 12-31-2010 , 05:06   [Orpheu] Problem with signature.
Reply With Quote #1

Can anyone help me to write correct this sig ? :
Code:
{
    "name" : "PlaybackEvent",
    "library" : "engine",
    "arguments" :
    [
        {
            "type" : "int"
        },
        {
            "type" : "edict_t *"
        },
        {
            "type" : "unsigned short"
        },
        {
            "type" : "float"
        },
        {
            "type" : "float"
        },
        {
            "type" : "float"
        },
        {
            "type" : "float"
        },
        {
            "type" : "float"
        },
        {
            "type" : "int"
        },
        {
            "type" : "int"
        },
        {
            "type" : "int"
        },
        {
            "type" : "int"
        }
    ]
}
__________________
Sorry for my bad english !
Owner123 is offline
Old 12-31-2010, 05:21
lazarev
This message has been deleted by lazarev. Reason: asd
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-31-2010 , 06:41   Re: [Orpheu] Problem with signature.
Reply With Quote #2

Replace unsigned short by int, it should work.

By the way, unless you have a specific reason to use it, it exists already in fakemeta.
__________________
Arkshine is offline
Owner123
Member
Join Date: Jun 2010
Old 12-31-2010 , 06:46   Re: [Orpheu] Problem with signature.
Reply With Quote #3

But in fakemeta this is executed after this. I want to block this function for fire sounds.
BTW. Dont work.
I get this error:
Quote:
L 12/31/2010 - 12:49:52: [ORPHEU] Invalid function structure "PlaybackEvent"
L 12/31/2010 - 12:49:52: [AMXX] Displaying debug trace (plugin "orpheu_block.amxx")
L 12/31/2010 - 12:49:52: [AMXX] Run time error 10: native error (native "OrpheuCreateFunction")
L 12/31/2010 - 12:49:52: [AMXX] [0] orpheu_stocks.inc::OrpheuGetEngineFunction (line 34)
L 12/31/2010 - 12:49:52: [AMXX] [1] orpheu_block.sma::plugin_init (line 10)
__________________
Sorry for my bad english !
Owner123 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-31-2010 , 07:03   Re: [Orpheu] Problem with signature.
Reply With Quote #4

Change also edict_t * to edict_s *

By the way, FM_* are just wrappers to engine calls, so it's the same and you can't block fire sound because there are played client side.
__________________
Arkshine is offline
Owner123
Member
Join Date: Jun 2010
Old 12-31-2010 , 07:34   Re: [Orpheu] Problem with signature.
Reply With Quote #5

I know, block fire sounds is possible because i play on server which block this sounds :S

This still dont work.
__________________
Sorry for my bad english !
Owner123 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-31-2010 , 08:15   Re: [Orpheu] Problem with signature.
Reply With Quote #6

No that's not possible. You can block the whole weapon and make your own weapon + sounds etc, but for the default weapon you can't block just the sounds because played client-side and so unhookable.

If you replace unsigned short -> int and edict_t -> edict_s, the sig works and the forward well called, but superceding will do nothing.
__________________
Arkshine is offline
Owner123
Member
Join Date: Jun 2010
Old 12-31-2010 , 08:32   Re: [Orpheu] Problem with signature.
Reply With Quote #7

Hmmm, but i have plugin which changing weapon models etc. but when i want play custom fire sound, old sound play too. I want to block thats old fire sounds.

What about sig, I still have error which I post up.
__________________
Sorry for my bad english !
Owner123 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-31-2010 , 08:35   Re: [Orpheu] Problem with signature.
Reply With Quote #8

You have no choice to redo the whole weapon if you want custom sounds and such.
__________________
Arkshine is offline
Owner123
Member
Join Date: Jun 2010
Old 12-31-2010 , 08:58   Re: [Orpheu] Problem with signature.
Reply With Quote #9

Ehh, thanks for info.
__________________
Sorry for my bad english !
Owner123 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 01:57.


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