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

[CS:GO] Disabling Autokick for Team Attack with new update


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sheepdude
SourceMod Donor
Join Date: Aug 2012
Location: Chicago
Old 12-04-2012 , 17:33   [CS:GO] Disabling Autokick for Team Attack with new update
Reply With Quote #1

These are the relevant cvars for autokick commands:

// Kick idle/team-killing players
// Flags: FCVAR_GAMEDLL|FCVAR_REPLICATED|FCVAR_RELEASE
// Default: "1"
mp_autokick "1"

// Terrorist are kicked for killing too much hostages
// Flags: FCVAR_DEVELOPMENTONLY|FCVAR_GAMEDLL|FCVAR_NOT IFY
// Default: "10"
mp_hostagepenalty "10"

// Kick players who team-kill within this many seconds of a round restart.
// Flags: FCVAR_DEVELOPMENTONLY|FCVAR_GAMEDLL|FCVAR_REP LICAT ED
// Default: "5"
mp_spawnprotectiontime "5"

// The damage threshhold players have to exceed in a match to get kicked.
// Flags: FCVAR_DEVELOPMENTONLY|FCVAR_GAMEDLL|FCVAR_REP LICAT ED
// Default: "300"
mp_td_dmgtokick "300"

// The damage threshhold players have to exceed in a match to get warned that they are about to be kicked.
// Flags: FCVAR_DEVELOPMENTONLY|FCVAR_GAMEDLL|FCVAR_REP LICAT ED
// Default: "200"
mp_td_dmgtowarn "200"

// The damage threshold players have to exceed at the start of the round to be warned/kick.
// Flags: FCVAR_DEVELOPMENTONLY|FCVAR_GAMEDLL|FCVAR_REP LICAT ED
// Default: "50"
mp_td_spawndmgthreshold "50"

The FCVAR_DEVELOPMENTONLY flags are worrying: apparently you can only change these with sm_cvar and not through normal means. Which essentially means Valve has forced autokick for team damaging on every server that isn't modded. For shame.
Attached Files
File Type: sp Get Plugin or Get Source (updatefix.sp - 1526 views - 675 Bytes)
__________________

Last edited by Sheepdude; 12-04-2012 at 19:38.
Sheepdude is offline
yannick
Member
Join Date: Oct 2012
Old 12-05-2012 , 07:45   Re: [CS:GO] Disabling Autokick for Team Attack with new update
Reply With Quote #2

thanks dude, i hope valve is fixing this asap
yannick is offline
darKeD
Junior Member
Join Date: Sep 2012
Old 12-05-2012 , 08:48   Re: [CS:GO] Disabling Autokick for Team Attack with new update
Reply With Quote #3

Works.


^^
darKeD is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-05-2012 , 11:18   Re: [CS:GO] Disabling Autokick for Team Attack with new update
Reply With Quote #4

Quote:
Originally Posted by Sheepdude View Post
The FCVAR_DEVELOPMENTONLY flags are worrying: apparently you can only change these with sm_cvar and not through normal means. Which essentially means Valve has forced autokick for team damaging on every server that isn't modded. For shame.
It's likely just an oversight, newer versions of the engine (including CS:GO's) automatically flag all cvars not explicitly flagged FCVAR_RELEASE as FCVAR_DEVELOPMENTONLY.
__________________

Last edited by asherkin; 12-05-2012 at 11:20.
asherkin is offline
Sheepdude
SourceMod Donor
Join Date: Aug 2012
Location: Chicago
Old 12-05-2012 , 15:12   Re: [CS:GO] Disabling Autokick for Team Attack with new update
Reply With Quote #5

An annoying oversight. =P
__________________
Sheepdude is offline
wired9119
Junior Member
Join Date: Aug 2017
Old 08-15-2017 , 11:30   Re: [CS:GO] Disabling Autokick for Team Attack with new update
Reply With Quote #6

Hi,

I'm retarded so I don't know where to put this stuff. Can you help me?? thx. Srry for me being a noob
wired9119 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-15-2017 , 15:23   Re: [CS:GO] Disabling Autokick for Team Attack with new update
Reply With Quote #7

Quote:
Originally Posted by wired9119 View Post
Hi,

I'm retarded so I don't know where to put this stuff. Can you help me?? thx. Srry for me being a noob
https://developer.valvesoftware.com/...ual_server.cfg

Depends which game mode you are running on your server.

But for example, casual (game_type 0; game_mode 0).
Server execute this Valve default config file on every map change, ...csgo/cfg/gamemode_casual.cfg

To override cvar settings inside gamemode_casual.cfg, create config file
...csgo/cfg/gamemode_casual_server.cfg
and add your cvars there
Code:
// Kick idle/team-killing players
// Flags: FCVAR_GAMEDLL|FCVAR_REPLICATED|FCVAR_RELEASE
// Default: "1"
mp_autokick "1"

// Terrorist are kicked for killing too much hostages
// Flags: FCVAR_DEVELOPMENTONLY|FCVAR_GAMEDLL|FCVAR_NOT IFY
// Default: "10"
mp_hostagepenalty "10"

// Kick players who team-kill within this many seconds of a round restart.
// Flags: FCVAR_DEVELOPMENTONLY|FCVAR_GAMEDLL|FCVAR_REP LICAT ED
// Default: "5"
mp_spawnprotectiontime "5"

// The damage threshhold players have to exceed in a match to get kicked.
// Flags: FCVAR_DEVELOPMENTONLY|FCVAR_GAMEDLL|FCVAR_REP LICAT ED
// Default: "300"
mp_td_dmgtokick "300"

// The damage threshhold players have to exceed in a match to get warned that they are about to be kicked.
// Flags: FCVAR_DEVELOPMENTONLY|FCVAR_GAMEDLL|FCVAR_REP LICAT ED
// Default: "200"
mp_td_dmgtowarn "200"

// The damage threshold players have to exceed at the start of the round to be warned/kick.
// Flags: FCVAR_DEVELOPMENTONLY|FCVAR_GAMEDLL|FCVAR_REP LICAT ED
// Default: "50"
mp_td_spawndmgthreshold "50"


*edit
If you edit Valve default config files, those files will be reset back after updating SRCDS through SteamCMD.
__________________
Do not Private Message @me

Last edited by Bacardi; 08-15-2017 at 15:27.
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 09:52.


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