-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Spawnbug disables a function that allows CTs to spawn in T zones * Removed logging from mapcrashfix
- Loading branch information
Showing
5 changed files
with
120 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"Games" | ||
{ | ||
"csgo" | ||
{ | ||
"Functions" | ||
{ | ||
"CGameUI::Deactivate" | ||
{ | ||
"signature" "CKnife::Swing" | ||
"callconv" "thiscall" | ||
"return" "void" | ||
"this" "entity" | ||
"hooktype" "raw" | ||
|
||
"arguments" | ||
{ | ||
"mode" | ||
{ | ||
"type" "int" | ||
} | ||
} | ||
} | ||
} | ||
"Signatures" | ||
{ | ||
"CKnife::Swing" | ||
{ | ||
// "Weapon_Knife.Hit" "Weapon_Knife.HitWall" "Player.GhostKnifeHit" "KnifeSlash" | ||
// NOT the precache function. | ||
"library" "server" | ||
|
||
} | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"Games" | ||
{ | ||
"csgo" | ||
{ | ||
"Keys" | ||
{ | ||
// How many bytes to no-op. | ||
// Note we are patching a ret so this value really doesn't matter | ||
"SpawnbugSize" | ||
{ | ||
"windows" "10" | ||
"linux" "10" | ||
} | ||
} | ||
|
||
"Addresses" | ||
{ | ||
"Spawnbug" | ||
{ | ||
"signature" "CCSPlayer::GoToViewControl" | ||
} | ||
} | ||
|
||
"Signatures" | ||
{ | ||
"CCSPlayer::GoToViewControl" | ||
{ | ||
// "info_player_terrorist" and "point_viewcontrol" | ||
// This should be a method that looks up both of those entity classnames. | ||
"library" "server" | ||
"windows" "\x55\x8B\xEC\x83\xE4\xF8\x83\xEC\x34\x53\x56\x8B\xF1\x57\x8B\x8E\xA4\x1B\x00\x00" | ||
"linux" "\x55\x31\xC9\x89\xE5\x57\x56\x53\x83\xEC\x4C\x8B\x5D\x08" | ||
} | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include <sourcemod> | ||
#include "asm_patch.sp" | ||
#include "sourceforks_version.sp" | ||
|
||
public Plugin myinfo = { | ||
name = "[SourceForks] [CSGO] Spawn Bug Fix", | ||
author = "EdgeGamers Development", | ||
description = "Patches an issue where players are able to spawn in enemy spawn zones.", | ||
version = PLUGIN_VERSION, | ||
url = PLUGIN_WEBSITE | ||
} | ||
|
||
#define GAMEDATA_FILE "sourceforks_spawnbug" | ||
|
||
GameData Config; | ||
|
||
public OnPluginStart() | ||
{ | ||
PatchInit(); | ||
|
||
Config = LoadGameConfigFile(GAMEDATA_FILE); | ||
|
||
if (GetEngineVersion() != Engine_CSGO) | ||
SetFailState("This plugin is only compatible with CS:GO."); | ||
|
||
PatchCommand("noop_spawnbug"); | ||
|
||
// Just disable the whole thing | ||
any spawnbug_patch[] = { RET_NEAR }; | ||
PatchFunction(Config, "Spawnbug", "SpawnbugSize", spawnbug_patch, sizeof(spawnbug_patch)); | ||
} | ||
|
||
public OnPluginEnd() | ||
{ | ||
RecoverFunction(Config, "Spawnbug", "SpawnbugSize"); | ||
} |