Commit 48cc3440 authored by Mikleo's avatar Mikleo

--

parent b2a98e5a
Pipeline #10885 passed with stages
in 16 seconds
......@@ -10,7 +10,7 @@
#include <SteamWorks>
#define PluginVersion "1.21"
#define PluginVersion "1.22"
float pVersion;
// note linearmap field is unstable
......
......@@ -444,7 +444,7 @@ bool LoadScript(char[] scriptname,int entRef)
}
else
{
PrintToServer("script %s not found",scriptname);
found = false;
}
}
kv.Rewind();
......@@ -527,7 +527,6 @@ RunEntityFunctionInternal(int entRef,char[] funcString)
else
{
remainingStart = findIndex + 4;
funcString[findIndex] = '\0';
}
......@@ -539,7 +538,7 @@ RunEntityFunctionInternal(int entRef,char[] funcString)
char args[500];
if(argIndex != -1)
strcopy(args,remainingStart - argIndex + 1 ,funcString[argIndex]);
strcopy(args,findIndex - argIndex + 1 ,funcString[argIndex]);
int nextEnt = -1;
......@@ -554,7 +553,6 @@ RunEntityFunctionInternal(int entRef,char[] funcString)
ReplaceVariables(entRef,args,sizeof(args));
Call_PushString(args);
Call_PushString(funcString[remainingStart]);
Call_Finish(nextEnt);
......@@ -631,7 +629,10 @@ public int RunCommand(int entity,char[] args,char[] remainder)
{
if(BreakArg(args,arg1,sizeof(arg1),argIndex))
{
LoadScript(arg1,entity);
if(!LoadScript(arg1,entity))
{
PrintToServer("script %s not found\n %s",arg1,remainder);
}
}
else
{
......@@ -2142,7 +2143,9 @@ bool CheckScriptForErrors(char[] funcString,char[] scriptname)
// condition must be a string.
if((index == 2 || index == 4) && buffer[0] != '"')
{
PrintError("[%s] If condition must be wrapped in speech marks(*). %s",scriptname,"",funcString);
// doesent detect error correctly
//PrintError("[%s] If condition must be wrapped in speech marks(*). %s",scriptname,"",funcString);
//hasError = true;
}
index++;
}
......
......@@ -21,7 +21,7 @@
//automatically calculated
"$int_FlagNumber" "0"
"i_HookFlags" "Set $int_FlagNumber = 0 -> TargetNameAll KOTHFlag -> Inc $int_FlagNumber -> HookOutput OnNeutral FlagsChanged -> HookOutput OnImpCap FlagsChanged -> HookOutput OnNFCap FlagsChanged "
"i_HookFlags" "Set $int_FlagNumber = 0 -> TargetNameAll KOTHFlag -> Inc $int_FlagNumber -> HookOutput OnNeutral FlagsChanged -> HookOutput OnImpCap FlagsChanged -> HookOutput OnNFCap FlagsChanged"
"FlagsChanged" "After 0.1 -> Run CountFlags -> If *$int_BEFlags == $int_FlagNumber* BEHasFlags *$int_NFFlags == $int_FlagNumber* NFHasFlags ELSE NooneHasFlags"
......
......@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "1.21"
"Latest" "1.22"
}
}
......
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