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

[CSGO] A solution to stuck players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-17-2017 , 13:46   [CSGO] A solution to stuck players
Reply With Quote #1

Hi.
Example: de_train, more than 20 players in game, sometimes they get stuck at spawn (spawning on the same position)
I have advanced admn but the teleport feature is not too smart, it teleports you to another player so the same situation occurs, but with that other player xD
All the spawn no-collision plugins mess up the server so I can't really use any.
Any solutions?
__________________
Obyboby is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 11-17-2017 , 14:11   Re: [CSGO] A solution to stuck players
Reply With Quote #2

Maybe disable team collsion(mp_solid_teammates 0) for x secs from the round start?
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!
Papero is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-17-2017 , 19:15   Re: [CSGO] A solution to stuck players
Reply With Quote #3

Quote:
Originally Posted by Papero View Post
Maybe disable team collsion(mp_solid_teammates 0) for x secs from the round start?
There's my solution! Yeah that could actually work well
__________________
Obyboby is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 11-18-2017 , 13:13   Re: [CSGO] A solution to stuck players
Reply With Quote #4

This should disable the team collision for the first 3 seconds.
PHP Code:
#include <sourcemod>

#define PLUGIN_AUTHOR         "Hexah"
#define PLUGIN_VERSION        "1.0"

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo =
{
    
name "TeamCollisionStart",
    
author PLUGIN_AUTHOR,
    
description "",
    
version PLUGIN_VERSION,
    
url "csitajb.it"
};

public 
void OnPluginStart()
{
    
HookEvent("round_start"Event_RoundStart);
}

public 
void Event_RoundStart(Event event, const char[] namebool dontBroadcast)
{
    
SetCvar("mp_solid_teammates"0);
    
CreateTimer(3.0Timer_EnableCollision_TIMER_FLAG_NO_MAPCHANGE);
}


public 
Action Timer_EnableCollision(Handle timer)
{
    
SetCvar("mp_solid_teammates"1);
}

stock void SetCvar(char cvarName[64], int value)
{
    
Handle IntCvar FindConVar(cvarName);
    if (
IntCvar == null)return;
    
    
int flags GetConVarFlags(IntCvar);
    
flags &= ~FCVAR_NOTIFY;
    
SetConVarFlags(IntCvarflags);
    
    
SetConVarInt(IntCvarvalue);
    
    
flags |= FCVAR_NOTIFY;
    
SetConVarFlags(IntCvarflags);

__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!
Papero is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-19-2017 , 19:51   Re: [CSGO] A solution to stuck players
Reply With Quote #5

Quote:
Originally Posted by Papero View Post
This should disable the team collision for the first 3 seconds.
PHP Code:
#include <sourcemod>

#define PLUGIN_AUTHOR         "Hexah"
#define PLUGIN_VERSION        "1.0"

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo =
{
    
name "TeamCollisionStart",
    
author PLUGIN_AUTHOR,
    
description "",
    
version PLUGIN_VERSION,
    
url "csitajb.it"
};

public 
void OnPluginStart()
{
    
HookEvent("round_start"Event_RoundStart);
}

public 
void Event_RoundStart(Event event, const char[] namebool dontBroadcast)
{
    
SetCvar("mp_solid_teammates"0);
    
CreateTimer(3.0Timer_EnableCollision_TIMER_FLAG_NO_MAPCHANGE);
}


public 
Action Timer_EnableCollision(Handle timer)
{
    
SetCvar("mp_solid_teammates"1);
}

stock void SetCvar(char cvarName[64], int value)
{
    
Handle IntCvar FindConVar(cvarName);
    if (
IntCvar == null)return;
    
    
int flags GetConVarFlags(IntCvar);
    
flags &= ~FCVAR_NOTIFY;
    
SetConVarFlags(IntCvarflags);
    
    
SetConVarInt(IntCvarvalue);
    
    
flags |= FCVAR_NOTIFY;
    
SetConVarFlags(IntCvarflags);

Testing asap, thanks
__________________
Obyboby is offline
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 11-19-2017 , 23:36   Re: [CSGO] A solution to stuck players
Reply With Quote #6

Maybe this can be solved by using spawntools to add more spawn points?
https://forums.alliedmods.net/showpo...33&postcount=6
__________________

Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118
rogeraabbccdd is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-20-2017 , 06:25   Re: [CSGO] A solution to stuck players
Reply With Quote #7

Quote:
Originally Posted by rogeraabbccdd View Post
Maybe this can be solved by using spawntools to add more spawn points?
https://forums.alliedmods.net/showpo...33&postcount=6
I'm aware of that plugin, thanks, but I thought a standalone plugin that just toggles the solid teammates console command would be better :p
Let's see if Paperos' code does the job.


EDIT: I've had reports from players about the plugin, seems like it's randomly blocking after spawn.
__________________

Last edited by Obyboby; 11-20-2017 at 12:25.
Obyboby is offline
The Team Ghost
Senior Member
Join Date: Jun 2016
Location: OnClientConnect(int ME)
Old 11-21-2017 , 15:31   Re: [CSGO] A solution to stuck players
Reply With Quote #8

Has this been resolved already?
And how long does it take for players to be able to move after the round has started?
I'm not a die hard CS:GO player to know the time out of my head but 3 seconds seems a little less.
__________________
- Steam

Last edited by The Team Ghost; 11-21-2017 at 15:33.
The Team Ghost is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-21-2017 , 16:02   Re: [CSGO] A solution to stuck players
Reply With Quote #9

Quote:
Originally Posted by The Team Ghost View Post
Has this been resolved already?
And how long does it take for players to be able to move after the round has started?
I'm not a die hard CS:GO player to know the time out of my head but 3 seconds seems a little less.
That depends on mp_freezetime.
I'm currently testing other solutions as this one was randomly blocking players mid-round, according to some of my players. Haven't reproduced it myself though.
__________________
Obyboby is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-21-2017 , 16:02   Re: [CSGO] A solution to stuck players
Reply With Quote #10

use event "round_freeze_end"
__________________
Do not Private Message @me
Bacardi 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 11:54.


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