Cstrike: Rename cstrike.cpp to CstrikeNatives.cpp

This commit is contained in:
Arkshine 2014-05-26 18:42:51 +02:00
parent 88c489d393
commit f08e22db95
8 changed files with 50 additions and 15 deletions

View File

@ -7,7 +7,7 @@ binary.sources = [
'sdk/amxxmodule.cpp',
'amxx_api.cpp',
'CstrikePlayer.cpp',
'cstrike.cpp',
'CstrikeNatives.cpp',
'CstrikeHacks.cpp',
]

View File

@ -1,6 +1,6 @@
#include <assert.h>
#include <stdlib.h>
#include "cstrike.h"
#include "CstrikeNatives.h"
#if defined(__linux__) || defined(__APPLE__)
#include <sys/mman.h>

View 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];
int g_zooming[33] = {0};
@ -1306,8 +1338,8 @@ static cell AMX_NATIVE_CALL cs_user_spawn(AMX *amx, cell *params)
MDLL_Think(pPlayer);
const char *auth = GETPLAYERAUTHID(pPlayer);
if (((pPlayer->v.flags & FL_FAKECLIENT) == FL_FAKECLIENT || (auth && (strcmp(auth, "BOT") == 0))) && pPlayer->v.deadflag == DEAD_RESPAWNABLE) {
MDLL_Spawn(pPlayer);
if (((pPlayer->v.flags & FL_FAKECLIENT) == FL_FAKECLIENT || (auth && (strcmp(auth, "BOT") == 0))) && pPlayer->v.deadflag == DEAD_RESPAWNABLE) {
MDLL_Spawn(pPlayer);
}
// pPlayer->v.iuser1 = 0;

View File

@ -14,7 +14,7 @@ MM_ROOT = ../../../../metamod/metamod
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 ###

View File

@ -31,7 +31,7 @@
* version.
*/
#include "amxxmodule.h"
#include "cstrike.h"
#include "CstrikeNatives.h"
extern AMX_NATIVE_INFO cstrikeNatives[];

View File

@ -136,13 +136,13 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\amxx_api.cpp" />
<ClCompile Include="..\cstrike.cpp" />
<ClCompile Include="..\CstrikeNatives.cpp" />
<ClCompile Include="..\CstrikeHacks.cpp" />
<ClCompile Include="..\CstrikePlayer.cpp" />
<ClCompile Include="..\sdk\amxxmodule.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\cstrike.h" />
<ClInclude Include="..\CstrikeNatives.h" />
<ClInclude Include="..\CstrikePlayer.h" />
<ClInclude Include="..\svn_version.h" />
<ClInclude Include="..\sdk\moduleconfig.h" />

View File

@ -20,9 +20,6 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\cstrike.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\CstrikeHacks.cpp">
<Filter>Source Files</Filter>
</ClCompile>
@ -32,11 +29,14 @@
<ClCompile Include="..\sdk\amxxmodule.cpp">
<Filter>Module SDK\SDK Base</Filter>
</ClCompile>
<ClCompile Include="..\amxx_api.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\CstrikeNatives.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\cstrike.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\CstrikePlayer.h">
<Filter>Header Files</Filter>
</ClInclude>
@ -49,6 +49,9 @@
<ClInclude Include="..\sdk\amxxmodule.h">
<Filter>Module SDK\SDK Base</Filter>
</ClInclude>
<ClInclude Include="..\CstrikeNatives.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\..\..\plugins\include\cstrike.inc">