Raised This Month: $12 Target: $400
 3% 

Nade Semiclip v2.7


Post New Thread Reply   
 
Thread Tools Display Modes
JusTGo
Veteran Member
Join Date: Mar 2013
Old 07-12-2016 , 20:14   Re: Nade Semiclip v2.4
Reply With Quote #11

updated.
Code:
-V2.4
*Fixed possible wrong nade owner id.
__________________
JusTGo is offline
chaveirobf
Member
Join Date: Sep 2010
Location: Brazil
Old 07-16-2016 , 15:58   Re: Nade Semiclip v2.4
Reply With Quote #12

EFFx does not know anything so wrong opinion and steal pug
chaveirobf is offline
Send a message via Skype™ to chaveirobf
Old 07-17-2016, 08:36
JusTGo
This message has been deleted by JusTGo.
JusTGo
Veteran Member
Join Date: Mar 2013
Old 07-17-2016 , 08:37   Re: Nade Semiclip v2.4
Reply With Quote #13

Quote:
Originally Posted by chaveirobf View Post
EFFx does not know anything so wrong opinion and steal pug
don't go offtopic plz.
__________________
JusTGo is offline
Ricky
Senior Member
Join Date: Jul 2005
Old 08-11-2016 , 22:22   Re: Nade Semiclip v2.4
Reply With Quote #14

v2.4 crashes server with death caused by napalm_nades. Was not an issue with v1.3.
Ricky is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 08-12-2016 , 09:20   Re: Nade Semiclip v2.4
Reply With Quote #15

Quote:
Originally Posted by Ricky View Post
v2.4 crashes server with death caused by napalm_nades. Was not an issue with v1.3.
any error logs ?
__________________
JusTGo is offline
Ricky
Senior Member
Join Date: Jul 2005
Old 08-12-2016 , 14:11   Re: Nade Semiclip v2.4
Reply With Quote #16

Quote:
Originally Posted by JusTGo View Post
any error logs ?
I didn't recall getting any errors in amxmodx regarding this plugin. I immediately removed it and went back to v1.3 after getting crashes. Maybe try testing with napalm_nades and see if you can pinpoint the error. This might be an error that only occurs with this certain plugin but still an error nonetheless. I had napalm nades set on flashbang with explosions on.

Last edited by Ricky; 08-12-2016 at 15:48.
Ricky is offline
Old 08-25-2016, 18:54
lazarev
This message has been deleted by lazarev. Reason: oh my
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-26-2017 , 06:25   Re: Nade Semiclip v2.4
Reply With Quote #17

Quote:
Originally Posted by Ricky View Post
I didn't recall getting any errors in amxmodx regarding this plugin. I immediately removed it and went back to v1.3 after getting crashes. Maybe try testing with napalm_nades and see if you can pinpoint the error. This might be an error that only occurs with this certain plugin but still an error nonetheless. I had napalm nades set on flashbang with explosions on.
i wasn't able to reporduce the error are you sure you don't have other plugins that mayby effects grenades ?
__________________
JusTGo is offline
Skanix
Junior Member
Join Date: Jan 2018
Location: Algeria
Old 02-23-2018 , 13:27   Re: Nade Semiclip v2.4
Reply With Quote #18

Nice
Skanix is offline
Lenilson
Junior Member
Join Date: Aug 2012
Old 11-20-2018 , 15:42   Re: Nade Semiclip v2.4
Reply With Quote #19

Hello, in reHLDS this plugin has stopped working, and shows the error that I will leave below.

L 11/17/2018 - 13:42:51: [AMXX] Displaying debug trace (plugin "nade_semiclip.amxx", version "2.4")
L 11/17/2018 - 13:42:51: [AMXX] Run time error 10: native error (native "get_pdata_int")
L 11/17/2018 - 13:42:51: [AMXX] [0] nade_semiclip.sma::SetModel (line 69)
Lenilson is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 11-20-2018 , 18:26   Re: Nade Semiclip v2.4
Reply With Quote #20

Quote:
Originally Posted by Lenilson View Post
Hello, in reHLDS this plugin has stopped working, and shows the error that I will leave below.

