This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assuming deps installed as per: https://github.com/NeotokyoRebuild/neo?tab=readme-ov-file#linux-prerequisite---steam-runtime-3-sniper-container | |
# Assuming pwd of NT;RE code repo root dir. | |
# Following the "buildenv" command, enter the following commands inside the container: | |
# cd /root/neo/src | |
# cmake --preset linux-debug # or linux-release | |
# cmake --build --preset linux-debug # or linux-release | |
alias buildenv='sudo docker run -v .:/root/neo/ --rm -it --entrypoint / | |
│ bin/bash registry.gitlab.steamos.cloud/steamrt/sniper/sdk' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
from pathlib import Path | |
import subprocess | |
# Without file extension | |
PLUGIN = "nt_spec_quicktarget" | |
# Assuming code lives in ./scripting of this | |
REPO_NAME = "sourcemod-nt-spec-quicktarget" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sourcemod> | |
#include <sdktools> | |
#pragma semicolon 1 | |
#pragma newdecls required | |
// SemVer 2.0.0 | |
#define MEMTOOLS_VERSION_MAJOR 0 | |
#define MEMTOOLS_VERSION_MINOR 1 | |
#define MEMTOOLS_VERSION_PATCH 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# file name without the extension | |
Plugin=my_plugin | |
declare -a SmVersions=("1.8" "1.9" "1.10" "1.11" "1.12") | |
BasePath=~/code/spcomp | |
ExtraIncludes="${BasePath}/includes" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sourcemod> | |
#include <sdkhooks> | |
#pragma semicolon 1 | |
#pragma newdecls required | |
enum HitGroup { | |
Generic = 0, | |
Head, | |
Chest, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <dhooks> | |
#include <entity> | |
#pragma semicolon 1 | |
#pragma newdecls required | |
// Returns n bytes worth of bits. | |
Address Bytes(any n) | |
{ | |
any sizeof_ptr = 4; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sourcemod> | |
#pragma semicolon 1 | |
#pragma newdecls required | |
ConVar sv_alltalk; | |
bool alltalkWas; | |
public Plugin myinfo = { | |
name = "NT Disable Alltalk When Ghosting", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GALLIUM_HUD="fps+frametime+cpu+GPU-load+memory-clock+VRAM-usage" glxgears |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if defined _NT_GET_BASE_ENTITY_INC_ | |
#endinput | |
#endif | |
#define _NT_GET_BASE_ENTITY_INC_ | |
#include <sdktools> | |
// For a valid base entity pointer, returns its entity index. | |
stock int GetBaseEntity(Address self) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.1", | |
"defaults": {}, | |
"configurations": [ | |
{ | |
"type": "dll", | |
"exe": "${env.SDK2013MP}\\hl2.exe", | |
"project": "CMakeLists.txt", | |
"projectTarget": "client.dll (game\\client\\client.dll)", | |
"name": "client.dll (game\\client\\client.dll)", |
NewerOlder