mirror of
https://github.com/0TheSpy/Seaside.git
synced 2025-09-21 05:06:00 +08:00
Add files via upload
This commit is contained in:
@ -387,7 +387,16 @@ bool __stdcall hkCreateMove(float frame_time, CUserCmd* pCmd)
|
|||||||
if (!(pre_flags & (FL_ONGROUND)) && pCmd->buttons & (IN_JUMP))
|
if (!(pre_flags & (FL_ONGROUND)) && pCmd->buttons & (IN_JUMP))
|
||||||
{
|
{
|
||||||
pCmd->buttons &= ~(IN_JUMP);
|
pCmd->buttons &= ~(IN_JUMP);
|
||||||
|
|
||||||
|
if (g_Options.autostrafe) {
|
||||||
|
if (pCmd->mousedx < 0)
|
||||||
|
pCmd->sidemove = -450.0f;
|
||||||
|
if (pCmd->mousedx > 0)
|
||||||
|
pCmd->sidemove = 450.0f;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
short localid = iff.g_pEngineClient->GetLocalPlayer();
|
short localid = iff.g_pEngineClient->GetLocalPlayer();
|
||||||
if (*g_Options.c4timer && *(C_GameRulesProxy**)iff.GameRulesProxy) {
|
if (*g_Options.c4timer && *(C_GameRulesProxy**)iff.GameRulesProxy) {
|
||||||
@ -452,7 +461,7 @@ bool __stdcall hkCreateMove(float frame_time, CUserCmd* pCmd)
|
|||||||
if (i == localid) continue;
|
if (i == localid) continue;
|
||||||
|
|
||||||
C_BasePlayer* Entity = (C_BasePlayer*)iff.g_pEntityList->GetClientEntity(i);
|
C_BasePlayer* Entity = (C_BasePlayer*)iff.g_pEntityList->GetClientEntity(i);
|
||||||
if (Entity && Entity->GetLifeState() == LIFE_DEAD && Entity->GetObserverTarget() == localid)
|
if (Entity && Entity->GetLifeState() == LIFE_DEAD && Entity->GetHealth() < 1 && !Entity->IsDormant() && Entity->GetObserverTarget() == localid)
|
||||||
{
|
{
|
||||||
isSomeoneSpectatingYou = true;
|
isSomeoneSpectatingYou = true;
|
||||||
|
|
||||||
|
@ -1861,17 +1861,16 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice)
|
|||||||
ImGui::Checkbox("C4 timer", g_Options.c4timer);
|
ImGui::Checkbox("C4 timer", g_Options.c4timer);
|
||||||
ImGui::Checkbox("Vote reveal", g_Options.votereveal);
|
ImGui::Checkbox("Vote reveal", g_Options.votereveal);
|
||||||
ImGui::Checkbox("Rank reveal", g_Options.rankreveal);
|
ImGui::Checkbox("Rank reveal", g_Options.rankreveal);
|
||||||
|
|
||||||
|
|
||||||
ImGui::Checkbox("Spectator list", g_Options.speclist);
|
ImGui::Checkbox("Spectator list", g_Options.speclist);
|
||||||
|
ImGui::Checkbox("Fast duck", g_Options.fastduck);
|
||||||
|
ImGui::Checkbox("Slide walk", g_Options.slidewalk);
|
||||||
|
|
||||||
|
/*
|
||||||
if (ImGui::Checkbox("No postprocessing", g_Options.postproc))
|
if (ImGui::Checkbox("No postprocessing", g_Options.postproc))
|
||||||
SetValueUnrestricted("mat_postprocess_enable", !g_Options.postproc);
|
SetValueUnrestricted("mat_postprocess_enable", !g_Options.postproc);
|
||||||
|
|
||||||
|
if (ImGui::Checkbox("No shadows", g_Options.shadows))
|
||||||
//if (ImGui::Checkbox("No shadows", g_Options.shadows))
|
SetValueUnrestricted("cl_csm_enabled", !g_Options.shadows);
|
||||||
// SetValueUnrestricted("cl_csm_enabled", !g_Options.shadows);
|
|
||||||
|
|
||||||
|
|
||||||
style->WindowPadding = ImVec2(5.0f, 5.0f);
|
style->WindowPadding = ImVec2(5.0f, 5.0f);
|
||||||
static string types[3] = { "0", "1", "2" };
|
static string types[3] = { "0", "1", "2" };
|
||||||
@ -1896,17 +1895,15 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice)
|
|||||||
}
|
}
|
||||||
style->WindowPadding = ImVec2(20.f, 20.0f);
|
style->WindowPadding = ImVec2(20.f, 20.0f);
|
||||||
|
|
||||||
//if (ImGui::Checkbox("Gray world", g_Options.drawgray))
|
if (ImGui::Checkbox("Gray world", g_Options.drawgray))
|
||||||
// SetValueUnrestricted("mat_drawgray", g_Options.drawgray);
|
SetValueUnrestricted("mat_drawgray", g_Options.drawgray);
|
||||||
|
|
||||||
//if (ImGui::Checkbox("Low res world", g_Options.showlowresimage))
|
|
||||||
// SetValueUnrestricted("mat_showlowresimage", g_Options.showlowresimage);
|
|
||||||
|
|
||||||
|
if (ImGui::Checkbox("Low res world", g_Options.showlowresimage))
|
||||||
|
SetValueUnrestricted("mat_showlowresimage", g_Options.showlowresimage);
|
||||||
|
*/
|
||||||
|
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (ImGui::SliderFloat("Viewmodel pos X", g_Options.viewmodel_x, -90.0f, 90.0f))
|
if (ImGui::SliderFloat("Viewmodel pos X", g_Options.viewmodel_x, -90.0f, 90.0f))
|
||||||
SetValueUnrestricted("viewmodel_offset_x", g_Options.viewmodel_x);
|
SetValueUnrestricted("viewmodel_offset_x", g_Options.viewmodel_x);
|
||||||
if (ImGui::SliderFloat("Viewmodel pos Y", g_Options.viewmodel_y, -90.0f, 90.0f))
|
if (ImGui::SliderFloat("Viewmodel pos Y", g_Options.viewmodel_y, -90.0f, 90.0f))
|
||||||
@ -1919,6 +1916,16 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice)
|
|||||||
|
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
|
||||||
|
ImGui::Checkbox("Bunny hop", g_Options.bunnyhop);
|
||||||
|
|
||||||
|
style->ItemSpacing = ImVec2(7.0f, 10.0f);
|
||||||
|
|
||||||
|
DisableElements(*g_Options.bunnyhop, 1);
|
||||||
|
ImGui::Checkbox("Auto strafe", g_Options.autostrafe);
|
||||||
|
DisableElements(*g_Options.bunnyhop, 0);
|
||||||
|
|
||||||
|
style->ItemSpacing = ImVec2(7.0f, 15.0f);
|
||||||
|
|
||||||
ImGui::SliderFloat("FOV", g_Options.fov, 0, 360);
|
ImGui::SliderFloat("FOV", g_Options.fov, 0, 360);
|
||||||
|
|
||||||
if (ImGui::SliderFloat("Viewmodel FOV", g_Options.viewmodel_fov, 0, 180.0f))
|
if (ImGui::SliderFloat("Viewmodel FOV", g_Options.viewmodel_fov, 0, 180.0f))
|
||||||
@ -1929,35 +1936,12 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice)
|
|||||||
SetValueUnrestricted("r_aspectratio", g_Options.aspectratio);
|
SetValueUnrestricted("r_aspectratio", g_Options.aspectratio);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (ImGui::Checkbox("No viewmodel bob", g_Options.viewmodel_moving))
|
|
||||||
{
|
|
||||||
if (g_Options.viewmodel_moving)
|
|
||||||
{
|
|
||||||
SetValueUnrestricted("cl_viewmodel_shift_left_amt", 0);
|
|
||||||
SetValueUnrestricted("cl_viewmodel_shift_right_amt", 0);
|
|
||||||
SetValueUnrestricted("cl_bob_lower_amt", 0);
|
|
||||||
SetValueUnrestricted("cl_bobamt_lat", 0);
|
|
||||||
SetValueUnrestricted("cl_bobamt_vert", 0);
|
|
||||||
SetValueUnrestricted("cl_wpn_sway_scale", 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetValueUnrestricted("cl_viewmodel_shift_left_amt", GetVisibleFloat("cl_viewmodel_shift_left_amt"));
|
|
||||||
SetValueUnrestricted("cl_viewmodel_shift_right_amt", GetVisibleFloat("cl_viewmodel_shift_right_amt"));
|
|
||||||
SetValueUnrestricted("cl_bob_lower_amt", GetVisibleFloat("cl_bob_lower_amt"));
|
|
||||||
SetValueUnrestricted("cl_bobamt_lat", GetVisibleFloat("cl_bobamt_lat"));
|
|
||||||
SetValueUnrestricted("cl_bobamt_vert", GetVisibleFloat("cl_bobamt_vert"));
|
|
||||||
SetValueUnrestricted("cl_wpn_sway_scale", GetVisibleFloat("cl_wpn_sway_scale"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (ImGui::InputFloat("Ragdoll Gravity", g_Options.ragdollgravity))
|
if (ImGui::InputFloat("Ragdoll Gravity", g_Options.ragdollgravity))
|
||||||
iff.g_pCVar->FindVar("cl_ragdoll_gravity")->SetValue(g_Options.ragdollgravity);
|
iff.g_pCVar->FindVar("cl_ragdoll_gravity")->SetValue(g_Options.ragdollgravity);
|
||||||
|
|
||||||
if (ImGui::InputFloat("Ragdoll Timescale", g_Options.ragdolltime))
|
if (ImGui::InputFloat("Ragdoll Timescale", g_Options.ragdolltime))
|
||||||
SetValueUnrestricted("cl_phys_timescale", g_Options.ragdolltime);
|
SetValueUnrestricted("cl_phys_timescale", g_Options.ragdolltime);
|
||||||
|
*/
|
||||||
|
|
||||||
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 67.0f);
|
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 67.0f);
|
||||||
if (ImGui::Button("Reset", ImVec2(70, 22)))
|
if (ImGui::Button("Reset", ImVec2(70, 22)))
|
||||||
@ -1972,7 +1956,8 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (ImGui::BeginTabItem("Movement"))
|
/*
|
||||||
|
if (ImGui::BeginTabItem("Test"))
|
||||||
{
|
{
|
||||||
style->ChildBorderSize = 0; style->WindowPadding = ImVec2(20.0f, 5.0f);
|
style->ChildBorderSize = 0; style->WindowPadding = ImVec2(20.0f, 5.0f);
|
||||||
if (ImGui::BeginChild("ChildTab", ImVec2(665, 350), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_AlwaysUseWindowPadding)) {
|
if (ImGui::BeginChild("ChildTab", ImVec2(665, 350), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_AlwaysUseWindowPadding)) {
|
||||||
@ -1980,10 +1965,6 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice)
|
|||||||
|
|
||||||
ImGui::Columns(2, nullptr, false);
|
ImGui::Columns(2, nullptr, false);
|
||||||
|
|
||||||
ImGui::Checkbox("Bunny hop", g_Options.bunnyhop);
|
|
||||||
ImGui::Checkbox("Fast duck", g_Options.fastduck);
|
|
||||||
ImGui::Checkbox("Slide walk", g_Options.slidewalk);
|
|
||||||
|
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
|
||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
@ -1991,6 +1972,7 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice)
|
|||||||
|
|
||||||
ImGui::EndTabItem();
|
ImGui::EndTabItem();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (ImGui::BeginTabItem("About"))
|
if (ImGui::BeginTabItem("About"))
|
||||||
@ -2012,7 +1994,6 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice)
|
|||||||
ImGui::TextColored(colwhite, XorStr("Check for updates"));
|
ImGui::TextColored(colwhite, XorStr("Check for updates"));
|
||||||
ImGui::Text(XorStr("unknowncheats.me"));
|
ImGui::Text(XorStr("unknowncheats.me"));
|
||||||
|
|
||||||
style->ItemSpacing = ImVec2(20.0f, 9.0f);
|
|
||||||
|
|
||||||
if (ImGui::Checkbox("Output NetMsg, UserMsg, DevMsg", g_Options.debugstuff))
|
if (ImGui::Checkbox("Output NetMsg, UserMsg, DevMsg", g_Options.debugstuff))
|
||||||
{
|
{
|
||||||
@ -2037,7 +2018,7 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice)
|
|||||||
static int selected = 0;
|
static int selected = 0;
|
||||||
static char name[255] = "";
|
static char name[255] = "";
|
||||||
|
|
||||||
style->ItemSpacing = ImVec2(7.0f, 2.0f);
|
style->ItemSpacing = ImVec2(20.0f, 9.0f);
|
||||||
if (ImGui::BeginListBox("##cfgs", ImVec2(251.0f, 5 * ImGui::GetTextLineHeightWithSpacing())))
|
if (ImGui::BeginListBox("##cfgs", ImVec2(251.0f, 5 * ImGui::GetTextLineHeightWithSpacing())))
|
||||||
{
|
{
|
||||||
ImGui::PushFont(ifontmini);
|
ImGui::PushFont(ifontmini);
|
||||||
|
@ -690,6 +690,7 @@ public:
|
|||||||
OPTION(bool, showlowresimage, 0);
|
OPTION(bool, showlowresimage, 0);
|
||||||
|
|
||||||
OPTION(bool, bunnyhop, 0);
|
OPTION(bool, bunnyhop, 0);
|
||||||
|
OPTION(bool, autostrafe, 0);
|
||||||
OPTION(bool, slidewalk, 0);
|
OPTION(bool, slidewalk, 0);
|
||||||
OPTION(bool, fastduck, 0);
|
OPTION(bool, fastduck, 0);
|
||||||
OPTION(int, changing_name, 0);
|
OPTION(int, changing_name, 0);
|
||||||
|
Reference in New Issue
Block a user