well, I realize that I can't change all origins, because I'll cause problems to other classes....
so I can only change info_player_deathmatch and info_player_start classes
so here the new pseudocode to solve this:
Code:
set working = 1;
while working == 1 {
if "{" not found{
set working = 0;
else{
subs = GetSubstring(String, first {, first });
Str1 = GetSubstring (String[0], subs[0]);
Str2 = GetSubstring (subs[size],String[size]);
if found (info_player_deathmatch || info_player_start) in subs {
find "origin" location;
posA = find 3rd space after origin location;
posB = find next " after posA;
Subs1 = GetSubstring (subs[0],posA);
Subs2 = GetSubstring (posB,subs[size]);
num = GetSubstring (posA, posB);
ToNumber(num) += 15;
subs = Subs1 + num + Subs2;
ReplaceAll (subs, {, [);
ReplaceAll (subs, }, ]);
}
}
}
ReplaceAll (String, [, {);
ReplaceAll (String, ], });
any inputs?