Raised This Month: $115 Target: $400
 28% 

NoBlock


Post New Thread Reply   
 
Thread Tools Display Modes
Author
altex
Veteran Member
Join Date: May 2009
Location: Russia
Plugin ID:
854
Plugin Version:
1.4.2
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    NoBlock plugin removes player vs. player collisions.
    Old 05-03-2009 , 09:04   NoBlock
    Reply With Quote #1

    Description
    -----------
    NoBlock plugin removes player vs. player collisions.
    Usefull for Surf servers.

    http://forums.alliedmods.net/showthread.php?t=91617

    Commands and Cvars
    ------------------
    sm_noblock_version - NoBlock version.

    sm_noblock - Removes player vs. player collisions. (Default: 1)
    sm_noblock_allow_block - Allow players to use say !block. (Default: 1)
    sm_noblock_allow_block_time - Time limit to say !block command. (Default: 20)
    sm_noblock_blockafterspawn_time - Disable blocking only for that time from spawn.
    (Default: 0; 0 = disabled)
    sm_noblock_nades - Removes player vs. nade/flash/smoke collisions. (Default: 1)
    sm_noblock_hostages - Removes player vs. hostage collisions. (Default: 0) - Only set this to 1 if you need it.

    say !block - Enable/Disable player vs. player collisions.

    Requirements
    ------------
    * Counter-Strike: Source
    * SourceMod 1.2.0
    * You need extension SDK Hooks 1.3 (Updated 2010-05-12) or later
    https://forums.alliedmods.net/showthread.php?t=106748

    Changelog
    ---------
    1.4.2:
    * Fixed
    L 09/21/2010 - 19:27:08: [SM] Native "GetEdictClassname" reported: Invalid edict (209 - 209)
    L 09/21/2010 - 19:27:08: [SM] Displaying call stack trace for plugin "noblock.smx":
    L 09/21/2010 - 19:27:08: [SM] [0] Line 317, noblock.sp::UnblockHostages()
    L 09/21/2010 - 19:27:08: [SM] [1] Line 189, noblock.sp::OnRoundStart()

    1.4.1:
    * Refactoring.

    1.4.0:
    + Added cvars: sm_noblock_nades, sm_noblock_hostages. Thanks to GoD-Tony.

    1.3.0:
    + Add sm_noblock_blockafterspawn_time variable to disable noblock for spawned player
    after some time.
    * Fixed two minor bugs.

    1.2.0:
    * Enables/disables all players blocking when cvar sm_noblock is changed.
    It is now not needed to wait until next respawn.
    * Code improved. Fixed bugs:
    1) L 06/27/2008 - 13:16:50: [SM] Native "GetClientUserId" reported: Client 2 is not connected
    2) L 06/27/2008 - 13:43:50: [SM] Native "PrintToChat" reported: Client 2 is not in game
    3) L 07/02/2008 - 20:40:33: [SM] Native "SetEntData" reported: Entity 2 is invalid
    4) L 07/15/2008 - 23:02:23: [SM] Native "CloseHandle" reported: Handle 253e00a2 is invalid (error 3)
    5) L 09/08/2008 - 15:36:25: [SM] Plugin encountered error 15: Array index is out of bounds

    1.1.1:
    + Added sm_noblock_version.

    1.0.0:
    + Added sm_noblock_allow_block, sm_noblock_allow_block_time to allow players to use say !block command.
    + If player already blocking say !block disables blocking.

    Credits
    -------
    * Thanks to GoD-Tony for adding cvars: sm_noblock_nades, sm_noblock_hostages.

    * Thanks to sslice for No Block plugin till version 1.0.0.0.
    http://forums.alliedmods.net/showthread.php?t=53721
    NoBlock is based on its source code.


    TODO
    ----
    + Add version without SDKHooks. Add define.
    + Feature request
    Could you add cvar vice versa ?
    If sm_noblock_blockafterspawn_time 0 (disabled)
    and player can use chat command !noblock
    player temporary can go through other players
    * Fix bug:
    L 11/04/2009 - 23:09:42: Error log file session closed.
    L 11/04/2009 - 23:09:53: SourceMod error session started
    L 11/04/2009 - 23:09:53: Info (map "surf_sandman_v2") (file "errors_20091104.log")
    L 11/04/2009 - 23:09:53: [SM] Native "CloseHandle" reported: Handle e0000b5 is invalid (error 3)
    L 11/04/2009 - 23:09:53: [SM] Displaying call stack trace for plugin "noblock.smx":
    L 11/04/2009 - 23:09:53: [SM] [0] Line 73, noblock.sp::OnSpawn()
    L 11/04/2009 - 23:09:56: [SM] Native "CloseHandle" reported: Handle e0000b5 is invalid (error 1)
    L 11/04/2009 - 23:09:56: [SM] Displaying call stack trace for plugin "noblock.smx":
    L 11/04/2009 - 23:09:56: [SM] [0] Line 73, noblock.sp::OnSpawn()
    L 11/04/2009 - 23:10:43: [SM] Native "CloseHandle" reported: Handle e0000b5 is invalid (error 1)
    L 11/04/2009 - 23:10:43: [SM] Displaying call stack trace for plugin "noblock.smx":
    L 11/04/2009 - 23:10:43: [SM] [0] Line 73, noblock.sp::OnSpawn()
    L 11/04/2009 - 23:14:48: [SM] Native "CloseHandle" reported: Handle e0000b5 is invalid (error 1)
    L 11/04/2009 - 23:14:48: [SM] Displaying call stack trace for plugin "noblock.smx":
    L 11/04/2009 - 23:14:48: [SM] [0] Line 73, noblock.sp::OnSpawn()
    L 11/04/2009 - 23:18:52: [SM] Native "CloseHandle" reported: Handle e0000b5 is invalid (error 1)
    L 11/04/2009 - 23:18:52: [SM] Displaying call stack trace for plugin "noblock.smx":
    L 11/04/2009 - 23:18:52: [SM] [0] Line 73, noblock.sp::OnSpawn()
    L 11/04/2009 - 23:25:11: [SM] Native "CloseHandle" reported: Handle e0000b5 is invalid (error 1)
    L 11/04/2009 - 23:25:11: [SM] Displaying call stack trace for plugin "noblock.smx":
    L 11/04/2009 - 23:25:11: [SM] [0] Line 73, noblock.sp::OnSpawn()
    * Fix bug:
    L 08/08/2009 - 00:11:56: [SM] To enable debug mode, edit plugin_settings.cfg,
    or type: sm plugins debug 3 on
    L 08/08/2009 - 00:15:37: [SM] Native "CloseHandle" reported: Handle d9d00a8 is
    invalid (error 3)
    L 08/08/2009 - 00:15:37: [SM] Debug mode is not enabled for "noblock.smx"
    L 08/08/2009 - 00:15:37: [SM] To enable debug mode, edit plugin_settings.cfg,
    or type: sm plugins debug 3 on
    L 08/08/2009 - 00:17:16: [SM] Native "CloseHandle" reported: Handle d9d00a8 is
    invalid (error 1)
    L 08/08/2009 - 00:17:16: [SM] Debug mode is not enabled for "noblock.smx"
    + Feature request
    hi plugin is very nice... i miss a thing... when sm_noblock changed to 1/0 it
    shows in chatarea (css) "server cvar sm_noblock changed to 1/0" or like
    this... can u add a feature to the plugin that ther can be shown "NoBlock is
    now enabled/disabled" and that with colours? like green or so?
    * Add functionality to check players positions and turn off noblock just for players that has no
    collisions with each other. Enable this only if sm_noblock_blockafterspawn_time otpion is
    enabled.

    My plugins | Donations via PayPal
    Attached Files
    File Type: zip sm_noblock-1.2.0.zip (7.4 KB, 5500 views)
    File Type: zip sm_noblock-1.3.0.zip (8.4 KB, 4537 views)
    File Type: zip sm_noblock-1.4.1.zip (11.2 KB, 2299 views)
    File Type: zip sm_noblock-1.4.2.zip (11.4 KB, 35393 views)
    __________________

    Last edited by altex; 10-13-2011 at 19:28. Reason: Release 1.4.2
    altex is offline
    SWAT_88
    SourceMod Donor
    Join Date: Jan 2008
    Location: Austria
    Old 05-03-2009 , 10:28   Re: [CSS] NoBlock
    Reply With Quote #2

    If you had used the search function, you would have saved time.

    No Hostage/Player Block.
    __________________
    SWAT_88 is offline
    altex
    Veteran Member
    Join Date: May 2009
    Location: Russia
    Old 05-03-2009 , 11:21   Re: [CSS] NoBlock
    Reply With Quote #3

    You are right. Thanks.

    But this was my first plugin i wrote, and it has been written by 20 jun 2008. I just searching in my repository for any usable code and decided to share it.

    So there is one minor difference in my plugin - say !block enables and disables blocking. You can not wait until timer expires and unblock player.

    I downloaded you plugin for learning and can not find out what is g_hostage for?
    altex is offline
    SWAT_88
    SourceMod Donor
    Join Date: Jan 2008
    Location: Austria
    Old 05-04-2009 , 14:04   Re: [CSS] NoBlock
    Reply With Quote #4

    Quote:
    Originally Posted by altex View Post
    You are right. Thanks.

    But this was my first plugin i wrote, and it has been written by 20 jun 2008. I just searching in my repository for any usable code and decided to share it.

    So there is one minor difference in my plugin - say !block enables and disables blocking. You can not wait until timer expires and unblock player.

    I downloaded you plugin for learning and can not find out what is g_hostage for?
    Some people always abuse such functions to block the own team, therefore a timer is quite good.

    @hostage:
    This is a ConVar:
    Code:
    nb_hostage    "1"        - 0: blocking hostages - 1 no blocking hostages
    
    g_hostage = CreateConVar("nb_hostage", "1");
    __________________
    SWAT_88 is offline
    altex
    Veteran Member
    Join Date: May 2009
    Location: Russia
    Old 05-04-2009 , 17:27   Re: [CSS] NoBlock
    Reply With Quote #5

    Quote:
    Originally Posted by SWAT_88 View Post
    Some people always abuse such functions to block the own team, therefore a timer is quite good.
    In my plugin there is timer. But if you want to disable block you have 2 ways: wait for timer or say !block again. It is good if you stuck in somebody.

    For example:
    00:00 say !block # blocking player for 20 seconds
    00:20 # player unblocked
    01:00 say !block # blocking player for 20 seconds
    01:05 say !block # player unblocked

    Quote:
    Originally Posted by SWAT_88 View Post
    @hostage:
    This is a ConVar:
    Code:
    nb_hostage    "1"        - 0: blocking hostages - 1 no blocking hostages
    
    g_hostage = CreateConVar("nb_hostage", "1");
    I can not find where it is used
    Code:
    #grep g_hostage sm_noblock.sp
    new Handle:g_hostage;
        g_hostage = CreateConVar("nb_hostage", "1");
        CloseHandle(g_hostage);

    Last edited by altex; 05-04-2009 at 17:40.
    altex is offline
    SWAT_88
    SourceMod Donor
    Join Date: Jan 2008
    Location: Austria
    Old 05-06-2009 , 17:18   Re: [CSS] NoBlock
    Reply With Quote #6

    Quote:
    Originally Posted by altex View Post
    In my plugin there is timer. But if you want to disable block you have 2 ways: wait for timer or say !block again. It is good if you stuck in somebody.

    For example:
    00:00 say !block # blocking player for 20 seconds
    00:20 # player unblocked
    01:00 say !block # blocking player for 20 seconds
    01:05 say !block # player unblocked


    I can not find where it is used
    Code:
    #grep g_hostage sm_noblock.sp
    new Handle:g_hostage;
        g_hostage = CreateConVar("nb_hostage", "1");
        CloseHandle(g_hostage);
    I have used it in an earlier version, but apparently I have overwritten it after providing a new version.

    Thanks for the hint.
    __________________
    SWAT_88 is offline
    violentcrimes
    Senior Member
    Join Date: Nov 2006
    Old 05-12-2009 , 21:45   Re: [CSS] NoBlock
    Reply With Quote #7

    Can you make this plugin for teammates only. Instead of everyone?
    __________________
    violentcrimes is offline
    altex
    Veteran Member
    Join Date: May 2009
    Location: Russia
    Old 05-13-2009 , 15:00   Re: [CSS] NoBlock
    Reply With Quote #8

    Quote:
    Originally Posted by violentcrimes View Post
    Can you make this plugin for teammates only. Instead of everyone?
    Do you think it's technicaly possible? I'm no sure.
    There's no difference in entity types for CT an T players.
    altex is offline
    SWAT_88
    SourceMod Donor
    Join Date: Jan 2008
    Location: Austria
    Old 05-14-2009 , 15:51   Re: [CSS] NoBlock
    Reply With Quote #9

    Quote:
    Originally Posted by altex View Post
    Do you think it's technicaly possible? I'm no sure.
    There's no difference in entity types for CT an T players.
    That's the point. Technically it's not possible.
    __________________
    SWAT_88 is offline
    SirCole
    Member
    Join Date: Nov 2006
    Old 06-10-2009 , 05:10   Re: [CSS] NoBlock
    Reply With Quote #10

    <3
    SirCole 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 17:43.


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