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

[CS:S] Don't Collide with Teammates only


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Plugin ID:
3575
Plugin Version:
2.1.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A new NoBlock plugin with team-filter based on the CollisionHook extension
    Old 03-16-2013 , 08:49   [CS:S] Don't Collide with Teammates only
    Reply With Quote #1

    Description:

    This plugin removes collisions with teammates only.

    I used the samantha's no block plugin with team filter but i 've had to set turbophysics to 1 to avoid the mayhem bug...

    This new plugin uses a new extension called CollisionHook and the mayhem bug never went back.

    It has only been tested on CS:S ; maybe it will work on other mode, dunno (if so, please tell me and i'll modify the gametype ; if not, i won't be able to make it work on another mode, sorry)
    I'm not aware with coding so optimizations/corrections are welcome ; feel free to modify the source code and repost it here...
    It has been tested as is with SM1.5 and MM1.10.0 on a linux operating system with both bots and human players; no error/crash has ever been logged...


    Installation:

    -Download and install CollisionHook.
    -Download and install SendProxy Manager.
    -Copy the .dll or .so file depending of your operating system into addons/sourcemod/extensions folder.
    -Copy the gamedata file into addons/sourcemod/gamedata folder.
    -Copy the nocollideteammate.smx into addons/sourcemod/plugins folder.
    -Copy the no_collide_teammate.phrases.txt into addons/sourcemod/transaltions folder.
    -Restart your server.


    CVAR:

    Code:
    // Messages displayed to all players (in chat) or to server console only.
    // 1 - Print to chat
    // 0 - Print to server
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    SM_NoCollideTeammate_Chat "1"
    
    // Number of seconds after round_start with no-collision features.
    // -1.0 = Collisions are always enabled
    //  0.0 = Collisions are always disabled (default setting)
    // >0.0 = Collisions are disabled for x seconds)
    // -
    // Default: "0.0"
    // Minimum: "-1.000000"
    SM_NoCollideTeammate_Time "0.0"
    By default, collisions are always disabled for teammates...
    Change this setting in cfg/sourcemod/no_collide_teammate.cfg

    WARNING: If you decide to set a timer to remove collisions for few seconds, players who are colliding at the end of the timer will be forced to move to prevent getting stuck together with a message displayed to them in chat or in player console in accordance with SM_NoCollideTeammate_Chat setting.

    Since 2.1.0, you will need sendproxy to recompile and use this plugin.


    TODO:

    -Optimizations.

    Help is welcome

    Credits:

    -samantha for the original idea.
    -VoiDeD for his wonderfull extension and his coopjump plugin ;)


    Changelog:

    1.0: Initial release.
    1.0.1: Removed useless part of code.
    1.1.0: Added timer at round_start to remove the no-collide feature.
    1.2.0: Added translation.
    1.3.0: Added cvar to choose between chat print or server print. Added a feature to prevent sticking when the timer ends to change the collision's behavior.
    1.3.1: Minor optimization.
    1.3.2: Not working.
    1.3.3: Correction of a bug when mp_friendlyfire is set to 1.
    1.3.4: Modification of the team management.
    1.3.5: Correction of a client index error.
    2.0.0: Rewritten to take care of FriendyFire.
    2.0.1: Minor corrections/optimization.
    2.1.0: Make no-collisions more smoothy by using Sendproxy.
    Attached Files
    File Type: txt no_collide_teammate.phrases.txt (893 Bytes, 1052 views)
    File Type: sp Get Plugin or Get Source (nocollideteammate.sp - 1014 views - 6.9 KB)
    File Type: smx nocollideteammate.smx (7.3 KB, 980 views)

    Last edited by Mirandor; 05-04-2014 at 14:11. Reason: Updating
    Mirandor is offline
    Mirandor
    Senior Member
    Join Date: Jun 2006
    Location: Ile de France
    Old 03-16-2013 , 08:51   Re: [CS:S] No Collide Team-mate Plugin
    Reply With Quote #2

    Reserved.
    Mirandor is offline
    Despirator
    Senior Member
    Join Date: Jun 2011
    Location: Kazakhstan ->Shymkent
    Old 03-16-2013 , 18:45   Re: [CS:S] No Collide Team-mate Plugin
    Reply With Quote #3

    statement

    PHP Code:
    if (!IsValidEntity(ent1) || !IsValidEntity(ent2))
            return 
    Plugin_Continue
    is not needed at all
    Despirator is offline
    IcEWoLF
    Senior Member
    Join Date: Jul 2007
    Old 03-16-2013 , 22:12   Re: [CS:S] No Collide Team-mate Plugin
    Reply With Quote #4

    Thanks!
    __________________
    The 47 Ronin Gaming - http://www.47r-squad.com


    IcEWoLF is offline
    Mirandor
    Senior Member
    Join Date: Jun 2006
    Location: Ile de France
    Old 03-17-2013 , 05:59   Re: [CS:S] No Collide Team-mate Plugin
    Reply With Quote #5

    Quote:
    Originally Posted by Despirator View Post
    statement

    PHP Code:
    if (!IsValidEntity(ent1) || !IsValidEntity(ent2))
            return 
    Plugin_Continue
    is not needed at all
    Updated.

    I added this because i tought it could be the crash issue we had at a time.
    I forgot to remove it.

    Thanks
    Mirandor is offline
    Mirandor
    Senior Member
    Join Date: Jun 2006
    Location: Ile de France
    Old 03-17-2013 , 06:00   Re: [CS:S] No Collide Team-mate Plugin
    Reply With Quote #6

    Quote:
    Originally Posted by IcEWoLF View Post
    Thanks!
    Works on cs:go?
    Mirandor is offline
    Fearts
    ferts of daeth
    Join Date: Oct 2008
    Old 03-18-2013 , 17:38   Re: [CS:S] No Collide Team-mate Plugin
    Reply With Quote #7

    Would be nice if you added a feature to toggle this on for the first X seconds of a round then turn it off.
    __________________
    Fearts is offline
    Malachi
    Senior Member
    Join Date: Jun 2010
    Location: USA
    Old 03-18-2013 , 20:05   Re: [CS:S] No Collide Team-mate Plugin
    Reply With Quote #8

    Quote:
    Originally Posted by Fearts View Post
    Would be nice if you added a feature to toggle this on for the first X seconds of a round then turn it off.
    I don't know if there's any practical way to prevent ppl from getting stuck when you do turn it off.
    Malachi is offline
    IcEWoLF
    Senior Member
    Join Date: Jul 2007
    Old 03-19-2013 , 01:14   Re: [CS:S] No Collide Team-mate Plugin
    Reply With Quote #9

    Quote:
    Originally Posted by Mirandor View Post
    Works on cs:go?
    No I am not using this for CS:GO, just testing this with my CS:S server so far.
    __________________
    The 47 Ronin Gaming - http://www.47r-squad.com


    IcEWoLF is offline
    Mirandor
    Senior Member
    Join Date: Jun 2006
    Location: Ile de France
    Old 03-19-2013 , 18:24   Re: [CS:S] No Collide Team-mate Plugin
    Reply With Quote #10

    Updated
    Mirandor 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 10:11.


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