Commit Graph

709 Commits (d7b341b7889d983dd29e5291cc54139c45007884)

Author SHA1 Message Date
Thomas Barlow 5ad6596be9 Fix some polygon issues in the factory models.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9403 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:33 +01:00
Guangcong Luo b6f03407dd Add new file data/mp/stats/messages/resmessages12.rmsg - additional research descriptions.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9397 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:27 +01:00
Guangcong Luo 258d65c169 Fix some unnecessarily specific numbers in weapon accuracy and pricing: 99% -> 100%, 999 -> 1000.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9395 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:27 +01:00
Guangcong Luo 4df6b05f40 Research messages more specific: "Machinegun damage +25%" instead of "Upgrades machinegun damage". Also add description for radar detector, and fix prerequisites for Flamer Autoloader Mk2.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9392 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:27 +01:00
Per Inge Mathisen a46a6eb68b Throttle AI construction of VTOL factories based on amount of power. Add thermite bombers to VTOL fleet.
Reorder VTOL target priorities to go after construction first. Restrict help build event to avoid trucks
wandering across the entire map to help build something that is finished a long time ago when they arrive there.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9390 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:27 +01:00
Per Inge Mathisen ce8491b4ad Rewrite buildDerrick AI skirmish event. Instead of looking for the next closest oil resource
to our base, be more opportunistic and look for the closest oil resource to each droid, and
only send one droid toward each oil resource. Also speed up full base starts by launching this
event immediately upon start (but after build start base event).


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9389 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:26 +01:00
Per Inge Mathisen 7ca0bc7547 If AI loses a race for an oil resource, it will now instead build a cheap defense building there as revenge.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9388 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:26 +01:00
Per Inge Mathisen ddcb9a9986 Remove some dead AI code from scripts.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9367 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:25 +01:00
Guangcong Luo 81e5af8e34 Rebalance 0.7.0.
Flashlight: range 6-12 -> 12-12
Pulse Laser: range 8-16 -> 14-14, damage 170 -> 165
Heavy Laser: range 5-7.5 -> 16-16, damage 350 -> 240
Pulse laser tower: price 175 -> 200
Pulse laser hardpoint: price 250 -> 275
Heavy laser emplacement: price 225 -> 450

Scourge: range 5-16 -> 5-14, accuracy 70%-80% -> 50%-80%
Seraph: range 5-14 -> 7-15
Lancer: price 125 -> 150, accuracy 50%-60% -> 30%-60%, remove MRL prereq
Lancer hardpoint: price 150 -> 175
Tank killer: accuracy 50%-60% -> 30%-60%
MRL: damage 30 -> 34
MRP: accuracy 45%-45% -> 40%-45%, range 5-8 -> 4-8

Note to self: Fix the tank killer angle bug already.

Mortar/pepperpot: Splash radius 0.5 -> 1.0
Bombard/incendiary mortar: Splash radius 0.75 -> 1.25, (incen) burn radius 0.5 -> 1.25

Howitzer/hellstorm: Splash radius 1.0 -> 1.25
Ground shaker/incendiary howie: Splash radius 1.0 -> 1.5, (incen) burn radius 1.0 -> 1.5

All-rounder modifiers:
Cyborg 60% -> 65%, Wheels 120% -> 125%, HT 110% -> 115%, Tracks 100% -> 105%, Hover 100% -> 120%

Artillery modifiers:
Tracks 50% -> 40%, HT 70% -> 65%, Hover 100% -> 120%

Whirlwind site obsoletes Cyclone site
Cyclone site obsoletes Hurricane site
Whirlwind hardpoint obsoletes Cyclone hardpoint
Gauss hardpoint obsoletes Rail hardpoint
Gauss emplacement obsoletes Rail emplacement

