Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 03-31-2013 , 04:21   Re: [CS:S] No Collide Team-mate Plugin
Reply With Quote #21

Quote:
Originally Posted by Zephyrus View Post
you sure? engine is kinda funky, even player_team and player_death are fired sometimes with non-existant userids
from the sp file

PHP Code:
if (IsValidClient(ent1) && IsValidClient(ent2))
        {
        if (
GetClientTeam(ent1) != GetClientTeam(ent2))
        {
            
result true;
            return 
Plugin_Handled;
        }
        
result false;
        return 
Plugin_Handled;
    }
    return 
Plugin_Continue;

stock bool:IsValidClient(client
{
    if (
client <= MaxClients && IsClientInGame(client)) 
        return 
true
     
    return 
false

i'm sure

Last edited by Despirator; 03-31-2013 at 04:22.
Despirator is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 04-07-2013 , 10:17   Re: [CS:S] Don't Collide with Team-mates only
Reply With Quote #22

Quote:
Originally Posted by butaford View Post
please add cvar enable/disable of messages in a chat
Try this (not tested yet)
Attached Files
File Type: sp Get Plugin or Get Source (nocollideteammate.sp - 134 views - 3.2 KB)
File Type: smx nocollideteammate.smx (4.7 KB, 120 views)
Mirandor is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 04-09-2013 , 12:44   Re: [CS:S] Don't Collide with Team-mates only
Reply With Quote #23

Updated to 1.3.0
Mirandor is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 04-10-2013 , 12:03   Re: [CS:S] Don't Collide with Team-mates only
Reply With Quote #24

Updated to 1.3.1
Mirandor is offline
Kudjo
Junior Member
Join Date: Jan 2010
Old 04-11-2013 , 03:52   Re: [CS:S] Don't Collide with Team-mates only
Reply With Quote #25

Good day! When the plug-in has a problem with friendlyfire (set mp_friendlyfire 1) ! I can not do damage teammates. ???
Kudjo is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 04-11-2013 , 04:05   Re: [CS:S] Don't Collide with Team-mates only
Reply With Quote #26

Quote:
Originally Posted by Kudjo View Post
Good day! When the plug-in has a problem with friendlyfire (set mp_friendlyfire 1) ! I can not do damage teammates. ???
well i didn't test it with mp_friendlyfire...
i'll try this evening.
thanks for feedback.

Edit: try this...(not tested)
Edit2: tested - not working :/

Last edited by Mirandor; 04-11-2013 at 12:10. Reason: deleting attached part - not working
Mirandor is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 04-11-2013 , 12:18   Re: [CS:S] Don't Collide with Team-mates only
Reply With Quote #27

Updated to 1.3.3
Mirandor is offline
Kudjo
Junior Member
Join Date: Jan 2010
Old 04-11-2013 , 13:10   Re: [CS:S] Don't Collide with Team-mates only
Reply With Quote #28

not working
(CSS : Metamod 1.10 : Sourcemod 1.6.0 : Gungame 1.2.11.2)
Kudjo is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 04-13-2013 , 06:24   Re: [CS:S] Don't Collide with Team-mates only
Reply With Quote #29

Updated to 1.3.5

There is still a bug when mp_friendly fire is set to 1: when collisions are disabled, players are not hurt by the bullets of their team-mates ; they get damages only by he-grenades of their team-mates.
When collisions are (re)enables, mp_friendlyfire works properly...
I tried many ways but i don't know how to solve it ; i'm not as good programer for this
If a good programer could find the problem, it would be great!
Sorry.

edit: i found a way ; not the best one but it 's now working with mp_friendlyfire.
Updated to 2.0.0

Last edited by Mirandor; 05-22-2013 at 06:19. Reason: Correction
Mirandor is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 07-06-2013 , 17:32   Re: [CS:S] Don't Collide with Team-mates only
Reply With Quote #30

Hi there,

plugin seems ok. Approved.

Some minor things you could change :
  • Use the squared GetVectorDistance (3rd arg true). This prevent a square root (which is an expensive operation like sin, cos, etc.) from being done. (Square what it is compared to thought)
  • Using FCVAR_REPLICATED can produce errors in the client's console
  • "team-mate" is written "teammate"
  • "if there on the" --> "if they're on the"

Red
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 07-06-2013 at 17:33.
RedSword 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:56.


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