Added CZ models to CsInternalModel enum (request at41295)

This commit is contained in:
Scott Ehlert 2006-07-13 03:07:24 +00:00
parent 43b8ea4657
commit 895039308f
5 changed files with 10 additions and 6 deletions

View File

@ -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.

View File

@ -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

View File

@ -215,7 +215,7 @@
</File>
</Filter>
<File
RelativePath="..\plugins\include\cstrike.inc">
RelativePath="..\..\plugins\include\cstrike.inc">
</File>
</Files>
<Globals>

View File

@ -298,7 +298,7 @@
</File>
</Filter>
<File
RelativePath="..\..\plugins\include\cstrike.inc"
RelativePath="..\..\..\plugins\include\cstrike.inc"
>
</File>
</Files>

View File

@ -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);