AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Orpheu signature for ShootSatchelCharge (https://forums.alliedmods.net/showthread.php?t=298880)

Chemijs 06-24-2017 20:23

Orpheu signature for ShootSatchelCharge
 
Hello, i need a help with cs 1.6 orpheu module signature ( orpheu/functions/CGrenade/ShootSatchelCharge )
It appears that signature have changed.

Topic:
https://forums.alliedmods.net/showpo...71&postcount=6

signature for windows:
Code:

"value" : [0x83,0xEC,0x18,0x53,0x56,0x57,0xFF,"*","*","*","*","*",0x33,0xDB,0x3B,0xC3,0x75,0x04,0x33,0xFF,0xEB,0x06,0x8D,"*","*","*","*","*",0x8B]
works perfectly, but linux:
Code:

"value" : "ShootSatchelCharge__8CGrenadeP9entvars_sG6VectorT2"
dont work:
Code:

Parsing folder "CGrenade" started
                        Parsing file "ShootSatchelCharge" started
                                Argument type "entvars_s *" validated
                                Argument type "Vector" validated
                                Argument type "Vector" validated
                                Return type "CGrenade *" validated
                                Searching for name "ShootSatchelCharge__8CGrenadeP9entvars_sG6VectorT2"... NOT FOUND
                        Parsing file "ShootSatchelCharge" ended
                Parsing folder "CGrenade" ended

I tried signature from:
https://forums.alliedmods.net/showpo...1&postcount=42

Code:

Parsing file "ShootSatchelCharge" started
                                Argument type "entvars_s *" validated
                                Argument type "Vector" validated
                                Argument type "Vector" validated
                                Return type "CGrenade *" validated
                                Searching for name "_ZN8CGrenade18ShootSatchelChargeEP9entvars_s6VectorS2_"... FOUND
                        Parsing file "ShootSatchelCharge" ended

But it crashes the server when i use the function in linux server

I am making very similar plugin as https://forums.alliedmods.net/showpo...71&postcount=6 and i need to spawn c4 without player planting it.

Thanks in advance

JusTGo 06-24-2017 21:44

Re: Orpheu signature for ShootSatchelCharge
 
you can use this ??

PHP Code:

#include <amxmodx>
#include <fakemeta>
#include <engine>

public plugin_init()
{
    
register_clcmd("say /plant""PlantABomb")
}

//  "detonatedelay"      Delay before bomb explode (Putting 'detonatedelay' to 0 would force it to mp_c4timer value.)
//  "detonatetarget"  Triggered when bomb is detonated.
//  "defusetarget"        Triggered when bomb is defused.

public PlantABombplayer ) {
    new 
iEntity create_entity"weapon_c4" );
    
    if( !
iEntity )
        return;
    
    
DispatchKeyValueiEntity"detonatedelay""50" );
    
DispatchSpawniEntity );
    
    new 
Float:origin];
    
pevplayerpev_originorigin );
    
    
engfuncEngFunc_SetOriginiEntityorigin );
    
    
force_useiEntityiEntity ); // This plants it



Chemijs 06-25-2017 10:39

Re: Orpheu signature for ShootSatchelCharge
 
Thank you so much, your way is much simpler and does exactly what i need.


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

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