Compare commits

..

21 Commits

Author SHA1 Message Date
f06b2a7774 yaas, clean up..
All checks were successful
ci/woodpecker/push/test-build Pipeline was successful
2025-07-30 14:16:53 +07:00
7c0ad381d5 please build 2
All checks were successful
ci/woodpecker/push/test-build Pipeline was successful
2025-07-30 14:14:07 +07:00
f980055d35 what are missing
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 13:58:15 +07:00
6d7824a269 i understand it now
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 13:53:22 +07:00
88e40fc2a1 test
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 13:46:43 +07:00
b8b5076bae test 1
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 13:44:25 +07:00
59503ee3d7 idk
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 13:38:19 +07:00
674c1f47b6 or maybe because of this
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 13:28:50 +07:00
d6403ce57f debug 1
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 13:25:53 +07:00
d26aa417c3 bro the spcomp is literaly right there
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 12:42:23 +07:00
2a32bd27ba nothing in this envirnoment is making sense
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 12:40:07 +07:00
1ec3571fcc please build
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 12:37:46 +07:00
83a4ae6d26 oh forget it
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 12:31:48 +07:00
1aa34c9674 wtf tar
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 12:28:31 +07:00
a73f012e41 this tar is so weird
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 12:23:37 +07:00
727e4e8e09 debug 1
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 12:12:47 +07:00
ab6c7683c4 what the hell tar
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 12:09:13 +07:00
d3ab8db2d8 test debug list downloaded files
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 12:01:41 +07:00
e45ff5c479 wrong syntax idiot
Some checks failed
ci/woodpecker/push/test-build Pipeline failed
2025-07-30 11:56:55 +07:00
18514e414c just please woodpecker start the fucking pipeline 2025-07-30 11:55:50 +07:00
fb13bb837a Add test build pipeline 2025-07-30 11:50:09 +07:00
3 changed files with 38 additions and 141 deletions

View File

@ -1,13 +1,6 @@
kind: pipeline
type: docker
name: default
trigger:
branch:
- main
- new/drone-pipeline
event:
- push
when:
- branch: [main, new/woodpecker-pipeline]
event: push
steps:
- name: getbuildtools

View File

