Added CZ models to CsInternalModel enum (request at41295)
This commit is contained in:
parent
43b8ea4657
commit
895039308f
|
@ -471,8 +471,8 @@ static cell AMX_NATIVE_CALL cs_set_user_vip(AMX *amx, cell *params) // cs_set_us
|
||||||
if (updateModel)
|
if (updateModel)
|
||||||
{
|
{
|
||||||
// Set a random CT model.
|
// 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 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, 3)];
|
CS_Internal_Models ct_model = CTmodels[RANDOM_LONG(0, 4)];
|
||||||
*((int *)pPlayer->pvPrivateData + OFFSET_INTERNALMODEL) = ct_model;
|
*((int *)pPlayer->pvPrivateData + OFFSET_INTERNALMODEL) = ct_model;
|
||||||
// This makes the model get updated right away.
|
// 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.
|
MDLL_ClientUserInfoChanged(pPlayer, GETINFOKEYBUFFER(pPlayer)); // If this causes any problems for WON, do this line only in STEAM builds.
|
||||||
|
|
|
@ -260,7 +260,9 @@ enum CS_Internal_Models {
|
||||||
CS_CT_GIGN = 6,
|
CS_CT_GIGN = 6,
|
||||||
CS_CT_SAS = 7,
|
CS_CT_SAS = 7,
|
||||||
CS_T_GUERILLA = 8,
|
CS_T_GUERILLA = 8,
|
||||||
CS_CT_VIP = 9
|
CS_CT_VIP = 9,
|
||||||
|
CZ_T_MILITIA = 10,
|
||||||
|
CZ_CT_SPETSNAZ = 11
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
|
|
@ -215,7 +215,7 @@
|
||||||
</File>
|
</File>
|
||||||
</Filter>
|
</Filter>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\plugins\include\cstrike.inc">
|
RelativePath="..\..\plugins\include\cstrike.inc">
|
||||||
</File>
|
</File>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
|
|
|
@ -298,7 +298,7 @@
|
||||||
</File>
|
</File>
|
||||||
</Filter>
|
</Filter>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\plugins\include\cstrike.inc"
|
RelativePath="..\..\..\plugins\include\cstrike.inc"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
</Files>
|
</Files>
|
||||||
|
|
|
@ -145,7 +145,9 @@ enum CsInternalModel {
|
||||||
CS_CT_GIGN = 6,
|
CS_CT_GIGN = 6,
|
||||||
CS_CT_SAS = 7,
|
CS_CT_SAS = 7,
|
||||||
CS_T_GUERILLA = 8,
|
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);
|
native cs_set_user_team(index, {CsTeams,_}:team, {CsInternalModel,_}:model = CS_DONTCHANGE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user