This repository has been archived by the owner on Dec 20, 2019. It is now read-only.
forked from SlidyBat/sendproxy
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added msvc files Fixed assembly optimization & bug with sourcetv Removed shitty code Tested only on windows, but should work fine on linux too
- Loading branch information
Showing
13 changed files
with
638 additions
and
118 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,49 @@ | ||
#pragma semicolon 1 | ||
|
||
#define PLUGIN_VERSION "0.1" | ||
|
||
#include <sourcemod> | ||
#include <sdktools> | ||
#include "sendproxy" | ||
|
||
#pragma newdecls required | ||
|
||
public Plugin myinfo = | ||
{ | ||
name = "SendProxy test", | ||
author = "CurT", | ||
description = "", | ||
version = PLUGIN_VERSION, | ||
url = "https://SourceGames.RU" | ||
}; | ||
|
||
public void OnPluginStart() | ||
{ | ||
RegConsoleCmd("sm_testsendproxy", Cmd_TestSendProxy); | ||
} | ||
|
||
public Action Cmd_TestSendProxy(int iClient, int iArgs) | ||
{ | ||
for (int iClients = 1; iClients <= MaxClients; iClients++) | ||
if (IsClientInGame(iClients)) | ||
SendProxy_Hook(iClients, "m_iHealth", Prop_Int, SendProxyCallBack_Client); | ||
SendProxy_HookGameRules("m_nRoundsPlayed", Prop_Int, SendProxyCallBack_GameRulesTest); | ||
PrintToConsole(iClient, "Okay"); | ||
return Plugin_Handled; | ||
} | ||
|
||
public Action SendProxyCallBack_Client(int entity, const char[] PropName, int &iValue, int element, int iClient) | ||
{ | ||
if (entity != iClient) | ||
{ | ||
iValue = 0; | ||
return Plugin_Changed; | ||
} | ||
return Plugin_Continue; | ||
} | ||
|
||
public Action SendProxyCallBack_GameRulesTest(const char[] cPropName, int &iValue, int iElement, int iClient) | ||
{ | ||
LogMessage("%i: %i", iClient, iValue); | ||
return Plugin_Continue; | ||
} |
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,30 @@ | ||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.28307.329 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sendproxy", "sendproxy.vcxproj", "{B3E797CF-4E77-4C9D-B8A8-7589B6902206}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug - CSGO|Win32 = Debug - CSGO|Win32 | ||
Debug - TF2|Win32 = Debug - TF2|Win32 | ||
Release - CSGO|Win32 = Release - CSGO|Win32 | ||
Release - TF2|Win32 = Release - TF2|Win32 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{B3E797CF-4E77-4C9D-B8A8-7589B6902206}.Debug - CSGO|Win32.ActiveCfg = Debug - CSGO|Win32 | ||
{B3E797CF-4E77-4C9D-B8A8-7589B6902206}.Debug - CSGO|Win32.Build.0 = Debug - CSGO|Win32 | ||
{B3E797CF-4E77-4C9D-B8A8-7589B6902206}.Debug - TF2|Win32.ActiveCfg = Release - TF2|Win32 | ||
{B3E797CF-4E77-4C9D-B8A8-7589B6902206}.Debug - TF2|Win32.Build.0 = Release - TF2|Win32 | ||
{B3E797CF-4E77-4C9D-B8A8-7589B6902206}.Release - CSGO|Win32.ActiveCfg = Release - CSGO|Win32 | ||
{B3E797CF-4E77-4C9D-B8A8-7589B6902206}.Release - CSGO|Win32.Build.0 = Release - CSGO|Win32 | ||
{B3E797CF-4E77-4C9D-B8A8-7589B6902206}.Release - TF2|Win32.ActiveCfg = Release - TF2|Win32 | ||
{B3E797CF-4E77-4C9D-B8A8-7589B6902206}.Release - TF2|Win32.Build.0 = Release - TF2|Win32 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {28CBC4F9-44B1-4DB8-A845-B0FC16B54CBB} | ||
EndGlobalSection | ||
EndGlobal |
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
Oops, something went wrong.