Misc changes

This commit is contained in:
Jackz 2023-09-29 18:02:05 -05:00
parent a740bdf733
commit c38fb1819f
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
7 changed files with 7 additions and 5 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -5,10 +5,10 @@
enum TrollModifier {
TrollMod_Invalid = 0,
TrollMod_Invalid = 0,
TrollMod_Instant = 1 << 0,
TrollMod_Constant = 1 << 1,
TrollMod_PlayerOnly = 1 << 2, // Does the troll only work on players, not bots? If set, troll only applied on real user. If not, troll applied to both bot and idler
TrollMod_PlayerOnly = 1 << 2, // Does the troll only work on players, not bots? If set, troll only applied on real user. If not, troll applied to both bot and idler
}
native void ApplyTroll(int victim, const char[] name, TrollModifier modifier = TrollMod_Invalid, int flags, int activator, bool silent = false);

View file

@ -20,7 +20,6 @@ Handle hThrowTimer;
ConVar hAllowEnemyTeam;
ConVar hThrowItemInterval;
ConVar hAutoPunish;
ConVar hMagnetChance;
ConVar hShoveFailChance;
ConVar hAutoPunishExpire;
ConVar hMagnetTargetMode;
@ -84,12 +83,15 @@ bool spIsActive;
enum SpecialSpawnFlags {
Special_Anywhere = 0,
Special_OnTarget = 1,
Special_SpawnDirectOnFailure = 2
Special_SpawnDirectOnFailure = 2,
Special_KillOnIncap = 4,
Special_AlwaysTarget = 8
}
enum SpecialInternalFlags {
SPI_KillOnSpawn = 1,
SPI_AlwaysTarget = 2,
SPI_KillOnTargetIncap = 4
}
int healTargetPlayer;

View file

@ -30,7 +30,7 @@ methodmap GameConVarStorage < StringMap {
}
methodmap GameConVar __nullable__ < ConVar {
methodmap GameConVar < ConVar {
public GameConVar(const char[] name) {
return view_as<GameConVar>(FindConVar(name));
}