• Ищем качественного (не новичок) разработчиков Xenforo для этого форума! В идеале, чтобы ты был фулл стек программистом. Если у тебя есть что показать, то свяжись с нами по контактным данным: https://t.me/DREDD

Вопрос FPS boost

  • Автор темы Автор темы KYOJlN
  • Дата начала Дата начала
  • Теги Теги
    fps
Начинающий
Начинающий
Статус
Оффлайн
Регистрация
26 Май 2021
Сообщения
17
Реакции
0
Ребята помогите мне, сделать FPS boost по чек боксу (Я нажимаю чек бокс FPS boost включается, и наоборот)

ВОТ КОД!!!!!

Cheat.ExecuteCommand( "cl_csm_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_rope_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_world_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_world_shadows_in_viewmodelcascade 0" );
Cheat.ExecuteCommand( "cl_csm_static_prop_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_sprite_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_translucent_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_viewmodel_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_entity_shadows 0" );

Cheat.ExecuteCommand( "r_shadows 0" );
Cheat.ExecuteCommand( "r_3dsky 0" );

Cheat.ExecuteCommand( "fog_enable 0" );
Cheat.ExecuteCommand( "fog_enable_water_fog 0" );
Cheat.ExecuteCommand( "fog_enableskybox 0" );
Cheat.ExecuteCommand( "mat_disable_bloom 1" );
 
Ребята помогите мне, сделать FPS boost по чек боксу (Я нажимаю чек бокс FPS boost включается, и наоборот)

ВОТ КОД!!!!!

Cheat.ExecuteCommand( "cl_csm_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_rope_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_world_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_world_shadows_in_viewmodelcascade 0" );
Cheat.ExecuteCommand( "cl_csm_static_prop_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_sprite_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_translucent_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_viewmodel_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_entity_shadows 0" );

Cheat.ExecuteCommand( "r_shadows 0" );
Cheat.ExecuteCommand( "r_3dsky 0" );

Cheat.ExecuteCommand( "fog_enable 0" );
Cheat.ExecuteCommand( "fog_enable_water_fog 0" );
Cheat.ExecuteCommand( "fog_enableskybox 0" );
Cheat.ExecuteCommand( "mat_disable_bloom 1" );
JavaScript:
Expand Collapse Copy
UI.AddCheckbox("fps boost");
var fben = UI.GetValue("Script items", "fps boost")
function fb(){
    if (fben) {
       Cheat.ExecuteCommand( "cl_csm_shadows 0" );
       Cheat.ExecuteCommand( "cl_csm_rope_shadows 0" );
       Cheat.ExecuteCommand( "cl_csm_world_shadows 0" );
       Cheat.ExecuteCommand( "cl_csm_world_shadows_in_viewmodelcascade 0" );
       Cheat.ExecuteCommand( "cl_csm_static_prop_shadows 0" );
       Cheat.ExecuteCommand( "cl_csm_sprite_shadows 0" );
       Cheat.ExecuteCommand( "cl_csm_translucent_shadows 0" );
       Cheat.ExecuteCommand( "cl_csm_viewmodel_shadows 0" );
       Cheat.ExecuteCommand( "cl_csm_entity_shadows 0" );
       Cheat.ExecuteCommand( "r_shadows 0" );
       Cheat.ExecuteCommand( "r_3dsky 0" );
       Cheat.ExecuteCommand( "fog_enable 0" );
       Cheat.ExecuteCommand( "fog_enable_water_fog 0" );
       Cheat.ExecuteCommand( "fog_enableskybox 0" );
       Cheat.ExecuteCommand( "mat_disable_bloom 1" );
    }
 else {
       Cheat.ExecuteCommand( "cl_csm_shadows 1" );
       Cheat.ExecuteCommand( "cl_csm_rope_shadows 1" );
       Cheat.ExecuteCommand( "cl_csm_world_shadows 1" );
       Cheat.ExecuteCommand( "cl_csm_world_shadows_in_viewmodelcascade 1" );
       Cheat.ExecuteCommand( "cl_csm_static_prop_shadows 1" );
       Cheat.ExecuteCommand( "cl_csm_sprite_shadows 1" );
       Cheat.ExecuteCommand( "cl_csm_translucent_shadows 1" );
       Cheat.ExecuteCommand( "cl_csm_viewmodel_shadows 1" );
       Cheat.ExecuteCommand( "cl_csm_entity_shadows 1" );
       Cheat.ExecuteCommand( "r_shadows 1" );
       Cheat.ExecuteCommand( "r_3dsky 1" );
       Cheat.ExecuteCommand( "fog_enable 1" );
       Cheat.ExecuteCommand( "fog_enable_water_fog 1" );
       Cheat.ExecuteCommand( "fog_enableskybox 1" );
       Cheat.ExecuteCommand( "mat_disable_bloom 0" );
}
}
Cheat.RegisterCallback("Draw", "fb")
 
я включаю FPS boost, все становится чёрным, это можно исправить просто перезапустить джс, но можно это как-то пофиксить?
 
Назад
Сверху Снизу