17
17
#define DEBUG
18
18
19
19
#define PLUGIN_AUTHOR " Battlefield Duck"
20
- #define PLUGIN_VERSION " 9.2 "
20
+ #define PLUGIN_VERSION " 9.3 "
21
21
22
22
#include <sourcemod>
23
23
#include <sdktools>
@@ -33,7 +33,7 @@ public Plugin myinfo =
33
33
author = PLUGIN_AUTHOR ,
34
34
description = " Save System for TF2SandBox" ,
35
35
version = PLUGIN_VERSION ,
36
- url = " http ://steamcommunity .com/id/battlefieldduck/ "
36
+ url = " https ://github .com/tf2-sandbox-studio/Module-SaveSystem "
37
37
};
38
38
39
39
Handle g_hFileEditting [MAXPLAYERS + 1 ] = INVALID_HANDLE ;
@@ -1228,11 +1228,11 @@ public Action Timer_LoadProps(Handle timer, Handle dp)
1228
1228
bool LoadProps (int loader , char [] szLoadString )
1229
1229
{
1230
1230
float fOrigin [3 ], fAngles [3 ], fSize ;
1231
- char szModel [128 ], szClass [64 ], szFormatStr [255 ], DoorIndex [5 ], szBuffer [20 ][255 ], szName [128 ];
1231
+ char szModel [128 ], szClass [64 ], szFormatStr [255 ], DoorIndex [5 ], szBuffer [30 ][255 ], szName [128 ];
1232
1232
int Obj_LoadEntity , iCollision , iRed , iGreen , iBlue , iAlpha , iRenderFx , iRandom , iSkin ;
1233
1233
RenderFx FxRender = RENDERFX_NONE ;
1234
1234
1235
- ExplodeString (szLoadString , " " , szBuffer , 20 , 255 );
1235
+ ExplodeString (szLoadString , " " , szBuffer , 30 , 255 );
1236
1236
Format (szClass , sizeof (szClass ), " %s " , szBuffer [1 ]);
1237
1237
Format (szModel , sizeof (szModel ), " %s " , szBuffer [2 ]);
1238
1238
fOrigin [0 ] = StringToFloat (szBuffer [3 ]);
@@ -1250,7 +1250,19 @@ bool LoadProps(int loader, char[] szLoadString)
1250
1250
iRenderFx = StringToInt (szBuffer [15 ]);
1251
1251
iSkin = StringToInt (szBuffer [16 ]);
1252
1252
Format (szName , sizeof (szName ), " %s " , szBuffer [17 ]);
1253
-
1253
+
1254
+ for (int i = 18 ; i < 30 ; i ++ )
1255
+ {
1256
+ if (! StrEqual (szBuffer [i ], " " ))
1257
+ {
1258
+ Format (szName , sizeof (szName ), " %s %s " , szName , szBuffer [i ]);
1259
+ }
1260
+ else
1261
+ {
1262
+ break ;
1263
+ }
1264
+ }
1265
+
1254
1266
if (strlen (szBuffer [9 ]) == 0 )
1255
1267
iCollision = 5 ;
1256
1268
if (strlen (szBuffer [10 ]) == 0 )
@@ -1321,7 +1333,10 @@ bool LoadProps(int loader, char[] szLoadString)
1321
1333
}
1322
1334
SetEntityRenderFx (Obj_LoadEntity , FxRender );
1323
1335
SetEntProp (Obj_LoadEntity , Prop_Send , " m_nSkin" , iSkin );
1336
+
1337
+ ReplaceString (szName , sizeof (szName ), " \n " , " " , false );
1324
1338
SetEntPropString (Obj_LoadEntity , Prop_Data , " m_iName" , szName );
1339
+
1325
1340
//SetVariantInt(iHealth);
1326
1341
//AcceptEntityInput(Obj_LoadEntity, "sethealth", -1);
1327
1342
//AcceptEntityInput(Obj_LoadEntity, "disablemotion", -1);
0 commit comments