Fixes bug #663 - Tank Killer doesn't fire.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9338 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:21 +01:00
Per Inge Mathisen 7f63c39b06 This patch significantly cleans up the template loading code. It does not fix any known bugs. I did this
in an attempt to fix the copycat truck bug, but it has so far managed to escape me. Closes ticket:1417


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9319 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:19 +01:00
Per Inge Mathisen 423ac3df4f Use chained events instead of relying on a 40 second repeat trigger for research. This
makes the AI much faster at researching, as it eliminates long delays. Also clean up
the base expansion code and make it stop trying to expand when out of power.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9243 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:07 +01:00
Guangcong Luo 541d555e25 Rename Dragon from "Super Heavy Body" to "Multi Turret Body".
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9195 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:00 +01:00
Per Inge Mathisen 640f94ace4 Nudge scav script a bit to make it not crash the script interpreter.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9171 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:37 +01:00
Per Inge Mathisen 7125b11198 Make scavengers work in skirmish again. And they are now meaner than ever.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9170 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:37 +01:00
Per Inge Mathisen c0411ed819 Remove unused wrf files
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9168 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:36 +01:00
Per Inge Mathisen 4eaa4f9afa Fix erroneously commented out line
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9166 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:36 +01:00
Per Inge Mathisen 40652f7257 Fix references to new AI scripts. Remove references to old "campaign" style resource definitions and scripts.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9165 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:36 +01:00
Per Inge Mathisen b8d42bd9fe Change AI script loading. Now AI scripts are kept in ai.slo and ai.vlo, instead of in 8 almost identical files.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9162 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:36 +01:00
Guangcong Luo 187986f92e Fix bug #967 - templates.txt templates (namely, Truck and AI templates) were 1 power point cheaper, and had 1 less HP, than templates created in the Design screen.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9160 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:35 +01:00
Per Inge Mathisen 027cb31486 Make AI use event chainloading for basic structures and new trucks. This means that instead of calling
common AI functions from several places, which can lead to the CPU spending much time doing AI stuff
that frame, or setting the object to idle and wait for a repeat event to pick it up, which can lead to
long delays, it queues up another event for the next AI frame to continue processing.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9133 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:32 +01:00
Per Inge Mathisen baa0ac2188 Purely stylistic changes to make it easier to read this code for mistakes.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9131 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:32 +01:00
Per Inge Mathisen ada555a8d0 Add two new features to challenges, 1) to enable/disable changing your own position,
defaulting to not allowing user to change his or her position, and 2) to allow the
challenge to specify starting positions for each AI. Previously the user could freely
change starting position on all maps. Now this feature is only allowed on the "No Place 
To Hide" challenge. Also move the starting AIs for "Hide Behind Me" challenge to flank
the starting player.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9056 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:23 +01:00
dak180 72ccb7c384 PNG optimization, also known as 'Crush them all!'.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9038 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:21 +01:00
Guangcong Luo 192ade3cc0 Fix bug #1361 - tutorial can be unable to be finished if user clicks through design screen too quickly.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9033 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:10 +01:00
Guangcong Luo fc94a37432 Fix bug #1325 - confusing research icons for some missile upgrades.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8960 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:02 +01:00
Guangcong Luo 9b0381b14b Remove the two Warzone logo backdrops - they're really unprofessional and tacky, especially when there's already a Warzone logo at the top of the screen.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8933 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:03:57 +01:00
Guangcong Luo e22246cb30 A few balance changes:
- Update cyborg lasers to match changes to regular lasers
- Change cyborg transport research icon to cyborg transport
- Change Lancer's prereqs from HEAP Mini-Rockets to HE Mini-Rockets Mk3
- Allow only Dragon to have multi-turret; decrease its HP by 50

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8894 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 20:27:06 +01:00
Per Inge Mathisen 6986f8a054 Undelete droidBuiltAssign() that turned out to be quite essential. Make no
base builds much faster yet, by making droids cooperate on more buildings.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8813 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 20:26:54 +01:00
Per Inge Mathisen 209bf40833 Remove dead or non-working code from the default skirmish AI.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8812 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 20:26:53 +01:00
Guangcong Luo 84ba706499 New interface images: Attack-move and unload transport images, better North pointer, and correctly-aligned checkbox.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8802 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 20:26:52 +01:00
Buginator 1a1896e3bc Add the laser satellite to the limits screen.
fixes ticket:1227
Patch by 13KukYNexus666


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8730 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 20:26:45 +01:00
Guangcong Luo fbd286011c Remove "ready" text from ready checkbox image.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8715 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 20:26:44 +01:00
Per Inge Mathisen 89679c361a Significantly improve default AI no bases behaviour by making sure starting
trucks cooperate on an initial factory. Implements most of and closes ticket:1171


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8704 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 20:26:43 +01:00
Thomas Barlow dd8097da19 Update page 17 with a further improved version.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8687 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 20:26:42 +01:00
Per Inge Mathisen 11a584851d Based on suggestion from player acidjnk, set all AI droids to 'do or die',
and stop AI from building repair centers. This should make AI harder.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8685 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 20:26:41 +01:00
Per Inge Mathisen e1c04d538c Make AI build lancer towers instead of non-existent lancer bunkers. Part of ticket:1171
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8668 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 20:26:41 +01:00
Thomas Barlow 507a22d423 Update wall and hardpoint models with new versions.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8664 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 20:26:40 +01:00
Per Inge Mathisen 36dd15bd0d AI scripts: Fix parentheses in some expressions where canDroidReach was added.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8634 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 17:12:52 +01:00
Per Inge Mathisen c5533ee514 Make AIs go for closest oil first. Closes ticket:1166
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8633 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 17:12:52 +01:00
Guangcong Luo 5ba89a0f93 Better "ready?" checkbox.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8594 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 17:12:47 +01:00
Guangcong Luo 14f2aa3b52 New water tile by Mysteryem (CC-BY-SA-3.0).
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8583 4a71c877-e1ca-e34f-864e-861f7616d084
2010-01-30 17:12:46 +01:00
Per Inge Mathisen 877e90e0ae Make use of the new scavenger icons. See discussion in ticket:1093
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8487 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-23 18:13:25 +01:00
Per Inge Mathisen a841d08a85 Fix some NTW mod models that had bad texture references, and run them through simplipie.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8476 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:20:05 +01:00
Per Inge Mathisen 1b35026ffc Add back missing connectors lost in commit r8471.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8475 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:20:05 +01:00
Per Inge Mathisen 014a3b484e Pipe all PIE files through the simplipie tool to remove unused flags, and turn instances of
the no cull flag into duplicated, inverted polygons. Remove support for the no cull flag from
the source. HOPEFULLY this does not introduce any visual defects. I did not see any. If you 
see any, let me know. This is in preparation for improved object rendering.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8471 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:20:04 +01:00
Per Inge Mathisen 4193cd1705 Fix install of palette.txt, closing ticket:1088 reported by gene69
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8463 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:20:03 +01:00
Per Inge Mathisen 8b5d770fb0 Forgot to commit stats headers for MP games. Oops.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8461 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:20:02 +01:00
Per Inge Mathisen 26de1676e4 Add descriptive headers to some stats files. Eventually all stats files should have a descriptive header.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8438 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:20:00 +01:00
Per Inge Mathisen c6db8bfcd7 Put all palette info into an external file that can be modified by modders. It is quite sensitive
to changes in the number of lines. The colours are in the (from CSS) familiar R,G,B,A hex format. 
Closes ticket:1062


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8435 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:19:59 +01:00
i-nod c09cb93920 Corrected cyborg transport model by Mysteryem.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8403 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:19:57 +01:00