Commit Graph

609 Commits (33798e384aca9d551802a330602b53779c2862ec)

Author SHA1 Message Date
Dennis Schridde 33798e384a Multiplayer Command Turrets can now attack/mark air targets. This makes it sensible to attach AA weapons to commanders for defensive purposes.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@954 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-04 14:42:40 +00:00
Dennis Schridde 7c816b265c Crashfix
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@953 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-04 14:41:22 +00:00
Giel van Schijndel 860983318c * Set the bugtraq properties on the nsis directory as well
* Set svn:ignore to:
  * include files which should only occur in a working copy (e.g. makerules/config.mk which is derived from makerules/config.mk.tmpl)
  * prevent files produced by the build-system (e.g. files generated by bison and flex) from showing up in `svn status'

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@952 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-03 23:20:44 +00:00
Dennis Schridde e25d5f511b Patch by Giel: NSIS uninstall info extension:
- This patch adds some additional info (including an URL to http://wz2100.net/) to the MSW Add/Remove software section.
Some additional variable reordering by me.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@951 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-03 19:47:09 +00:00
Roman C 3bfab0ce95 -Implemented C-like #include preprocessor directive for the scripting engine, can be used up to depth of MAX_SCR_INCLUDE_DEPTH. Unlike C counterpart main purpose is to reuse executable and non-executable code.
Example:
#include "multiplay/skirmish/my_include.slo"

-Implemented C-like #define preprocessor directive. Nested macros allowed with up to depth of MAX_SCR_MACRO_DEPTH.
-Added a script function for a fast feature iteration (returns burning as well as non-burning oil resources)
-Replaced some custom Pumpkin routines with default FLEX routines
-Some cleanups

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@950 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-02 20:12:14 +00:00
Dennis Schridde f942dc4700 Make framerate limit configurable (through "framerate" config value).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@949 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-31 20:29:24 +00:00
Dennis Schridde f041357397 Fix broken SCOURGEs yet again. Please check your patches before commiting...
(SCOURGEs exploded immediately when launched.)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@948 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-31 19:54:46 +00:00
Dennis Schridde 8df2091640 Cleanup, fix warnings created by missing braces in intialization of the oaInfo struct.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@947 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-31 19:51:43 +00:00
Per Inge Mathisen 3f88e8e4f2 Remove some more dead graphics code, and fix some warnings.
Happy new year everyone!


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@946 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-31 18:19:19 +00:00
Roman C 4ce5cd91ed Patch by Watermelon:
Multi-Targeting support:
1. Every weapon will try to choose its 'ideal' (this weapon's best
target) target first, if fails choose primary (weapon_slot 0) target.
2. If primary target is not valid for auxiliary (2nd,3rd etc), auxiliary
turret will try to acquire other targets (use primary weapon mortar to
engage remote target while having mg/cannon to engage close-quarter
enemies).
3.Adds DROID_OACTION_INFO struct (contains DROID_MAXWEAPS pointers to
BASE_OBJECT(target)) to handle multiple target info in order
functions.
4.A few weapon-related functions now return boolean values again instead of bitfields.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@945 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-31 15:18:01 +00:00
Dennis Schridde b9bd1a66b4 Temporary fix for breakage discovered in r942 / bug #8129
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@944 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-31 11:50:47 +00:00
Dennis Schridde a7aac74fae - Removed some commented parts
- Removed unneeded check for psTarget == NULL from the establishTarget* functions, would have crashed before anyway
- Patch by Watermelon: Projectile Fix 7: 1.Fixed a crash with VTOL bomber with NULL weapon pIMD.
- Fix include of lib/framework/frame.h


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@942 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-30 22:01:34 +00:00
Per Inge Mathisen 9c22bf56ba Fix possible source of redefined macro warnings
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@941 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-30 19:22:08 +00:00
Roman C 5363029ebb Patch by Giel van Schijndel: fixes usage of enum with an increment operator.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@940 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-30 17:04:38 +00:00
Dennis Schridde 4e28453441 src/* and lib/ivis_common/piemode.h by me: Cleanup unused functions.
Rest: Patch by Giel van Schijndel: codecleaning patch: lets delete stuff


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@939 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-29 19:56:06 +00:00
Dennis Schridde 3edcde4ff3 Update the README and patch by Watermelon: Projectile Fix 7
1.Made the Get z 'height'(imd + turret imd) a function called establishTargetHeight to remove hacky checks and such
2.Few minor changes to various variables.
3.Fixed some building height check problems like missile not able to hit fortress etc(hopefully)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@938 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-29 19:02:41 +00:00
Dennis Schridde 067687c5e7 Fix raw Makefiles
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@937 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-28 11:47:58 +00:00
Dennis Schridde 1b7a63f6ef NSIS support for automake.
raw Makefiles might be broken, please report back!


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@935 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-27 21:44:46 +00:00
Dennis Schridde 8745e3038e - Modify NSIS script to support more flexible directory structures
- Use external version definition

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@934 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-27 15:48:28 +00:00
Dennis Schridde 4baada70c7 Add versioninfo to installer
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@933 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-27 15:26:44 +00:00
Dennis Schridde 8d9f48a745 Patch by Giel: NSIS improvements
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@932 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-27 14:57:41 +00:00
Dennis Schridde c4be99146a Part I of Giel's NSIS patch
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@931 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-27 13:35:10 +00:00
Roman C 0fc33f432c Patch by Giel van Schijndel: fixes enum incrementation with postfix increment operator.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@930 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-27 13:21:04 +00:00
Dennis Schridde fde592c49f The NSIS script
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@929 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-26 19:59:34 +00:00
Roman C e526ba4c1d Updated ChangeLog.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@928 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-26 16:53:47 +00:00
Roman C cc5f4ef441 -new 'height-map' radar mode (CTRL+TAB to cycle through radar modes)
-revamped radar modes management

Scripting engine:
-some interpreter speedups
-new script function to modify map tile height from scripts
-made numeric pad keys 0-9 accessible from scripts

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@927 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-26 16:39:07 +00:00
Dennis Schridde 0c6ede6fa4 Patch by Giel van Schijndel: Increase chatconsole displaytime.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@926 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-26 01:22:48 +00:00
Dennis Schridde fed7e0b738 Fix bug #7980 (multiple powerbars), patch by Giel van Schijndel.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@925 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-26 01:20:11 +00:00
Dennis Schridde 7cb58437f4 Changed bugtracker prop
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@924 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-25 20:34:20 +00:00
Roman C 33887643eb Patch by karmazilla: fix to the Tutorial 'blue skybox' bug (bug #8087)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@923 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-25 14:34:03 +00:00
Dennis Schridde 43d2367731 Forgot the ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@921 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-25 01:44:43 +00:00
Dennis Schridde 52e8d3b435 Forward port some missed changes
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@920 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-25 01:43:01 +00:00
Roman C 2da67b99e1 Patch by Watermelon: Fixed campaign loading bug and connector coordinates for Mantis body
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@917 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-24 10:45:22 +00:00
Dennis Schridde e189e064c0 Forward port make install fix for Automake < 1.10
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@916 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-23 17:26:58 +00:00
Roman C 5fc9a54889 Updated AUTHORS and ChangeLog.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@906 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-22 15:35:58 +00:00
Roman C bd2dd39e56 -replaced some numbers scattered across the code with defines
-when looking for a new target droids/structures will now take into consideration targets of the friendly droids/structures nearby
-droids/structures are now constantly looking for the best target - will no longer lock on decoys/walls and other crappy targets forever
-ALT+Space now opens a special debug window - set window text with setDebugMenuEntry()
-minor cleanups

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@905 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-22 15:13:04 +00:00
Roman C 1cb603a445 Updated ChangeLog.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@904 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-18 10:34:42 +00:00
Dennis Schridde dad287c576 Fix breakage and some warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@903 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-17 20:42:41 +00:00
Dennis Schridde 4b3fa4a865 src/projectile.c : Change an if() chain to switch
lib/ivis_common/pietypes.h : Add a depth field to bitmap so different bitdepths can be supported
Some minor cleanups (remainders from a failed abitrary-tiles attempt).



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@902 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-17 18:18:06 +00:00
Roman C 840312f8ea Patch by Watermelon with slight modifications:
-new ORDER_CIRCLE VTOL command - will defend a certain position flying over it and engaging enemies nearby
-adds additional armor types for all sides of a droid (rear, front, top, bottom, left, right) - additional armor definitions are in body.txt.
Droid damage is now also a function of the impact side.
-adds multi-turret support for VTOLs
-modifies connectors in bodies: first 5 connectors are for ground units, the rest is for VTOL.
-introduces some fixes

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@901 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-17 17:12:14 +00:00
Roman C cee8ff2da9 Updated makefiles
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@900 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-17 12:57:14 +00:00
Roman C 7590ea72a7 -added "case-insensitive" %option to chat_lexer.l, so that -i flag doesn't have to be specified during compilation anymore
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@899 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-16 16:54:15 +00:00
Roman C 14cd4b60cc Scripting engine update:
-void pointer is now compatible with any other pointer type
-strings can now be directly compared using '==' and '!=' operators
-added a linguistic chat message parser with some generic messages predefined - to be used for Human<->AI and AI<->AI communication
Note: chat_lexer.l should be compiled using an additional -i switch for case-insensitive lexer

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@898 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-16 14:59:50 +00:00
Dennis Schridde 3f4119994f Fixes by Hikaru:
- bug#7423 : Segfault because of missing argument to COMPRINTF in src/structure.c
- Repair units recieving attack orders and are thus not repairing.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@897 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-09 11:04:35 +00:00
Dennis Schridde 8c0393f7ca Some minor cleanups, removed unused/unneeded functions, stoped debug spamming
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@896 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-08 19:14:32 +00:00
Roman C ca6d0af961 Fixed a bug which was preventing script increment/decrement operators to function properly
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@895 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-06 18:57:17 +00:00
Dennis Schridde 4ca32b9947 Remove invalid and unnecessary forward declaration of an enum.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@894 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-04 15:47:08 +00:00
Dennis Schridde cc5c9167e6 Fix windows compile and convert main.c to WZ_OS_ and WZ_CC_ defines.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@893 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-03 16:31:19 +00:00
Dennis Schridde 9188b707a6 Very tiny beautification.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@892 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-03 00:49:43 +00:00
Roman C 2392bc8c9c Disabled CALL_DORDER_STOP script callback - fix to the the callback bug as described by Hikaru-orly
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@891 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-03 00:36:18 +00:00