Loading...
  OR  Zero-K Name:    Password:   

Post edit history

Game mode K-OREZ

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
7/23/2024 4:52:07 PMAUrankSmokeDragon before revert after revert
3/30/2024 9:25:25 PMAUrankSmokeDragon before revert after revert
Before After
1 coming soon to zero-k 1 coming soon to zero-k
2 \n 2 \n
3 reverse values of some unit stats.. metal cost, range, reload speed 3 reverse values of some unit stats.. metal cost, range, reload speed
4 so long range fleas that do massive damage but cost heaps.. cheap crabs that have tiny range but fire fast.. kinda crazy mod.. oh well 4 so long range fleas that do massive damage but cost heaps.. cheap crabs that have tiny range but fire fast.. kinda crazy mod.. oh well
5 \n 5 \n
6 to do: 6 to do:
7 mod main code: done 7 99% done
8 unit data tables: done
9 min max values: 30%
10 \n 8 \n
11 sneak peak: 9 sneak peak:
12 [spoiler] 10 [spoiler]
13 [q]{{{ 11 [q]{{{
14 local unit_metalcost_ranges = { 12 local unit_metalcost_ranges = {
15 ["Duck"] = {80, 1900}, 13 ["Duck"] = {80, 1900},
16 ["Archer"] = {80, 1900}, 14 ["Archer"] = {80, 1900},
17 ["Bulkhead"] = {80, 1900}, 15 ["Bulkhead"] = {80, 1900},
18 ["Buoy"] = {80, 1900}, 16 ["Buoy"] = {80, 1900},
19 ["Scallop"] = {80, 1900}, 17 ["Scallop"] = {80, 1900},
20 ["Grizzly"] = {80, 1900}, 18 ["Grizzly"] = {80, 1900},
21 ["Angler"] = {80, 1900}, 19 ["Angler"] = {80, 1900},
22 ["Limpet"] = {80, 1900}, 20 ["Limpet"] = {80, 1900},
23 ["Djinn"] = {80, 1900}, 21 ["Djinn"] = {80, 1900},
24 ["Lobster"] = {80, 1900}, 22 ["Lobster"] = {80, 1900},
25 ["Dagger"] = {80, 1100}, 23 ["Dagger"] = {80, 1100},
26 ["Scalpel"] = {80, 1100}, 24 ["Scalpel"] = {80, 1100},
27 ["Halberd"] = {80, 1100}, 25 ["Halberd"] = {80, 1100},
28 ["Claymore"] = {80, 1100}, 26 ["Claymore"] = {80, 1100},
29 ["Mace"] = {80, 1100}, 27 ["Mace"] = {80, 1100},
30 ["Lance"] = {80, 1100}, 28 ["Lance"] = {80, 1100},
31 ["Flail"] = {80, 1100}, 29 ["Flail"] = {80, 1100},
32 ["Bolas"] = {80, 1100}, 30 ["Bolas"] = {80, 1100},
33 ["Glaive"] = {65, 750}, 31 ["Glaive"] = {65, 750},
34 ["Scythe"] = {65, 750}, 32 ["Scythe"] = {65, 750},
35 ["Ronin"] = {65, 750}, 33 ["Ronin"] = {65, 750},
36 ["Reaver"] = {65, 750}, 34 ["Reaver"] = {65, 750},
37 ["Knight"] = {65, 750}, 35 ["Knight"] = {65, 750},
38 ["Sling"] = {65, 750}, 36 ["Sling"] = {65, 750},
39 ["Phantom"] = {65, 750}, 37 ["Phantom"] = {65, 750},
40 ["Gremlin"] = {65, 750}, 38 ["Gremlin"] = {65, 750},
41 ["Imp"] = {65, 750}, 39 ["Imp"] = {65, 750},
42 ["Iris"] = {65, 750}, 40 ["Iris"] = {65, 750},
43 ["Flea"] = {25, 1600}, 41 ["Flea"] = {25, 1600},
44 ["Hermit"] = {25, 1600}, 42 ["Hermit"] = {25, 1600},
45 ["Venom"] = {25, 1600}, 43 ["Venom"] = {25, 1600},
46 ["Redback"] = {25, 1600}, 44 ["Redback"] = {25, 1600},
47 ["Recluse"] = {25, 1600}, 45 ["Recluse"] = {25, 1600},
48 ["Crab"] = {25, 1600}, 46 ["Crab"] = {25, 1600},
49 ["Tarantula"] = {25, 1600}, 47 ["Tarantula"] = {25, 1600},
50 ["Widow"] = {25, 1600}, 48 ["Widow"] = {25, 1600},
51 ["Dirtbag"] = {30, 620}, 49 ["Dirtbag"] = {30, 620},
52 ["Bandit"] = {30, 620}, 50 ["Bandit"] = {30, 620},
53 ["Rogue"] = {30, 620}, 51 ["Rogue"] = {30, 620},
54 ["Thug"] = {30, 620}, 52 ["Thug"] = {30, 620},
55 ["Outlaw"] = {30, 620}, 53 ["Outlaw"] = {30, 620},
56 ["Felon"] = {30, 620}, 54 ["Felon"] = {30, 620},
57 ["Racketeer"] = {30, 620}, 55 ["Racketeer"] = {30, 620},
58 ["Vandal"] = {30, 620}, 56 ["Vandal"] = {30, 620},
59 ["Snitch"] = {30, 620}, 57 ["Snitch"] = {30, 620},
60 ["Aspis"] = {30, 620}, 58 ["Aspis"] = {30, 620},
61 ["Puppy"] = {45, 1700}, 59 ["Puppy"] = {45, 1700},
62 ["Pyro"] = {45, 1700}, 60 ["Pyro"] = {45, 1700},
63 ["Placeholder"] = {45, 1700}, 61 ["Placeholder"] = {45, 1700},
64 ["Moderator"] = {45, 1700}, 62 ["Moderator"] = {45, 1700},
65 ["Jack"] = {45, 1700}, 63 ["Jack"] = {45, 1700},
66 ["Jugglenaut"] = {45, 1700}, 64 ["Jugglenaut"] = {45, 1700},
67 ["Firewalker"] = {45, 1700}, 65 ["Firewalker"] = {45, 1700},
68 ["Toad"] = {45, 1700}, 66 ["Toad"] = {45, 1700},
69 ["Kodachi"] = {170, 2200}, 67 ["Kodachi"] = {170, 2200},
70 ["Blitz"] = {170, 2200}, 68 ["Blitz"] = {170, 2200},
71 ["Ogre"] = {170, 2200}, 69 ["Ogre"] = {170, 2200},
72 ["Minotaur"] = {170, 2200}, 70 ["Minotaur"] = {170, 2200},
73 ["Cyclops"] = {170, 2200}, 71 ["Cyclops"] = {170, 2200},
74 ["Emissary"] = {170, 2200}, 72 ["Emissary"] = {170, 2200},
75 ["Tremor"] = {170, 2200}, 73 ["Tremor"] = {170, 2200},
76 ["Ettin"] = {170, 2200}, 74 ["Ettin"] = {170, 2200},
77 ["Cutter"] = {65, 1200}, 75 ["Cutter"] = {65, 1200},
78 ["Hunter"] = {65, 1200}, 76 ["Hunter"] = {65, 1200},
79 ["Seawolf"] = {65, 1200}, 77 ["Seawolf"] = {65, 1200},
80 ["Corsair"] = {65, 1200}, 78 ["Corsair"] = {65, 1200},
81 ["Mistral"] = {65, 1200}, 79 ["Mistral"] = {65, 1200},
82 ["Siren"] = {65, 1200}, 80 ["Siren"] = {65, 1200},
83 ["Envoy"] = {65, 1200}, 81 ["Envoy"] = {65, 1200},
84 ["Zephyr"] = {65, 1200}, 82 ["Zephyr"] = {65, 1200},
85 ["Blastwing"] = {45, 4200}, 83 ["Blastwing"] = {45, 4200},
86 ["Gnat"] = {45, 4200}, 84 ["Gnat"] = {45, 4200},
87 ["Locust"] = {45, 4200}, 85 ["Locust"] = {45, 4200},
88 ["Harpy"] = {45, 4200}, 86 ["Harpy"] = {45, 4200},
89 ["Nimbus"] = {45, 4200}, 87 ["Nimbus"] = {45, 4200},
90 ["Revenant"] = {45, 4200}, 88 ["Revenant"] = {45, 4200},
91 ["Krow"] = {45, 4200}, 89 ["Krow"] = {45, 4200},
92 ["Trident"] = {45, 4200}, 90 ["Trident"] = {45, 4200},
93 ["Charon"] = {45, 4200}, 91 ["Charon"] = {45, 4200},
94 ["Hercules"] = {45, 4200}, 92 ["Hercules"] = {45, 4200},
95 ["Ultimatum"] = {2500, 24000}, 93 ["Ultimatum"] = {2500, 24000},
96 ["Scorpion"] = {2500, 24000}, 94 ["Scorpion"] = {2500, 24000},
97 ["Dante"] = {2500, 24000}, 95 ["Dante"] = {2500, 24000},
98 ["Merlin"] = {2500, 24000}, 96 ["Merlin"] = {2500, 24000},
99 ["Funnelweb"] = {2500, 24000}, 97 ["Funnelweb"] = {2500, 24000},
100 ["Paladin"] = {2500, 24000}, 98 ["Paladin"] = {2500, 24000},
101 ["Detriment"] = {2500, 24000}, 99 ["Detriment"] = {2500, 24000},
102 ["Shogun"] = {2500, 24000}, 100 ["Shogun"] = {2500, 24000},
103 ["Reef"] = {2500, 24000}, 101 ["Reef"] = {2500, 24000},
104 ["Scylla"] = {2500, 24000}, 102 ["Scylla"] = {2500, 24000},
105 ["Swift"] = {150, 2000}, 103 ["Swift"] = {150, 2000},
106 ["Raptor"] = {150, 2000}, 104 ["Raptor"] = {150, 2000},
107 ["Raven"] = {150, 2000}, 105 ["Raven"] = {150, 2000},
108 ["Magpie"] = {150, 2000}, 106 ["Magpie"] = {150, 2000},
109 ["Phoenix"] = {150, 2000}, 107 ["Phoenix"] = {150, 2000},
110 ["Thunderbird"] = {150, 2000}, 108 ["Thunderbird"] = {150, 2000},
111 ["Likho"] = {150, 2000}, 109 ["Likho"] = {150, 2000},
112 ["Odin"] = {150, 2000}, 110 ["Odin"] = {150, 2000},
113 ["Sparrow"] = {150, 2000}, 111 ["Sparrow"] = {150, 2000},
114 ["Owl"] = {150, 2000}, 112 ["Owl"] = {150, 2000},
115 ["Dart"] = {40, 700}, 113 ["Dart"] = {40, 700},
116 ["Scorcher"] = {40, 700}, 114 ["Scorcher"] = {40, 700},
117 ["Fencer"] = {40, 700}, 115 ["Fencer"] = {40, 700},
118 ["Ripper"] = {40, 700}, 116 ["Ripper"] = {40, 700},
119 ["Ravager"] = {40, 700}, 117 ["Ravager"] = {40, 700},
120 ["Dominatrix"] = {40, 700}, 118 ["Dominatrix"] = {40, 700},
121 ["Badger"] = {40, 700}, 119 ["Badger"] = {40, 700},
122 ["Impaler"] = {40, 700}, 120 ["Impaler"] = {40, 700},
123 ["Crasher"] = {40, 700} 121 ["Crasher"] = {40, 700}
124 } 122 }
125 for name, ud in pairs(UnitDefs) do 123 for name, ud in pairs(UnitDefs) do
126 if unit_metalcost_ranges[ud.name] then 124 if unit_metalcost_ranges[ud.name] then
127 local min_metalcost, max_metalcost = unpack(unit_metalcost_ranges[ud.name]) 125 local min_metalcost, max_metalcost = unpack(unit_metalcost_ranges[ud.name])
128 if ud.metalcost then 126 if ud.metalcost then
129 local distance_metalcost_midpoint = ud.metalcost - min_metalcost 127 local distance_metalcost_midpoint = ud.metalcost - min_metalcost
130 ud.metalcost = max_metalcost - distance_metalcost_midpoint 128 ud.metalcost = max_metalcost - distance_metalcost_midpoint
131 end 129 end
132 end 130 end
133 end 131 end
134 }}}[/q] 132 }}}[/q]
135 [/spoiler] 133 [/spoiler]