[Release/snippet] Fps Boost - r_fullbright toggle
Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Используя этот сайт, вы соглашаетесь Условия использования.
Hey,
as people keep asking for this shit, i've done a r_fullbright toggle thingy.
Not sure how much more fps you will gain, just try it. IMO it's pretty useless but still...
The message which announces the "toggler" will only appear the 1st and the 2nd time the player spawns. More often would be just annoying i guess. The player can toggle the r_fullbright client dvar by pressing
+actionslot1 button (n by default).
It should be working fine with every mod which doesn't set r_fullbright client dvar by default.
And it should work properly in all gamemodes...
Instructions:
Use method 1 or method2(a or
.
Method 1:
Paste this onPlayerConnect(); to one of your .gsc files. Below the: level waittill( "connected", player );
This goes onPlayerSpawned(); after the self waittill("spawned_player");
Last but not least this to the end of the .gsc file:
infoMessage() { self endon("disconnect"); self endon("death"); self.pers[ "message_shown" ]++; wait 0.5; for( i=0; i<3; i++) { self iPrintlnBold("^7Press ^3[{+actionslot 1}] ^7to toggle ^3low graphics"); wait 2; } } watchButton() { self endon("disconnect"); self notifyOnPlayerCommand("dat_dvar", "+actionslot 1"); for(; { self waittill( "dat_dvar" ); self.pers["cur_bright"] = !self.pers["cur_bright"]; self setClientDvar( "r_fullbright", self.pers["cur_bright"]); if( self.pers["cur_bright"] ) self iPrintlnBold("^7High FPS ^3On"); else self iPrintlnBold("^7High FPS ^3Off"); } }Or use this
Method 2:
(a) Assuming you want to add the fullbright toggle to a mod:
1. Download the z_svr_toggle.iwd file and extract it
2. copy-paste the _load.gsc to maps/mp/ folder and the _toggle_graphics.gsc
to your mods maps/mp/gametypes folder.
3. Repack your mod to .iwd (with winrar, 7zip etc.)
(in case your mod already has a _load.gsc don't overwrite it. Just copy paste this line:
thread maps\mp\gametypes\_toggle_graphics::init();
to a suitable position in the file)
(
You don't want to add it to a mod, you just want the toggler:
1. Download the z_svr_toggle.iwd file
2. copy-paste it to suitable folder on your server
Feel free to change the messages, add other dvars or change the hotkey etc.
Virustotal: https://www.virustotal.com/file/7a916ad ... 349776725/