Raised This Month: $32 Target: $400
 8% 

Request plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xionic
Member
Join Date: Apr 2015
Location: Bucharest
Old 04-17-2015 , 04:35   Request plugin
Reply With Quote #1

Hi. Is there a plugin to make smoke grenade to explode (like HE GRENADE)?

Can somebody help me? Thx.
Xionic is offline
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 04-17-2015 , 07:11   Re: Request plugin
Reply With Quote #2

explode idk abt that but i know abt Frost nade - it make smoke grenade to frost
tousif is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-17-2015 , 07:31   Re: Request plugin
Reply With Quote #3

As simple as counting from 1 to 3 )

PHP Code:
#include <amxmodx>
#include <orpheu>
#include <fakemeta>

new OrpheuFunction:HandleDetonate3Func

public plugin_init()
{
    new const 
CGrenadeClass[] = "CGrenade"
    
OrpheuRegisterHook(OrpheuGetFunction("SG_Detonate"CGrenadeClass), "OnSG_Detonate"OrpheuHookPre)
    
HandleDetonate3Func OrpheuGetFunction("Detonate3"CGrenadeClass)
}

public 
OrpheuHookReturn:OnSG_Detonate(GrenadeEntity)
{
    if(
pev_valid(GrenadeEntity))
    {
        
OrpheuCall(HandleDetonate3FuncGrenadeEntity)
        return 
OrpheuSupercede
    
}
    return 
OrpheuIgnored

You need orpheu for this plugin. After you install it go to addons/amxmodx/configs/orpheu/functions and create a folder called CGrenade. Inside it create two files called Detonate3 and SG_Detonate(without any extention) and copy inside:

SG_Detonate:
Code:
{
    "name"        : "SG_Detonate",
    "class"       : "CGrenade",
    "library"     : "mod",
    "identifiers" :
    [
        {
            "os"    : "windows",
            "mod"   : "cstrike",
            "value" : "?SG_Detonate@CGrenade@@QAEXXZ"
        },
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "SG_Detonate__8CGrenade"
        },
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "_ZN8CGrenade11SG_DetonateEv"
        }
    ]
}
Detonate3:
Code:
{
    "name"        : "Detonate3",
    "class"       : "CGrenade",
    "library"     : "mod",
    "identifiers" :
    [
        {
            "os"    : "windows",
            "mod"   : "cstrike",
            "value" : "?Detonate3@CGrenade@@QAEXXZ"
        },
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "_ZN8CGrenade9Detonate3Ev"
        }
    ]
}
*signatures are not mine.
__________________

Last edited by HamletEagle; 04-17-2015 at 08:05.
HamletEagle is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 04-17-2015 , 08:03   Re: Request plugin
Reply With Quote #4

Quote:
Originally Posted by tousif View Post
it make smoke grenade to frost
Flashbangs and not smoke nades if you are talking about Avalanche's plugin.
__________________
ANTICHRISTUS is offline
Xionic
Member
Join Date: Apr 2015
Location: Bucharest
Old 04-17-2015 , 09:31   Re: Request plugin
Reply With Quote #5

I will come back with an answer. Thx.
Xionic 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 22:24.


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