Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CustomStartingResourcesInit()
- local ResourceSets = {
- standard = {
- --german:
- [0] = {
- manpower = 490,
- fuel = 20,
- munition = 0,
- action = 0,
- command = 1,
- },
- --soviet:
- [1] = {
- manpower = 490,
- fuel = 50,
- munition = 0,
- action = 0,
- command = 1,
- },
- --Obercommando west:
- [2] = {
- manpower = 240,
- fuel = 40,
- munition = 0,
- action = 0,
- command = 1,
- },
- --us forces:
- [3] = {
- manpower = 400,
- fuel = 15,
- munition = 0,
- action = 0,
- command = 1,
- },
- },
- highResources = {
- --german:
- [0] = {
- manpower = 1390,
- fuel = 50,
- munition = 50,
- action = 0,
- command = 2,
- },
- --soviet:
- [1] = {
- manpower = 1390,
- fuel = 80,
- munition = 50,
- action = 0,
- command = 2,
- },
- --Obercommando west:
- [2] = {
- manpower = 1140,
- fuel = 70,
- munition = 50,
- action = 0,
- command = 2,
- },
- --us forces:
- [3] = {
- manpower = 1300,
- fuel = 45,
- munition = 50,
- action = 0,
- command = 2,
- },
- },
- customSet_01 = {
- --german:
- [0] = {
- manpower = 2000,
- fuel = 80,
- munition = 100,
- action = 0,
- command = 2,
- },
- --soviet:
- [1] = {
- manpower = 2000,
- fuel = 100,
- munition = 100,
- action = 0,
- command = 2,
- },
- --Obercommando west:
- [2] = {
- manpower = 2000,
- fuel = 80,
- munition = 100,
- action = 0,
- command = 2,
- },
- --us forces:
- [3] = {
- manpower = 2000,
- fuel = 80,
- munition = 100,
- action = 0,
- command = 2,
- },
- },
- customSet_02 = {
- --german:
- [0] = {
- manpower = 0,
- fuel = 0,
- munition = 0,
- action = 0,
- command = 0,
- },
- --soviet:
- [1] = {
- manpower = 0,
- fuel = 0,
- munition = 0,
- action = 0,
- command = 0,
- },
- --Obercommando west:
- [2] = {
- manpower = 0,
- fuel = 0,
- munition = 0,
- action = 0,
- command = 0,
- },
- --us forces:
- [3] = {
- manpower = 0,
- fuel = 0,
- munition = 0,
- action = 0,
- command = 0,
- },
- },
- }
- --This will set the resource set to use in-game
- local g_ResourceSet = ResourceSets.standard
- local Player_ApplyResourceSet = function(player, resourceSet)
- Player_SetResource(player, RT_Manpower, resourceSet.manpower)
- Player_SetResource(player, RT_Fuel, resourceSet.fuel)
- Player_SetResource(player, RT_Munition, resourceSet.munition)
- Player_SetResource(player, RT_Action, resourceSet.action)
- Player_SetResource(player, RT_Command, resourceSet.command)
- end
- for i = 1, World_GetPlayerCount() do
- local player = World_GetPlayerAt(i)
- Player_ApplyResourceSet(player, g_ResourceSet[Player_GetRace(player)])
- end
- end
- Scar_AddInit(CustomStartingResourcesInit)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement