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

Remove trigger_push on spawn [Deathrun]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 09-14-2009 , 04:46   Remove trigger_push on spawn [Deathrun]
Reply With Quote #1

Hello. Many players that have ever experienced deathrun knows about that pushing (I guess it's trigger_push) in a spawn locations. Now this makes AFK kicker useless, because players are actually moving (changing their location) without using their keyboard.
We're going to establish a deathrun server and we're going to install a plugin, which auto-respawns CT's in 20 seconds.
I'd like to see idlers being kicked, rather then moved by this trigger_push (or whatever invisible force makes players move).

I'd like to ask for a tricky plugin:

Is there any way to disable this trigger_push ONLY near CT's spawn points (in some radius), so it wont affect some pushing traps but will also allow afk kicker to do his job? Anyone can make it? I'm sure a lot of players/admins would appreciate this.

Last edited by Hammerfallerz; 09-14-2009 at 04:50.
Hammerfallerz is offline
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 09-27-2009 , 06:58   Re: Remove trigger_push on spawn [Deathrun]
Reply With Quote #2

Nobody?
Hammerfallerz is offline
Firippu
Senior Member
Join Date: Jan 2007
Old 10-17-2009 , 23:47   Re: Remove trigger_push on spawn [Deathrun]
Reply With Quote #3

This will remove the trigger_push at ct spawn. As long as there is at least one ct spawn(info_player_start) inside the trigger_push, it will work.

PHP Code:
#include <amxmodx>
#include <engine>

#define PLUGIN    "NoPushAtSpawn"
#define AUTHOR    "Firippu"
#define VERSION    "1.0"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    new 
ct
    
while((ct find_ent_by_class(ct,"info_player_start")) != 0)
    {
        
entity_set_int(ct,EV_INT_solid,SOLID_BBOX)
        
entity_set_int(ct,EV_INT_movetype,MOVETYPE_FLY)
        
entity_set_vector(ct,EV_VEC_mins,Float:{-10.0,-10.0,-100.0})
        
entity_set_vector(ct,EV_VEC_maxs,Float:{10.0,10.0,100.0})
    }
    
    
register_touch("trigger_push","info_player_start","whatever")
}

public 
whatever(push,spawn)
    
remove_entity(push
If this doesn't work on some maps, try adjusting the mins and maxs.
__________________

Last edited by Firippu; 10-19-2009 at 08:27.
Firippu is offline
uxMal
Member
Join Date: Oct 2007
Old 10-18-2009 , 12:38   Re: Remove trigger_push on spawn [Deathrun]
Reply With Quote #4

maybe you want to reset that the spawns are solid?
uxMal is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 10-19-2009 , 11:33   Re: Remove trigger_push on spawn [Deathrun]
Reply With Quote #5

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

#define DISTANCE 150.0 // Tweak this 

new g_iForwardSpawn;

public 
plugin_precache( )
{
    
g_iForwardSpawn register_forwardFM_Spawn"FwdSpawnPost");
}

public 
plugin_init( )
{
    
register_plugin"Remove trigger_push on CT spawns""1.0""Jon" );
    
    
unregister_forwardFM_Spawng_iForwardSpawn);
}

public 
FwdSpawnPostiEnt )
{
    if( !
is_valid_entiEnt ) )
    {
        return 
FMRES_IGNORED;
    }
    
    new 
szClass32 ];
    
entity_get_stringiEntEV_SZ_classnameszClass31 );
    
    if( !
equalszClass"info_player_start" ) )
    {
        return 
FMRES_IGNORED;
    }
    
    new 
Float:vOrigin];
    
entity_get_vectoriEntEV_VEC_originvOrigin );
    
    new 
iFindEnt get_maxplayers( );
    
    while( ( 
iFindEnt find_ent_by_classiFindEnt"trigger_push" ) ) )
    {
        new 
Float:vOriginFind];
        
get_brush_entity_originiFindEntvOriginFind );
        
        if( 
get_distance_fvOriginvOriginFind ) < DISTANCE )
        {
            
remove_entityiFindEnt );
        }
    }
    
    return 
FMRES_IGNORED;

Jon is offline
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 11-06-2009 , 07:25   Re: Remove trigger_push on spawn [Deathrun]
Reply With Quote #6

Wow, I thought nobody will ever answer

Thanks a lot, I'll test it!
Hammerfallerz is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 11-14-2009 , 14:17   Re: Remove trigger_push on spawn [Deathrun]
Reply With Quote #7

Quote:
Originally Posted by Jon View Post
PHP Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>

#define DISTANCE 150.0 // Tweak this 

new g_iForwardSpawn;

public 
plugin_precache( )
{
    
g_iForwardSpawn register_forwardFM_Spawn"FwdSpawnPost");
}

public 
plugin_init( )
{
    
register_plugin"Remove trigger_push on CT spawns""1.0""Jon" );
    
    
unregister_forwardFM_Spawng_iForwardSpawn);
}

public 
FwdSpawnPostiEnt )
{
    if( !
is_valid_entiEnt ) )
    {
        return 
FMRES_IGNORED;
    }
    
    new 
szClass32 ];
    
entity_get_stringiEntEV_SZ_classnameszClass31 );
    
    if( !
equalszClass"info_player_start" ) )
    {
        return 
FMRES_IGNORED;
    }
    
    new 
Float:vOrigin];
    
entity_get_vectoriEntEV_VEC_originvOrigin );
    
    new 
iFindEnt get_maxplayers( );
    
    while( ( 
iFindEnt find_ent_by_classiFindEnt"trigger_push" ) ) )
    {
        new 
Float:vOriginFind];
        
get_brush_entity_originiFindEntvOriginFind );
        
        if( 
get_distance_fvOriginvOriginFind ) < DISTANCE )
        {
            
remove_entityiFindEnt );
        }
    }
    
    return 
FMRES_IGNORED;

It doesn't at all remove the trigger_push entity for me..
KadiR is offline
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 11-15-2009 , 05:06   Re: Remove trigger_push on spawn [Deathrun]
Reply With Quote #8

Tbh yes, it doesnt removes trigger_push on some maps or on some specific players. Or sometime it does it job, but if player stands afk it for a few milliseconds allows him to be pushed and then pushing is blocked again.
Hammerfallerz is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 11-15-2009 , 05:11   Re: Remove trigger_push on spawn [Deathrun]
Reply With Quote #9

Quote:
Originally Posted by My code
#define DISTANCE 150.0 // Tweak this
Jon 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 00:46.


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