@ -1,131 +0,0 @@
#include <sourcemod>
#include <sdktools>
public Plugin myinfo = {
name = "AdminGod",
author = "Nonszy",
description = "Admin-only ttols",
version = "1.0.1",
url = "https://gitea.nonszy.space/nomi-nonsz/left4dead2-admingod"
};
bool g_bGodmode[MAXPLAYERS + 1];
public void OnClientPutInServer(int client)
{
if (!IsClientInGame(client) || IsFakeClient(client)) return;
char name[64];
char steamID[64];
GetClientName(client, name, sizeof(name));
GetClientAuthId(client, AuthId_Steam2, steamID, sizeof(steamID));
PrintToServer("[ClientLogger] %s (%s) connected", name, steamID);
LogAction(client, -1, "%s (%s) has connected to the server", name, steamID);
}
public void OnPluginStart() {
RegAdminCmd("sm_quick_noclip", Command_QuickNoclip, ADMFLAG_SLAY|ADMFLAG_CHEATS);
RegAdminCmd("sm_god", Command_Godmode, ADMFLAG_SLAY|ADMFLAG_CHEATS);
RegAdminCmd("sm_give", Command_Give, ADMFLAG_SLAY|ADMFLAG_CHEATS);
RegAdminCmd("sm_spawn", Command_Spawn, ADMFLAG_SLAY|ADMFLAG_CHEATS);
}
public void ExecCommand(int client, char[] command) {
int flagsgive = GetCommandFlags("give");
int flagszspawn = GetCommandFlags("z_spawn_old");
SetCommandFlags("give", flagsgive & ~FCVAR_CHEAT);
SetCommandFlags("z_spawn_old", flagszspawn & ~FCVAR_CHEAT);
FakeClientCommand(client, command);
SetCommandFlags("give", flagsgive|FCVAR_CHEAT);
SetCommandFlags("z_spawn_old", flagsgive|FCVAR_CHEAT);
}
public Action Command_QuickNoclip(int client, int args) {
if (!IsClientInGame(client) || !IsPlayerAlive(client)) return Plugin_Handled;
if (!CheckCommandAccess(client, "sm_noclip", ADMFLAG_CHEATS)) {
PrintToChat(client, "[SM] You do not have permission to use noclip.");
return Plugin_Handled;
}
MoveType flags = GetEntityMoveType(client);
if (flags == MOVETYPE_NOCLIP) {
SetEntityMoveType(client, MOVETYPE_WALK);
PrintToChat(client, "[SM] Noclip OFF.");
} else {
SetEntityMoveType(client, MOVETYPE_NOCLIP);
PrintToChat(client, "[SM] Noclip ON.");
}
return Plugin_Handled;
}
public Action Command_Godmode(int client, int args)
{
if (!IsClientInGame(client) || !IsPlayerAlive(client)) return Plugin_Handled;
g_bGodmode[client] = !g_bGodmode[client];
if (g_bGodmode[client])
{
SetEntProp(client, Prop_Data, "m_takedamage", 0);
PrintToChat(client, "[Godmode] (godmode ON)");
}
else
{
SetEntProp(client, Prop_Data, "m_takedamage", 2);
PrintToChat(client, "[Godmode] (godmode OFF)");
}
return Plugin_Handled;
}
public Action Command_Give(int client, int args)
{
if (!IsClientInGame(client) || !IsPlayerAlive(client)) return Plugin_Handled;
if (args < 1)
{
ReplyToCommand(client, "[SM] Usage: sm_give <itemname>");
return Plugin_Handled;
}
char arg[64];
GetCmdArg(1, arg, sizeof(arg));
char cmd[64];
StrCat(cmd, sizeof(cmd), "give ");
StrCat(cmd, sizeof(cmd), arg);
ExecCommand(client, cmd);
return Plugin_Handled;
}
public Action Command_Spawn(int client, int args)
{
if (!IsClientInGame(client) || !IsPlayerAlive(client)) return Plugin_Handled;
if (args < 1)
{
ReplyToCommand(client, "[SM] Usage: sm_spawn <entity>");
return Plugin_Handled;
}
char arg[64];
GetCmdArg(1, arg, sizeof(arg));
char cmd[64];
StrCat(cmd, sizeof(cmd), "z_spawn_old ");
StrCat(cmd, sizeof(cmd), arg);
ExecCommand(client, cmd);
return Plugin_Handled;
}

35
scripting/admmingod.sp Normal file
View File

@ -0,0 +1,35 @@
#include <sourcemod>
#include <sdktools>
public Plugin myinfo = {
name = "AdminGod",
author = "Nonszy",
description = "Admin-only ttols",
version = "1.0",
url = "https://gitea.nonszy.space/nomi-nonsz/left4dead2-admingod"
};
public void OnPluginStart() {
RegConsoleCmd("slot10", Cmd_Slot10);
}
public Action Cmd_Slot10(int client, int args) {
if (!IsClientInGame(client) || !IsPlayerAlive(client)) return Plugin_Handled;
if (!CheckCommandAccess(client, "noclip_admin", ADMFLAG_GENERIC)) {
PrintToChat(client, "[SM] You do not have permission to use noclip.");
return Plugin_Handled;
}
int flags = GetEntityMoveType(client);
if (flags == MOVETYPE_NOCLIP) {
SetEntityMoveType(client, MOVETYPE_WALK);
PrintToChat(client, "[SM] Noclip OFF.");
} else {
SetEntityMoveType(client, MOVETYPE_NOCLIP);
PrintToChat(client, "[SM] Noclip ON.");
}
return Plugin_Handled;
}