Player dies on connect in CSS

A Forum Thread for Counter-Strike: Source

Hello world. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending shubhishubhi points.
  • Post: Give shubhishubhi your thoughts on this Thread.
  • Flag: Alert moderators and warn members of a problem with this Thread.
  • Watch: Get notified when this Thread is updated.
Mascot

Sound fun?

Sign up

Already a Bananite? Login

The problem I am facing is: In a 2v2 game (with my team balancing plugin which assigns teams to players on connect using ChangeClientTeam) one of the player occasionaly dies while connecting to the server. I had solved similar issue in CS 1.6 using sv_restartround, but since it is not available in CSS, I wanted to use mp_restartgame. However, mp_restartgame displays messages like "Round Draw!", "The game will commence in X seconds". I tried to override these messages but could not do so. Hence I do not want to use mp_restartgame. I am still facing the player death issue on connect. Is there any other alternative to resolve this issue which I am missing. Please help me resolving this issue. Thanks in advance. Regards Shubhi

Posts

  • 9y
    =RED= avatar
    =RED= Offline
    Member Joined 10y
    418 points Ranked 10103rd
    Why is this in HL2? It should be in the CSS thread. Im sorry I do not know how to help, but move the thread and you can get someone who can.
    Thumb me if you love me. avatar
    Mantra
    Thumb me if you love me.
  • 9y
    Wildcard777 avatar
    Wildcard777 avatar Offline
    Member Joined 11y
    13,890 points Ranked 314th
    16 medals 1 legendary 2 rare
    • 10 years a member Medal icon
    • 25 posts awarded Exemplary Feedback Medal icon
    • 6 years a member Medal icon
    • Became a Club Leader Medal icon
    • Reached 1,000 Points Medal icon
    • Reached 2,500 Points Medal icon
    Please move this thread to CS:S > Other/Misc. In response to this question I would have to say that I have never heard this happen before. Sorry I do not know how to help out.
    The Table Runner avatar
    Mantra
    The Table Runner
  • 9y
    shubhishubhi avatar
    Member Joined 9y
    301 points Ranked 13117th
    Well a section on mods was not available in CSS hence I had put the post here... I am not sure how to move it... Could someone help?
    Bananite
  • 9y
    Wildcard777 avatar
    Wildcard777 avatar Offline
    Member Joined 11y
    13,890 points Ranked 314th
    16 medals 1 legendary 2 rare
    • 10 years a member Medal icon
    • 25 posts awarded Exemplary Feedback Medal icon
    • 6 years a member Medal icon
    • Became a Club Leader Medal icon
    • Reached 1,000 Points Medal icon
    • Reached 2,500 Points Medal icon
    Posted by shubhishubhi

    Well a section on mods was not available in CSS hence I had put the post here... I am not sure how to move it... Could someone help?

    Click the edit button and you will see that this thread is in HL2 > Half-Life 2 > Mods. If you click that then there should be a task menu and just scroll till you find CS:S > Other/Misc.
    The Table Runner avatar
    Mantra
    The Table Runner
  • 9y
    shubhishubhi avatar
    Member Joined 9y
    301 points Ranked 13117th
    Thanks Man!
    Bananite
  • 9y
    shubhishubhi avatar
    Member Joined 9y
    301 points Ranked 13117th
    Any inputs on this guys!
    Bananite
  • 9y
    Yyum avatar
    Yyum Offline
    Member Joined 9y
    4,768 points Ranked 965th
    Maybe remove your team balancing plugin, and just use mp_autoteambalance or whatever it is?
    Audiophile avatar
    Mantra
    Audiophile
  • 9y
    shubhishubhi avatar
    Member Joined 9y
    301 points Ranked 13117th
    I don't think that I can get away with my plugin, because the balancing is specifically needed for my setup :-(. Any other inputs in resolving the issue are welcome.
    Bananite
  • 9y
    KaT_FisH avatar
    KaT_FisH Offline
    Member Joined 11y
    37,686 points Ranked 106th
    They die when connecting?
    Don't you mean they die when joining a team?
    <3 <3 <3 avatar
    Mantra
    <3 <3 <3
  • 9y
    Yyum avatar
    Yyum Offline
    Member Joined 9y
    4,768 points Ranked 965th
    Posted by KaT_FisH

    They die when connecting?
    Don't you mean they die when joining a team?


    That's a good point. With that in consideration, Shubhishubhi, it sounds like your plugin is causing people to die from forcibly making them switch teams.
    Audiophile avatar
    Mantra
    Audiophile
  • 9y
    shubhishubhi avatar
    Member Joined 9y
    301 points Ranked 13117th
    Yes, even I doubt my plugin. I am using ChangeClientTeam function in my plugin in the commandhandler for 'jointeam' client command. I have read in the Sourcemod Docs that ChangeClientTeam kills the player in CS:S. But there are a lot of TeamBalancing plugin in SourceMod forums where this API has been used for CSS. So I am not sure, how I can correct my plugin.
    Bananite
  • 9y
    KaT_FisH avatar
    KaT_FisH Offline
    Member Joined 11y
    37,686 points Ranked 106th
    Try looking at the .sp for the other team balancing mods.
    <3 <3 <3 avatar
    Mantra
    <3 <3 <3
  • 9y
    shubhishubhi avatar
    Member Joined 9y
    301 points Ranked 13117th
    I tired the various team assignment funcitons in CSS: ChangeClientTeam, CS_SwitchTeam, SDKCall to SwitchTeam.. but all behave the same. Hence, I think the only option that I am left with is to restart the round once the player's team is assigned.
    Bananite
  • 9y
    GLitchedSystems avatar
    Member Joined 10y
    4,995 points Ranked 928th
    Post what your using to switch the team.
    Die!
  • 9y
    shubhishubhi avatar
    Member Joined 9y
    301 points Ranked 13117th
    Function calls like:

    ChangeClientTeam(client, 2);
    ChangeClientTeam(client, 3);
    Bananite
  • 9y
    GLitchedSystems avatar
    Member Joined 10y
    4,995 points Ranked 928th
    Is this sourcemod, metamod, or what?
    Die!
  • 9y
    shubhishubhi avatar
    Member Joined 9y
    301 points Ranked 13117th
    Sourcemod... and Sourcemod does say in API docs that ChangeClientTeam will kill a player in CSS
    Bananite
  • 9y
    GLitchedSystems avatar
    Member Joined 10y
    4,995 points Ranked 928th
    Ugh, get rid of sourcemod and do it yourself. Thats my answer.
    Die!
  • 9y
    shubhishubhi avatar
    Member Joined 9y
    301 points Ranked 13117th
    How can I do it myself... I have no idea??
    Bananite
  • 9y
    GLitchedSystems avatar
    Member Joined 10y
    4,995 points Ranked 928th
    Here, look at this...

    http://forums.mattie.info/cs/forums/viewtopic.php?t=18832
    Die!
  • 9y
    shubhishubhi avatar
    Member Joined 9y
    301 points Ranked 13117th
    Thanks Man! I 'll have a look at that!
    Bananite
  • 9y
    iShot avatar
    iShot Offline
    Member Joined 10y
    1,548 points Ranked 3044th
    9 medals 1 rare
    • 6 years a member Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    • 5 posts awarded Exemplary Feedback Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    Please close the thread now... Thanks...
    www.th-uk.com
  • 9y
    shubhishubhi avatar
    Member Joined 9y
    301 points Ranked 13117th
    I had a look at the link.. but I donno if I will able to use it because I have other logic also in place in my Sourcemod Plugin...
    Bananite

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Submitter

shubhishubhi avatar
Member Joined 9y
301 points Ranked 13117th

shubhishubhi
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Stats

Posts
23
Views
2,168
Date Added
9y
Date Modified
9y
bcp.crwdcntrl.net tracking pixel