L 11/17/2018 - 13:42:51: [AMXX] Displaying debug trace (plugin "nade_semiclip.amxx", version "2.4")
L 11/17/2018 - 13:42:51: [AMXX] Run time error 10: native error (native "get_pdata_int")
L 11/17/2018 - 13:42:51: [AMXX] [0] nade_semiclip.sma::SetModel (line 69)
Not sure about the problem, test this updated plugin and see if every thing is working correctly :

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

#define PLUGIN "Nade Semiclip"
#define VERSION "2.5"
#define AUTHOR "JustGo"

#define OFFSET_TEAM    114
#define is_user_valid(%1) (1 <= %1 <= g_MaxPlayers)
#define fm_get_user_team(%1)    get_pdata_int(%1,OFFSET_TEAM)
#define is_grenade_c4(%1)    (get_pdata_int(%1, 96) & (1<<8)) // 96 is the C4 offset

#define SEMI_CLIP_DISTANCE 100.0

new cvar_nade_semiclipg_nade_semiclip
new g_MaxPlayers

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("HLTV""event_round_start""a""1=0""2=0")
    
    
RegisterHam(Ham_Think"grenade""Think_Grenade")
    
    
register_forward(FM_SetModel"SetModel")
    
register_forward(FM_ShouldCollide"ShouldCollide")
    
    
cvar_nade_semiclip register_cvar"nade_semiclip""1" )

    
g_MaxPlayers get_maxplayers();
}

public 
event_round_start()
{
    
g_nade_semiclip get_pcvar_numcvar_nade_semiclip )
}

// Grenade Think Forward
public Think_Grenade(entity)
{
    if(!
g_nade_semiclip)
        return 
HAM_IGNORED
    
    
if(!pev_valid(entity))
        return 
HAM_IGNORED
    
    
if(is_grenade_c4(entity))
        return 
HAM_IGNORED
    
    
static Float:dmgtime
    pev
(entitypev_dmgtimedmgtime)
    
    if(
dmgtime <= get_gametime())
        
set_pev(entitypev_owner,pev(entity,pev_iuser2)); // fix for other plugin that gets flasher name or stuff like that.
    
    
return HAM_IGNORED;
}

public 
SetModel(iEntity, const Model[])
{
    if(!
g_nade_semiclip)
        return 
FMRES_IGNORED
        
    
if(!is_grenade(iEntity))
        return 
FMRES_IGNORED
        
    
static idid pev(iEntitypev_owner)

    if(!
is_user_valid(id))
        return 
FMRES_IGNORED

    
if(!pev(iEntity,pev_iuser2))  
    {
        
set_pev(iEntity,pev_iuser2,id//remeber the real nade owner
        
set_pev(iEntity,pev_iuser1,fm_get_user_team(id)) // remeber the nade owner team
    
}
        
    return 
FMRES_IGNORED
}

public 
ShouldCollide(playerindexentindex)
{
    if(!
g_nade_semiclip)
        return 
FMRES_IGNORED
        
    
if(!is_user_alive(playerindex) || !is_grenade(entindex))
        return 
FMRES_IGNORED
        
    
// Get damage time of grenade
    
static Float:dmgtime
    pev
(entindexpev_dmgtimedmgtime)
        
    if(
dmgtime <= get_gametime())
        return 
FMRES_IGNORED
    
    
if(close_enough(playerindex,entindex))
    {        
        if(
g_nade_semiclip == && (fm_get_user_teamplayerindex ) != pev(entindex,pev_iuser1)))
            return 
FMRES_IGNORED
        
        set_pev
(entindex,pev_owner,playerindex)
    }

    return 
FMRES_IGNORED
}

is_grenade(iEntity)
{
    if( !
pev_valid(iEntity) )
        return 
0
    
    
static class[9
    
pev(iEntitypev_classname, class, charsmax(class)) 
    if( !
equal(class, "grenade") )
        return 
0
    
    
if (is_grenade_c4(iEntity))
        return 
0
    
    
return 1
}

public 
bool:close_enough(ent1ent2)
{
    static 
Float:origin[3], Float:origin2[3]
    
    
pev(ent1pev_originorigin )
    
pev(ent2pev_originorigin2 )
    
    if( 
get_distance_foriginorigin2 ) <= SEMI_CLIP_DISTANCE )
        return 
true

    
return false    

__________________
JusTGo is offline
Reply


Thread Tools
Display Modes

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:57.


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