7
7
#endif
8
8
9
9
# define PLUGIN " [Next21.ru] Parkour"
10
- # define VERSION " 2.7 - Public test "
10
+ # define VERSION " 2.8 "
11
11
# define AUTHOR " Chrescoe1, Next21 Team"
12
12
13
13
154
154
155
155
_UpdateViewModel (const iPlayer)
156
156
{
157
- pev (iPlayer,pev_viewmodel2,strUserModel,MODEL_V_STRLEN - 1 );
157
+ pev (iPlayer, pev_viewmodel2, strUserModel, charsmax (strUserModel) );
158
158
159
- if (! equal (strUserModel, MODEL_V))
159
+ if (! equal (strUserModel, MODEL_V))
160
160
{
161
161
hasNewView[iPlayer] = true ;
162
162
pev (iPlayer, pev_viewmodel2, strViewModel[iPlayer], MODEL_V_STRLEN - 1 );
@@ -271,6 +271,7 @@ _DropAllActions(const iPlayer)
271
271
}
272
272
}
273
273
274
+
274
275
// Walljump action
275
276
_setWallJump (const iPlayer, const iActiveItem)
276
277
{
@@ -689,7 +690,6 @@ _Update_PK_Stats(const iPlayer)
689
690
else
690
691
if (iActiveItem)
691
692
{
692
-
693
693
// In reloading
694
694
if (get_pdata_int (iActiveItem, m_fInReload, extra_offset_weapon) == 1 )
695
695
{
@@ -1074,7 +1074,8 @@ stock UTIL_PlayWeaponAnim(const iPlayer, const iSequence, const bool: isForce)
1074
1074
message_end ();
1075
1075
}
1076
1076
1077
- stock Float: UTIL_IsFreeHull (const Float: vecStart[3 ], const Float: vecEnd[3 ], const iEntity, checkType){
1077
+ stock Float: UTIL_IsFreeHull (const Float: vecStart[3 ], const Float: vecEnd[3 ], const iEntity, checkType)
1078
+ {
1078
1079
1079
1080
static iTr;
1080
1081
iTr = create_tr2 ();
@@ -1088,13 +1089,15 @@ stock Float:UTIL_IsFreeHull(const Float:vecStart[3], const Float:vecEnd[3], cons
1088
1089
{
1089
1090
if (flFraction >= 1 .0 )
1090
1091
{
1092
+ free_tr2 (iTr);
1091
1093
return 0 .0 ;
1092
1094
}
1093
1095
1094
1096
static Float: vec3[3 ];
1095
1097
get_tr2 (iTr,TR_vecPlaneNormal, vec3);
1096
1098
1097
1099
free_tr2 (iTr);
1100
+
1098
1101
if (checkType == CHECK_CLIMB)
1099
1102
{
1100
1103
if (vec3[2 ] < CHECKHULL_MINCLIMBNORMAL)
@@ -1113,8 +1116,10 @@ stock Float:UTIL_IsFreeHull(const Float:vecStart[3], const Float:vecEnd[3], cons
1113
1116
return 1 .0 ;
1114
1117
}
1115
1118
}
1116
-
1117
- free_tr2 (iTr);
1119
+ else
1120
+ {
1121
+ free_tr2 (iTr);
1122
+ }
1118
1123
1119
1124
return flFraction;
1120
1125
}
0 commit comments