mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
Cstrike: Rename cstrike.cpp to CstrikeNatives.cpp
This commit is contained in:
parent
88c489d393
commit
f08e22db95
@ -7,7 +7,7 @@ binary.sources = [
|
|||||||
'sdk/amxxmodule.cpp',
|
'sdk/amxxmodule.cpp',
|
||||||
'amxx_api.cpp',
|
'amxx_api.cpp',
|
||||||
'CstrikePlayer.cpp',
|
'CstrikePlayer.cpp',
|
||||||
'cstrike.cpp',
|
'CstrikeNatives.cpp',
|
||||||
'CstrikeHacks.cpp',
|
'CstrikeHacks.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "cstrike.h"
|
#include "CstrikeNatives.h"
|
||||||
|
|
||||||
#if defined(__linux__) || defined(__APPLE__)
|
#if defined(__linux__) || defined(__APPLE__)
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
38
dlls/cstrike/cstrike/cstrike.cpp → dlls/cstrike/cstrike/CstrikeNatives.cpp
Executable file → Normal file
38
dlls/cstrike/cstrike/cstrike.cpp → dlls/cstrike/cstrike/CstrikeNatives.cpp
Executable file → Normal file
@ -1,4 +1,36 @@
|
|||||||
#include "cstrike.h"
|
/* AMX Mod X
|
||||||
|
* Counter-Strike Module
|
||||||
|
*
|
||||||
|
* by the AMX Mod X Development Team
|
||||||
|
*
|
||||||
|
* This file is part of AMX Mod X.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU General Public License as published by the
|
||||||
|
* Free Software Foundation; either version 2 of the License, or (at
|
||||||
|
* your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but
|
||||||
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*
|
||||||
|
* In addition, as a special exception, the author gives permission to
|
||||||
|
* link the code of this program with the Half-Life Game Engine ("HL
|
||||||
|
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
|
||||||
|
* L.L.C ("Valve"). You must obey the GNU General Public License in all
|
||||||
|
* respects for all of the code used other than the HL Engine and MODs
|
||||||
|
* from Valve. If you modify this file, you may extend this exception
|
||||||
|
* to your version of the file, but you are not obligated to do so. If
|
||||||
|
* you do not wish to do so, delete this exception statement from your
|
||||||
|
* version.
|
||||||
|
*/
|
||||||
|
#include "CstrikeNatives.h"
|
||||||
|
|
||||||
CCstrikePlayer g_players[33];
|
CCstrikePlayer g_players[33];
|
||||||
int g_zooming[33] = {0};
|
int g_zooming[33] = {0};
|
||||||
@ -1306,8 +1338,8 @@ static cell AMX_NATIVE_CALL cs_user_spawn(AMX *amx, cell *params)
|
|||||||
MDLL_Think(pPlayer);
|
MDLL_Think(pPlayer);
|
||||||
|
|
||||||
const char *auth = GETPLAYERAUTHID(pPlayer);
|
const char *auth = GETPLAYERAUTHID(pPlayer);
|
||||||
if (((pPlayer->v.flags & FL_FAKECLIENT) == FL_FAKECLIENT || (auth && (strcmp(auth, "BOT") == 0))) && pPlayer->v.deadflag == DEAD_RESPAWNABLE) {
|
if (((pPlayer->v.flags & FL_FAKECLIENT) == FL_FAKECLIENT || (auth && (strcmp(auth, "BOT") == 0))) && pPlayer->v.deadflag == DEAD_RESPAWNABLE) {
|
||||||
MDLL_Spawn(pPlayer);
|
MDLL_Spawn(pPlayer);
|
||||||
}
|
}
|
||||||
|
|
||||||
// pPlayer->v.iuser1 = 0;
|
// pPlayer->v.iuser1 = 0;
|
0
dlls/cstrike/cstrike/cstrike.h → dlls/cstrike/cstrike/CstrikeNatives.h
Executable file → Normal file
0
dlls/cstrike/cstrike/cstrike.h → dlls/cstrike/cstrike/CstrikeNatives.h
Executable file → Normal file
@ -14,7 +14,7 @@ MM_ROOT = ../../../../metamod/metamod
|
|||||||
|
|
||||||
PROJECT = cstrike
|
PROJECT = cstrike
|
||||||
|
|
||||||
OBJECTS = sdk/amxxmodule.cpp amxx_api.cpp CstrikePlayer.cpp cstrike.cpp CstrikeHacks.cpp
|
OBJECTS = sdk/amxxmodule.cpp amxx_api.cpp CstrikePlayer.cpp CstrikeNatives.cpp CstrikeHacks.cpp
|
||||||
|
|
||||||
##############################################
|
##############################################
|
||||||
### CONFIGURE ANY OTHER FLAGS/OPTIONS HERE ###
|
### CONFIGURE ANY OTHER FLAGS/OPTIONS HERE ###
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
* version.
|
* version.
|
||||||
*/
|
*/
|
||||||
#include "amxxmodule.h"
|
#include "amxxmodule.h"
|
||||||
#include "cstrike.h"
|
#include "CstrikeNatives.h"
|
||||||
|
|
||||||
extern AMX_NATIVE_INFO cstrikeNatives[];
|
extern AMX_NATIVE_INFO cstrikeNatives[];
|
||||||
|
|
||||||
|
@ -136,13 +136,13 @@
|
|||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\amxx_api.cpp" />
|
<ClCompile Include="..\amxx_api.cpp" />
|
||||||
<ClCompile Include="..\cstrike.cpp" />
|
<ClCompile Include="..\CstrikeNatives.cpp" />
|
||||||
<ClCompile Include="..\CstrikeHacks.cpp" />
|
<ClCompile Include="..\CstrikeHacks.cpp" />
|
||||||
<ClCompile Include="..\CstrikePlayer.cpp" />
|
<ClCompile Include="..\CstrikePlayer.cpp" />
|
||||||
<ClCompile Include="..\sdk\amxxmodule.cpp" />
|
<ClCompile Include="..\sdk\amxxmodule.cpp" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\cstrike.h" />
|
<ClInclude Include="..\CstrikeNatives.h" />
|
||||||
<ClInclude Include="..\CstrikePlayer.h" />
|
<ClInclude Include="..\CstrikePlayer.h" />
|
||||||
<ClInclude Include="..\svn_version.h" />
|
<ClInclude Include="..\svn_version.h" />
|
||||||
<ClInclude Include="..\sdk\moduleconfig.h" />
|
<ClInclude Include="..\sdk\moduleconfig.h" />
|
||||||
|
@ -20,9 +20,6 @@
|
|||||||
</Filter>
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\cstrike.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\CstrikeHacks.cpp">
|
<ClCompile Include="..\CstrikeHacks.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@ -32,11 +29,14 @@
|
|||||||
<ClCompile Include="..\sdk\amxxmodule.cpp">
|
<ClCompile Include="..\sdk\amxxmodule.cpp">
|
||||||
<Filter>Module SDK\SDK Base</Filter>
|
<Filter>Module SDK\SDK Base</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\amxx_api.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\CstrikeNatives.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\cstrike.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\CstrikePlayer.h">
|
<ClInclude Include="..\CstrikePlayer.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
@ -49,6 +49,9 @@
|
|||||||
<ClInclude Include="..\sdk\amxxmodule.h">
|
<ClInclude Include="..\sdk\amxxmodule.h">
|
||||||
<Filter>Module SDK\SDK Base</Filter>
|
<Filter>Module SDK\SDK Base</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\CstrikeNatives.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="..\..\..\plugins\include\cstrike.inc">
|
<None Include="..\..\..\plugins\include\cstrike.inc">
|
||||||
|
Loading…
Reference in New Issue
Block a user