From 895039308f18fc3cc10ee4b0d389e1b9e1b2d5d5 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Thu, 13 Jul 2006 03:07:24 +0000 Subject: [PATCH] Added CZ models to CsInternalModel enum (request at41295) --- dlls/cstrike/cstrike.cpp | 4 ++-- dlls/cstrike/cstrike.h | 4 +++- dlls/cstrike/cstrike.vcproj | 2 +- dlls/cstrike/msvc8/cstrike.vcproj | 2 +- plugins/include/cstrike.inc | 4 +++- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/dlls/cstrike/cstrike.cpp b/dlls/cstrike/cstrike.cpp index e0d0a149..4fa6c81d 100755 --- a/dlls/cstrike/cstrike.cpp +++ b/dlls/cstrike/cstrike.cpp @@ -471,8 +471,8 @@ static cell AMX_NATIVE_CALL cs_set_user_vip(AMX *amx, cell *params) // cs_set_us if (updateModel) { // Set a random CT model. - CS_Internal_Models CTmodels[4] = {CS_CT_URBAN, CS_CT_GSG9, CS_CT_GIGN, CS_CT_SAS}; - CS_Internal_Models ct_model = CTmodels[RANDOM_LONG(0, 3)]; + CS_Internal_Models CTmodels[5] = {CS_CT_URBAN, CS_CT_GSG9, CS_CT_GIGN, CS_CT_SAS, CZ_CT_SPETSNAZ}; + CS_Internal_Models ct_model = CTmodels[RANDOM_LONG(0, 4)]; *((int *)pPlayer->pvPrivateData + OFFSET_INTERNALMODEL) = ct_model; // This makes the model get updated right away. MDLL_ClientUserInfoChanged(pPlayer, GETINFOKEYBUFFER(pPlayer)); // If this causes any problems for WON, do this line only in STEAM builds. diff --git a/dlls/cstrike/cstrike.h b/dlls/cstrike/cstrike.h index b5c70ccd..9a9d4bbf 100755 --- a/dlls/cstrike/cstrike.h +++ b/dlls/cstrike/cstrike.h @@ -260,7 +260,9 @@ enum CS_Internal_Models { CS_CT_GIGN = 6, CS_CT_SAS = 7, CS_T_GUERILLA = 8, - CS_CT_VIP = 9 + CS_CT_VIP = 9, + CZ_T_MILITIA = 10, + CZ_CT_SPETSNAZ = 11 }; enum diff --git a/dlls/cstrike/cstrike.vcproj b/dlls/cstrike/cstrike.vcproj index 9fab09f6..9dddc760 100755 --- a/dlls/cstrike/cstrike.vcproj +++ b/dlls/cstrike/cstrike.vcproj @@ -215,7 +215,7 @@ + RelativePath="..\..\plugins\include\cstrike.inc"> diff --git a/dlls/cstrike/msvc8/cstrike.vcproj b/dlls/cstrike/msvc8/cstrike.vcproj index fe85a4aa..1516b042 100644 --- a/dlls/cstrike/msvc8/cstrike.vcproj +++ b/dlls/cstrike/msvc8/cstrike.vcproj @@ -298,7 +298,7 @@ diff --git a/plugins/include/cstrike.inc b/plugins/include/cstrike.inc index f6abeecf..40e5fce8 100755 --- a/plugins/include/cstrike.inc +++ b/plugins/include/cstrike.inc @@ -145,7 +145,9 @@ enum CsInternalModel { CS_CT_GIGN = 6, CS_CT_SAS = 7, CS_T_GUERILLA = 8, - CS_CT_VIP = 9 + CS_CT_VIP = 9, + CZ_T_MILITIA = 10, + CZ_CT_SPETSNAZ = 11 }; native cs_set_user_team(index, {CsTeams,_}:team, {CsInternalModel,_}:model = CS_DONTCHANGE);