Commit 3c5f703a authored by Mikleo's avatar Mikleo

--

parent 4c8a51e5
Pipeline #10862 passed with stages
in 13 seconds
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include <SteamWorks> #include <SteamWorks>
#define PluginVersion "1.20" #define PluginVersion "1.21"
float pVersion; float pVersion;
// note linearmap field is unstable // note linearmap field is unstable
...@@ -5996,9 +5996,8 @@ int SwitchFaction(int entity,char[] classname) ...@@ -5996,9 +5996,8 @@ int SwitchFaction(int entity,char[] classname)
//PrintToServer("%s start",classname);
SwitchFactionString(classname,64); SwitchFactionString(classname,64);
//PrintToServer("%s end",classname);
any classInfo[classdataenum]; any classInfo[classdataenum];
// don't switch flag entities for now. And only do cap entities with no cap number. // don't switch flag entities for now. And only do cap entities with no cap number.
...@@ -6007,7 +6006,6 @@ int SwitchFaction(int entity,char[] classname) ...@@ -6007,7 +6006,6 @@ int SwitchFaction(int entity,char[] classname)
if(GetEntitySavingKeys(classname,pVersion,classInfo) && ShouldSave(entity,classname,classInfo) && classInfo[data_group] != 2 && (classInfo[data_group] !=1 || !FlagExistsAtIndex(GetEntProp(entity,Prop_Data,"m_iCapNumber")))) if(GetEntitySavingKeys(classname,pVersion,classInfo) && ShouldSave(entity,classname,classInfo) && classInfo[data_group] != 2 && (classInfo[data_group] !=1 || !FlagExistsAtIndex(GetEntProp(entity,Prop_Data,"m_iCapNumber"))))
{ {
PrintToServer("%s",classname);
KeyValues kv = new KeyValues("save"); KeyValues kv = new KeyValues("save");
...@@ -6031,9 +6029,8 @@ int SwitchFaction(int entity,char[] classname) ...@@ -6031,9 +6029,8 @@ int SwitchFaction(int entity,char[] classname)
char modelPath[128]; char modelPath[128];
if(kv.GetString("model",modelPath,sizeof(modelPath))) if(kv.GetString("model",modelPath,sizeof(modelPath)))
{ {
PrintToServer(modelPath);
SwitchFactionString(modelPath,sizeof(modelPath)); SwitchFactionString(modelPath,sizeof(modelPath));
PrintToServer(modelPath);
kv.SetString("model",modelPath); kv.SetString("model",modelPath);
} }
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
{ {
"Version" "Version"
{ {
"Latest" "1.20" "Latest" "1.21"
} }
} }
...@@ -32,21 +32,8 @@ ...@@ -32,21 +32,8 @@
"Plugin" "Path_Mod/scenarios/emp_duststorm/mik_kingofthehill.snr" "Plugin" "Path_Mod/scenarios/emp_duststorm/mik_kingofthehill.snr"
"Plugin" "Path_Mod/scenarios/emp_duststorm/votelist_base.txt" "Plugin" "Path_Mod/scenarios/emp_duststorm/votelist_base.txt"
"Plugin" "Path_Mod/scenarios/emp_temple/mik_kingofthehill.snr" "Plugin" "Path_Mod/scenarios/emp_temple/mik_kingofthehill.snr"
"Plugin" "Path_Mod/scenarios/emp_temple/votelist_base.txt" "Plugin" "Path_Mod/scenarios/emp_temple/votelist_base.txt"
"Plugin" "Path_Mod/scenarios/emp_palmbay/mik_boats.snr"
"Plugin" "Path_Mod/scenarios/emp_palmbay/votelist_base.txt"
"Plugin" "Path_Mod/scenarios/emp_moors/mik_superapcs.snr"
"Plugin" "Path_Mod/scenarios/emp_moors/votelist_base.txt"
"Plugin" "Path_Mod/scenarios/emp_mvalley/mik_dam.snr"
"Plugin" "Path_Mod/scenarios/emp_mvalley/mik_hills.snr"
"Plugin" "Path_Mod/scenarios/emp_mvalley/votelist_base.txt"
"Plugin" "Path_Mod/scenarios/emp_canyon/mik_destructablerocks.snr"
"Plugin" "Path_Mod/scenarios/emp_canyon/votelist_base.txt"
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment