equal
deleted
inserted
replaced
1305 ScriptSetInteger('WaterRise', cWaterRise); |
1305 ScriptSetInteger('WaterRise', cWaterRise); |
1306 ScriptSetInteger('HealthDecrease', cHealthDecrease); |
1306 ScriptSetInteger('HealthDecrease', cHealthDecrease); |
1307 ScriptSetString('Map', ''); |
1307 ScriptSetString('Map', ''); |
1308 ScriptSetString('Theme', ''); |
1308 ScriptSetString('Theme', ''); |
1309 |
1309 |
|
1310 ScriptSetString('Goals', ''); |
|
1311 |
1310 ScriptCall('onGameInit'); |
1312 ScriptCall('onGameInit'); |
1311 |
1313 |
1312 // pop game variables |
1314 // pop game variables |
1313 ParseCommand('seed ' + ScriptGetString('Seed'), true); |
1315 ParseCommand('seed ' + ScriptGetString('Seed'), true); |
1314 ParseCommand('$gmflags ' + ScriptGetString('GameFlags'), true); |
1316 ParseCommand('$gmflags ' + ScriptGetString('GameFlags'), true); |
1328 ParseCommand('$healthdec ' + ScriptGetString('HealthDecrease'), true); |
1330 ParseCommand('$healthdec ' + ScriptGetString('HealthDecrease'), true); |
1329 if ScriptGetString('Map') <> '' then |
1331 if ScriptGetString('Map') <> '' then |
1330 ParseCommand('map ' + ScriptGetString('Map'), true); |
1332 ParseCommand('map ' + ScriptGetString('Map'), true); |
1331 if ScriptGetString('Theme') <> '' then |
1333 if ScriptGetString('Theme') <> '' then |
1332 ParseCommand('theme ' + ScriptGetString('Theme'), true); |
1334 ParseCommand('theme ' + ScriptGetString('Theme'), true); |
|
1335 LuaGoals:= ScriptGetString('Goals'); |
1333 |
1336 |
1334 if ScriptExists('onAmmoStoreInit') then |
1337 if ScriptExists('onAmmoStoreInit') then |
1335 begin |
1338 begin |
1336 ScriptPrepareAmmoStore; |
1339 ScriptPrepareAmmoStore; |
1337 ScriptCall('onAmmoStoreInit'); |
1340 ScriptCall('onAmmoStoreInit'); |