Overhaul
7a27e7105d
New attack busy system
...
Added missing #includes
Added LUA scripting and console
Changed the way tracers are visualized, so they work more like real tracers instead of a light fountain
Fixed signedness of many grid variables used in GetMouseMapPos calls
Fixed enemy weapon choosing: Sometimes a mortar is chosen but later rejected, but the grenade class was not reset. Caused assertion failure
Added checks so enemies don't try to chuck RPG grenades with their hands
Now possible to shoot a someone in the head if he's in water
Fixed InitSightArrays to also clear soldier interrupt duel points. This was causing an assertion failure elsewhere in the code because the interrupt list still had soldiers on it sometimes when this function was called.
Soldiers are much less willing to forfeit their turn over an attempt to use more APs than they have
Removed early setting of muzzle flash. This would allow enemies to get an interrupt before you even fired.
Fixed item dropping by AI. If AI tried to drop something while standing it would cause deadlock
Change to greatly speed up closing the sector inventory window in an unloaded sector
Added conditional compile flag to always give robot weapon ready advantage, even for 360 degree sighting
Check builddefines.h for the conditional flags. Of greatest interest might be LUA_CONSOLE. This will cause the game to bring up a command console when run. However this console is severely lacking in many areas. If anybody knows of an open-source terminal/console that could be used instead, it would be appreciated. The existing console does bad things when you try to close it, and since it counts as a separate app, it pauses the game while it has focus.
LUA scripting is very limited, basically just proof of concept. There is one global variable, the Soldiers array. An array index gives you the soldier in that slot in the currently loaded sector. The soldier has a few things that can be accessed: name (short name); fullname (long name); grid (current grid #, can be changed); walkto(grid) (function to walk to another grid); runto(grid) (function to run to another grid)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@924 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2007-06-09 09:01:04 +00:00
SpaceViking
8ed1ff9d6e
Fixes for array indexing problems when there are no best thrown/best gun
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@922 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2007-06-09 03:04:30 +00:00
lalien
0530b53b9c
bug fixes from Overhaul:
...
- Data type changes
- Templates removed
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@871 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2007-05-09 13:16:37 +00:00
lalien
8e80a6168a
bug fixes from Overhaul:
...
- roof inaccessible tiles problem
- AI hang while deciding on an action (fire 0 rounds on auto)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@868 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2007-05-08 15:10:29 +00:00
lalien
30cc546c09
bug fixes from Overhaul:
...
- CTD when someone fell off the west side of a building
- Assertion failure when Skyrider leaves a sector where a merc cannot be woken up
- Boxing fixes: Opponent no longer "seeks cover", ie jumps back out of the ring; no longer will pick up a gun from the ground while boxing
- Disappearing corpses (and possibly items) when cursor hovers over a square on the rooftop; also fixes a "write to freed memory" heap check
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@867 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2007-05-08 14:42:28 +00:00
lalien
6664b92b25
- Added AndroidXP fixes for Sniper Deadlock and Grenade AP loss
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@797 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2007-03-25 15:20:25 +00:00
Lesh
f072ee19ce
- fixed issue with visibility of enemies after raising scoped gun (no need to look twice anymore) and versa, i hope.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@618 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-11-05 18:22:05 +00:00
Lesh
e88e16c038
- bugfix: CTD with tank AI
...
- removed 2 hardcoded values of 'out-of-sight' range, changed to MaxDistanceVisible function
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@585 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-09-30 17:24:18 +00:00
Lesh
6df124efd7
- code cleanup mostly from Brent Johnson (Nonomori), a very few from me
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@508 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-09-06 19:10:08 +00:00
MaddMugsy
4967cfc362
-put a stop to enemies and npcs running into gas and fire (hopefully)
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@444 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-08-15 17:18:37 +00:00
lalien
7a9ea3dbe4
- bug fix: invisible enemies
...
- bug fix: manual reload for two weapons
- bug fix: barrel extender falls off while none is attached
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@382 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-07-31 19:53:58 +00:00
MaddMugsy
185f154aa8
-tweaked ai turning in green a little bit to make them look for noises in green (mostly for snipers)
...
-enabled tunnel vision attribute on readied weapons (previously only worked on attachments, and non-weapon items)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@338 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-07-09 19:43:24 +00:00
Lesh
92b7bd8417
-CTD fix in Tixa in function FindBestPath in PathaAi.cpp
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@334 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-07-07 20:37:08 +00:00
MaddMugsy
a5a0dfd11a
-fixed guns being chosen from too high a level in "Normal Guns" mode
...
-fixed AI not firing guns when able - this should reduce the amount of running back and forth and also the running up to your guys and crouching
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@332 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-07-07 05:40:20 +00:00
lalien
4c5607bae9
- when enemy retreats he will be added to the adjacent sector, not deleted
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@316 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-30 11:11:48 +00:00
MaddMugsy
2a36de6cd1
-added STRATEGIC_EVENT_SEND_TROOPS_TO_DRASSEN to allow players to disable the initial strike on drassen (Now stop whining you lot!)
...
-added some debug msgs that I was using for AI debugging
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@309 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-28 18:54:02 +00:00
MaddMugsy
40ab1020dc
-fixed sniper firing (finally?)
...
-added Ready Weapon AP bonuses to two handed weapons (even though none use it yet)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@296 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-24 17:57:35 +00:00
MaddMugsy
f084927d07
-made sure rocket launcher / tank warning doesn't come up for militia
...
-made a better fix for snipers not firing
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@292 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-23 21:09:51 +00:00
MaddMugsy
bfca64d35f
-slightly reduced number of enemies climbing on roofs during green status (10+ guys on one little roof seemed a bit much ;) )
...
-Fixed sniper firing when spotting a new enemy
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@291 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-23 17:33:17 +00:00
MaddMugsy
634537e5ce
-disabled sniper orders for soldiers w/sniper rifles w/out scopes
...
-added sight checking for snipers when they turn
-removed sniper attitude changes
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@284 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-22 03:16:16 +00:00
MaddMugsy
f83af12336
-restored previous light check changes
...
-fixed enemies getting closer w/out firing
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@283 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-21 19:16:31 +00:00
MaddMugsy
2c26924256
-put light check back to where it was before
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@282 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-21 19:08:59 +00:00
MaddMugsy
fe1a16b63b
-removed inlightatnight checks
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@281 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-21 18:43:27 +00:00
MaddMugsy
039b9211b7
-got rid of redundant gas mask checks
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@265 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-19 16:09:47 +00:00
MaddMugsy
60696b4c68
-removed inlightatnight check from FindBestNearbyCover, since it was already being checked in a different way :p
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@264 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-19 16:05:03 +00:00
MaddMugsy
018d02e5f4
-allowed AI to use extra aiming levels
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@263 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-19 15:57:16 +00:00
MaddMugsy
43eac493ae
-removed lighted spots from valid locations to move to for flanking, finding cover and running away
...
-moved the running out of lighted areas code to after the main Red AI - this will prevent enemies from running into and back out of lighted areas; however, it might also mean that they end up running straight through the light sometimes
-enabled AI to fire at opponents seen by other AIs on Expert & Insane
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@262 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-19 15:50:59 +00:00
MaddMugsy
0b9b683d62
-more from the last update
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@260 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-18 02:30:37 +00:00
MaddMugsy
8f53acf606
-reduced # of guys getting sniper orders - restricted to just the onguard and stationary guys. Hopefully, this will keep them out of the city assault teams & patrols.
...
-added some more raise weapon code for snipers who have nothing to do. This shouldn't really be required since less snipers will be present in assaults.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@259 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-18 02:29:45 +00:00
MaddMugsy
2a98cc4994
-reduced MAX_THREAT_RANGE to reduce stutter during AI turns
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@258 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-18 00:40:57 +00:00
MaddMugsy
1075047acc
-build error fix
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@257 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-17 23:48:12 +00:00
MaddMugsy
80aca50c9b
-reverted a couple minor ai changes from ja2cw mod
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@256 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-17 23:38:06 +00:00
MaddMugsy
e1224183c7
-made snipers more like ONGUARD guys than STATIONARY guys
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@252 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-17 20:15:40 +00:00
MaddMugsy
367f70176d
-fixed new ammo types not coming out of enemy guns properly
...
-minor AI fixes
-reduced minimum default status for bonus depreciation from 100 to 85
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@251 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-17 18:42:57 +00:00
lalien
1bab809f13
- always show game progress in version info (was only when using cheats)
...
- returned AI movement orders in MovementMode to old values (enemies were moving too slow, needs correction)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@248 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-17 11:14:21 +00:00
MaddMugsy
fa415e1c21
-even smaller sniper fix
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@241 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-16 23:06:00 +00:00
MaddMugsy
0b85322585
-small sniper fix
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@240 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-16 23:03:26 +00:00
MaddMugsy
441b674001
-AI fixes for snipers
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@230 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-14 00:17:53 +00:00
MaddMugsy
978bc69943
-adjusted sniper AI preferences
...
-spreadsheet update
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@226 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-13 04:46:27 +00:00
MaddMugsy
20a39b0087
-enabled snipers to turn in place in random directions in green status
...
-spreadsheet update
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@222 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-12 06:57:16 +00:00
MaddMugsy
008e216b17
-added underslung/attached GLs to AI inventory and enabled AI to use them :)
...
-rewrote the AI sniper code to take advantage of readying weapons. Added new SNIPER order for soldiers that's assigned when a soldier has a sniper rifle (80% chance) or a scope (40% chance).
-spreadsheet update
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@216 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-10 07:22:16 +00:00
lalien
005a424314
- bug fix: CTD in endgame when killing Deidrana
...
- disabled code for CD-ROM check (game was killed every time when USB-Stick was removed)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@215 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-09 20:35:59 +00:00
lalien
7d0eabb361
- added some required functions for new AI
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@202 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-08 20:26:48 +00:00
MaddMugsy
8546984b6f
-reverted most AI changes
...
-spreadsheet update
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@200 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-08 17:47:52 +00:00
MaddMugsy
21bc685f8d
WARNING: I haven't tested these changes yet, since I'm still at work :p I'll be testing them and making updates as needed tonight.
...
- updated breaklight effect to use the radius and duration values from Explosives.xml
- updated tracer bullet lighting effect (will probably require more tweaking)
- updated AI - when trapped in gas in Insane the AI goes nuts instead of getting scared. AI in all levels is more likely to use autofire over burst/single fire when in gas (panicking).
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@190 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-08 00:14:23 +00:00
MaddMugsy
75d9e1b1c7
-updated AI to use some features from Ja2CW
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@184 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-07 03:48:02 +00:00
lalien
19b7f398e9
- manual reload ai fixed
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@181 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-06 12:29:04 +00:00
lalien
c4db6f8f13
- manual reload play sound added
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@178 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-05 23:34:43 +00:00
lalien
ce1b1220b7
- new feature: manual reload
...
- update readme
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@177 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-05 22:37:34 +00:00
lalien
5259bdeee2
- bug fix 'j' key was not working properly
...
- check for invalid sector in GetCurrentBattleSectorXYZAndReturnTRUEIfThereIsABattle
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@168 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-04 17:52:58 +00:00