Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghost spectator when joining retake game #107

Open
MickaNoob opened this issue Apr 7, 2024 · 2 comments
Open

Ghost spectator when joining retake game #107

MickaNoob opened this issue Apr 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@MickaNoob
Copy link

MickaNoob commented Apr 7, 2024

Hi,

I'm posting here just to see if some people have the same bug.
When connecting to a retake, sometimes players are in ghost mode, physically present but invisible in game.

Do you know if this is related to the retake or to CS2?

https://youtu.be/kET7Y-6IwV8

@B3none
Copy link
Owner

B3none commented Apr 7, 2024

I’m not entirely sure what’s causing it:

// TODO: FIGURE OUT WHY THE FUCK I NEED TO DO THIS
var weirdAliveSpectators = Utilities.GetPlayers()
.Where(x => x is { TeamNum: < (int)CsTeam.Terrorist, PawnIsAlive: true });
foreach (var weirdAliveSpectator in weirdAliveSpectators)
{
// I **think** it's caused by auto team balance being on, so turn it off
Server.ExecuteCommand("mp_autoteambalance 0");
weirdAliveSpectator.CommitSuicide(false, true);
}

@MickaNoob
Copy link
Author

Hi,


                // Things you shouldn't change:
                game_mode 1
                game_type 0
                bot_kick
                bot_quota 0
                mp_autoteambalance 0
                mp_forcecamera 1
                mp_give_player_c4 0
                mp_halftime 0
                mp_ignore_round_win_conditions 0
                mp_join_grace_time 5
                mp_match_can_clinch 0
                mp_maxmoney 0
                mp_playercashawards 0
                mp_respawn_on_death_ct 0
                mp_respawn_on_death_t 0
                mp_solid_teammates 1
                mp_teamcashawards 0
                mp_warmup_pausetimer 0
                sv_skirmish_id 0
                mp_match_end_changelevel 1
                cash_team_bonus_shorthanded 0
                cash_team_loser_bonus 0 
                cash_team_loser_bonus_consecutive_rounds 0

                // Things you can change, and may want to:
                mp_roundtime_defuse 0.25
                mp_autokick 0
                mp_c4timer 40
                mp_freezetime 3
                mp_friendlyfire 1
                mp_round_restart_delay 3
                sv_talk_enemy_dead 0
                sv_talk_enemy_living 0
                sv_deadtalk 1
                spec_replay_enable 0
                mp_maxrounds 0
                mp_match_end_restart 0
                mp_timelimit 20
                mp_match_restart_delay 10
                mp_death_drop_gun 1
                mp_death_drop_defuser 1
                mp_death_drop_grenade 0
                mp_warmuptime 10
                mp_drop_grenade_enable 1
                mp_spectators_max 2
                mp_buytime 0
                sv_auto_full_alltalk_during_warmup_half_end true
                sv_vote_issue_kick_allowed false
                mp_team_timeout_max 1


                echo [Retakes] Config loaded!
            

Here is my current configuration on my retakes.
I've tried every possible param but the bug persists,
I'm trying to figure it out, if I ever find a solution I'll let you know.

@B3none B3none added the bug Something isn't working label Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants