Anonymous
public text v1 · immutable// script creation
if BattleState.Status = Hosting then
begin
Script.AddOrChangeKeyValue('GAME/HostIP','localhost');
if BattleState.Battle.NATType = 1 then
Script.AddOrChangeKeyValue('GAME/HostPort',IntToStr(NATTraversal.MyPrivateUDPSourcePort))
else
Script.AddOrChangeKeyValue('GAME/HostPort',IntToStr(BattleState.Battle.Port));
if LockGameSpeedCheckBox.Checked then
begin
Script.AddOrChangeKeyValue('GAME/MinSpeed','1');
end;
end