From 271292d8f916022d27520d1f45b83f09131c2c01 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sat, 25 Sep 2010 02:15:54 +0300 Subject: [PATCH] g_deathspeed. A cruel way to fix the bot falling issue on Brokenworld somehow --- data/defaultVoretournament.cfg | 18 ++++++++++-------- data/qcsrc/server/cl_physics.qc | 4 ++++ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index 45e5d176..536dc2a2 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -268,7 +268,7 @@ seta sv_precacheitems 0 set sv_spectator_speed_multiplier 1.5 seta sv_spectate 1 "if set to 1, new clients are allowed to spectate or observe the game, if set to 0 joining clients spawn as players immediately (no spectating)" seta sv_defaultcharacter 0 "master switch, if set to 1 the further configuration for replacing all player models, skins and colors is taken from the sv_defaultplayermodel, sv_defaultplayerskin and sv_defaultplayercolors variables" -seta sv_defaultplayermodel "models/player/nexus.zym" "default model selection, only works if sv_defaultcharacter is set to 1" +seta sv_defaultplayermodel "models/player/vixen.zym" "default model selection, only works if sv_defaultcharacter is set to 1" seta sv_defaultplayerskin 0 "each model has 1 or more skins (combination of model and skin = character), set which skin of the model you wish the default character to have, only works if sv_defaultcharacter is set to 1" seta sv_defaultplayermodel_red "" "\"\" means see sv_defaultplayermodel" seta sv_defaultplayerskin_red 0 @@ -433,6 +433,8 @@ seta g_balance_cloaked_alpha 0.25 set g_playerclip_collisions 1 "0 = disable collision testing against playerclips, might be useful on some defrag maps" +set g_deathspeed 6000 "players going faster than this will die" + set welcome_message_time 8 alias clearmap "disconnect" @@ -905,13 +907,13 @@ alias singleplayer_continue "set scmenu_campaign_goto -1" alias singleplayer_levellist "set scmenu_campaign_dump 1; togglemenu; wait; togglemenu" // Green's fullbright skins -alias cl_fbskin_green "playermodel models/player/nexus.zym; playerskin 6; color 3 3" -alias cl_fbskin_red "playermodel models/player/nexus.zym; playerskin 6; color 4 4" -alias cl_fbskin_orange "playermodel models/player/nexus.zym; playerskin 6; color 14 14" -alias cl_fbskin_off "playermodel models/player/nexus.zym; playerskin 0" -alias sv_fbskin_green "g_fullbrightplayers 1; sv_defaultcharacter 1; sv_defaultplayermodel models/player/nexus.zym; sv_defaultplayerskin 6; sv_defaultplayercolors 51" -alias sv_fbskin_red "g_fullbrightplayers 1; sv_defaultcharacter 1; sv_defaultplayermodel models/player/nexus.zym; sv_defaultplayerskin 6; sv_defaultplayercolors 68" -alias sv_fbskin_orange "g_fullbrightplayers 1; sv_defaultcharacter 1; sv_defaultplayermodel models/player/nexus.zym; sv_defaultplayerskin 6; sv_defaultplayercolors 238" +alias cl_fbskin_green "playermodel models/player/vixen.zym; playerskin 6; color 3 3" +alias cl_fbskin_red "playermodel models/player/vixen.zym; playerskin 6; color 4 4" +alias cl_fbskin_orange "playermodel models/player/vixen.zym; playerskin 6; color 14 14" +alias cl_fbskin_off "playermodel models/player/vixen.zym; playerskin 0" +alias sv_fbskin_green "g_fullbrightplayers 1; sv_defaultcharacter 1; sv_defaultplayermodel models/player/vixen.zym; sv_defaultplayerskin 6; sv_defaultplayercolors 51" +alias sv_fbskin_red "g_fullbrightplayers 1; sv_defaultcharacter 1; sv_defaultplayermodel models/player/vixen.zym; sv_defaultplayerskin 6; sv_defaultplayercolors 68" +alias sv_fbskin_orange "g_fullbrightplayers 1; sv_defaultcharacter 1; sv_defaultplayermodel models/player/vixen.zym; sv_defaultplayerskin 6; sv_defaultplayercolors 238" alias sv_fbskin_off "g_fullbrightplayers 0; sv_defaultcharacter 0; sv_defaultplayerskin 0; sv_defaultplayercolors \"\"" seta sv_servermodelsonly 1 diff --git a/data/qcsrc/server/cl_physics.qc b/data/qcsrc/server/cl_physics.qc index 8f9812f4..0224bd01 100644 --- a/data/qcsrc/server/cl_physics.qc +++ b/data/qcsrc/server/cl_physics.qc @@ -1157,6 +1157,10 @@ void SV_PlayerPhysics() } } } + + if(vlen(self.velocity) > cvar("g_deathspeed")) + Damage(self, world, world, 100000, DEATH_KILL, self.origin, '0 0 0'); + :end if(self.flags & FL_ONGROUND) self.lastground = time; -- 2.39.2