AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [CSGO] A solution to stuck players (https://forums.alliedmods.net/showthread.php?t=302947)

Obyboby 11-17-2017 13:46

[CSGO] A solution to stuck players
 
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?

Papero 11-17-2017 14:11

Re: [CSGO] A solution to stuck players
 
Maybe disable team collsion(mp_solid_teammates 0) for x secs from the round start?

Obyboby 11-17-2017 19:15

Re: [CSGO] A solution to stuck players
 
Quote:

Originally Posted by Papero (Post 2561061)
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 :)

Papero 11-18-2017 13:13

Re: [CSGO] A solution to stuck players
 
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);



Obyboby 11-19-2017 19:51

Re: [CSGO] A solution to stuck players
 
Quote:

Originally Posted by Papero (Post 2561260)
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

rogeraabbccdd 11-19-2017 23:36

Re: [CSGO] A solution to stuck players
 
Maybe this can be solved by using spawntools to add more spawn points?
https://forums.alliedmods.net/showpo...33&postcount=6

Obyboby 11-20-2017 06:25

Re: [CSGO] A solution to stuck players
 
Quote:

Originally Posted by rogeraabbccdd (Post 2561577)
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.

The Team Ghost 11-21-2017 15:31

Re: [CSGO] A solution to stuck players
 
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.

Obyboby 11-21-2017 16:02

Re: [CSGO] A solution to stuck players
 
Quote:

Originally Posted by The Team Ghost (Post 2561999)
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.

Bacardi 11-21-2017 16:02

Re: [CSGO] A solution to stuck players
 
use event "round_freeze_end"


All times are GMT -4. The time now is 17:17.

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