?
-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
JavaScript:
UI.AddCheckbox("Sun Set Mode")
UI.AddSliderInt("Sunset X", -100, 100)
UI.AddSliderInt("Sunset Y", -100, 100)
UI.AddSliderInt("Sunset Z", -100, 100)
function sun_set() {
if (UI.GetValue("Sun Set Mode")) {
Convar.SetString("cl_csm_rot_override", "1");
Convar.SetString("cl_csm_rot_x", UI.GetValue("Script items", "Sunset X").toString());
Convar.SetString("cl_csm_rot_y", UI.GetValue("Script items", "Sunset Y").toString());
Convar.SetString("cl_csm_rot_z", UI.GetValue("Script items", "Sunset Z").toString());
} else {
Convar.SetString("cl_csm_rot_override", "0");
}
}
Cheat.RegisterCallback("CreateMove", "sun_set")
JavaScript:
UI.AddSubTab(["Rage", "SUBTAB_MGR"], "sun set");
UI.AddCheckbox(["Rage", "sun set", "sun set"], "Sun Set Mode")
UI.AddSliderInt(["Rage", "sun set", "sun set"], "Sunset X", -100, 100)
UI.AddSliderInt(["Rage", "sun set", "sun set"], "Sunset Y", -100, 100)
UI.AddSliderInt(["Rage", "sun set", "sun set"], "Sunset Z", -100, 100)
function sun_set() {
if (UI.GetValue(["Rage", "sun set", "Sun Set Mode"])) {
Convar.SetInt("cl_csm_rot_override", 1);
Convar.SetInt("cl_csm_rot_x", UI.GetValue(["Rage", "sun set", "sun set", "Sunset X"]));
Convar.SetInt("cl_csm_rot_y", UI.GetValue(["Rage", "sun set", "sun set", "Sunset Y"]));
Convar.SetInt("cl_csm_rot_z", UI.GetValue(["Rage", "sun set", "sun set", "Sunset Z"]));
} else {
Convar.SetInt("cl_csm_rot_override", 0);
}
}
Cheat.RegisterCallback("CreateMove", "sun_set")
Вложения
-
339 байт Просмотры: 118
Последнее редактирование: