niffiwan
c05845cb9d
Fix mantis 3114
...
Change turret-tagged-only behaviour back to retail
Add AI profiles flag to allow use of newer behaviour (i.e. stricter)
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11177 387891d4-d844-0410-90c0-e4c51a9137d3
2014-11-21 19:26:53 +10:00
MageKing17
b14b590ab1
Adding "interceptable", "turret interceptable", and "fighter interceptable" weapon flags.
...
These allow munitions to be attacked by the AI without needing to set the "bomb" flag; "turret interceptable" means it can be attacked by turrets, "fighter interceptable" means it can be shot down by fighters, and "interceptable" sets both flags simultaneously. Requested by Rheyah.
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11171 387891d4-d844-0410-90c0-e4c51a9137d3
2014-11-10 17:45:58 +10:00
Goober5000
4dafc8ff5f
this too
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11117 387891d4-d844-0410-90c0-e4c51a9137d3
2014-10-12 06:22:24 +10:00
Goober5000
d5e81757b0
some turret changes from the XT branch
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11116 387891d4-d844-0410-90c0-e4c51a9137d3
2014-10-12 06:22:22 +10:00
Goober5000
a3b7eec214
make flag checking more efficient and prevent an Int3() on bad data
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11109 387891d4-d844-0410-90c0-e4c51a9137d3
2014-10-07 18:22:11 +10:00
m_m
9689711149
From FUBAR-BDHR, chief1983, m!m and MageKing17: Fix for Mantis 2887: Additional workaround for mantis 2693
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10969 387891d4-d844-0410-90c0-e4c51a9137d3
2014-08-06 19:39:34 +10:00
z64555
8d5fbab768
z64555's debug console. Take 2. Includes changes to most (not Xcode) project files to include the added files of r10621
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10622 387891d4-d844-0410-90c0-e4c51a9137d3
2014-05-08 19:18:37 +10:00
The_E
98355da7d5
Revert 10619: Missing files
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10620 387891d4-d844-0410-90c0-e4c51a9137d3
2014-05-08 19:18:36 +10:00
z64555
2b2ba832f8
z64555's debug console.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10619 387891d4-d844-0410-90c0-e4c51a9137d3
2014-05-08 19:18:36 +10:00
zookeeper
ef94f4bb04
Ported $Velocity Inherit weapons table option from zookeeper branch.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10287 387891d4-d844-0410-90c0-e4c51a9137d3
2014-01-14 20:24:46 +10:00
niffiwan
95ab88de98
remove gcc warning: [-Wunused-but-set-variable]
...
(ret_val earmarked for future use)
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10088 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-17 20:24:43 +10:00
niffiwan
ae429e756e
Coverity 1129270: Negative array index read
...
weapon_create can return -1
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10087 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-17 20:24:43 +10:00
Goober5000
7e5b2aee52
turn mc_info into a plain data struct, part 2
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9822 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-26 18:51:36 +10:00
Echelon9
709f914867
Fix Mantis 2825: AddressSanitizer: global-buffer-overflow in turret_weapon_has_flags() aiturret.cpp:316
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9629 387891d4-d844-0410-90c0-e4c51a9137d3
2013-04-14 13:00:35 +10:00
Echelon9
d0ca515cef
Fix Mantis 2836: AddressSanitizer: global-buffer-overflow in ai_fire_from_turret() aiturret.cpp:2528
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9621 387891d4-d844-0410-90c0-e4c51a9137d3
2013-04-14 13:00:34 +10:00
Goober5000
a916633b46
onlyjob's spelling fixes, per Mantis #2777
2013-01-13 09:50:08 +00:00
Valathil
e1f07390e2
Fix for Mantis 2755: Update weapon_info references after weapon_create to get updates from possible substitution
2012-12-16 14:25:21 +00:00
Valathil
f920395b0c
Fix for Mantis 2707: Pass the firing turret to weapon_create so it knows where to look for when using $Substitute.
2012-12-15 21:47:51 +00:00
The_E
9cec60f23d
Fix for Mantis 1596: Adds "turret-fired" animation trigger
2012-11-28 20:08:07 +00:00
Echelon9
52093cf6c6
Documentation: Pass cleaning up a few functions with partial docs
2012-10-08 15:53:14 +00:00
The_E
535d91bae8
New weapons.tbl flag: "anti-subsystem beam" Enabling this allows the turret AI to use beams against subsystems
2012-07-29 11:09:36 +00:00
Echelon9
65adaf51a9
GCC warning: variable set but not used (within AI code)
2012-06-12 16:45:36 +00:00
Goober5000
39fc7d8834
Valathil's fix for Mantis #2652
2012-06-11 03:22:48 +00:00
Echelon9
172ff073ef
Documentation: Some extra notes within aiturret.cpp
2012-04-12 16:09:33 +00:00
Echelon9
3ce3fea911
Correct copy/paste error -- refer functions above for similar pattern used correctly
2012-04-12 16:05:57 +00:00
Echelon9
6bebe3c397
Documentation: Attempt to begin getting aiturret.cpp under control
2012-04-12 15:55:57 +00:00
Sushi
f941c56597
Make $Max Turrets per Target only affect small ships (we can add a separate one for large ships later, if needed)
2012-03-21 15:07:28 +00:00
zookeeper
828c766337
Slightly relocated the triggering of $On Turret Fired hooks as well as the setting of a few weapon variables. Makes sure that the variables only get set when a weapon is actually created and that all the weapon variables have been set before the hook is triggered.
2012-02-06 21:09:16 +00:00
The_E
928ef7a91b
A few parameters for Flak weapons as requested by fury. Changes:
...
-Arm Radius now determines how far a flak shell will have to travel before being able to detonate (used to be hardcoded to 10 meters)
-New weapons.tbl parameter "Flak Detonation Accuracy" to determine how far from a target a flak shell may explode (used to be hardcoded to 65 meters)
-New weapons.tbl parameter "Flak Targeting Accuracy" to determine the amount of jitter applied to turrets targeting other objects. Used to be hardcoded to 60 meters, applied as a radius around the target position
-New weapons.tbl parameter "Untargeted Flak Range Penalty" to determine the range penalty a flak weapon is subjected to when firing without a target. Used to be hardcoded to 20 meters.
2012-02-04 13:28:02 +00:00
zookeeper
ab34afd212
Added the $On Turret Fired scripting hook.
2012-01-21 15:16:53 +00:00
Echelon9
dc4371680a
Clear a whole set of LLVM warnings - some of these would have caused memory fubars, so should marginally improve stability
2012-01-15 08:08:15 +00:00
Valathil
164898ee8e
Made WIF2_SMALL_ONLY weapons on turrets not fire on HUGE ships when grouped with other weapons that are not WIF2_SMALL_ONLY
2012-01-10 18:34:50 +00:00
Valathil
4096a41ac3
Fixed Swarm Salvo turrets Spamming their ordinance since 7981
2011-12-18 16:52:35 +00:00
Echelon9
19ae6528e0
Cases of commented out Int3() indicate areas of old, redundant code.
2011-11-17 11:07:53 +00:00
Sushi
f542f19fcc
Add "only target if can fire" turret flag
2011-11-14 18:26:55 +00:00
Zacam
6b2af30314
From zookeeper: fix $Shots for turret-fired weapons
...
http://www.hard-light.net/forums/index.php?topic=78832.0
2011-11-12 14:39:02 +00:00
Echelon9
9f711bf53e
Documentation: General code cleanup for 64bit
2011-11-05 08:12:04 +00:00
The_E
5c05db7c40
Small fix for the logic here
2011-09-19 15:53:11 +00:00
The_E
e689c90703
As requested by zookeeper: Adds "play fire sound for player" subsystem flag
2011-09-18 17:31:41 +00:00
The_E
8c129cfc3d
Reverting 7733. This is clearly not ready for primetime, let alone a release.
2011-09-16 10:01:10 +00:00
The_E
5ec132d6e4
Adding support for the $On Weapon Fired: hook going off when turret weapons are firing
2011-09-15 11:46:33 +00:00
Sushi
04af101eda
Add "$Max Turrets per Bomb" and "$Max Turrets per Target" turret attributes. Allow per-turret control over maximum number of targeted bombs and ships (respectively). Works like "$Max Turret Target Ownage" but on a per-turret basis, and with the ability to affect incoming bombs as well.
2011-08-25 01:33:44 +00:00
Goober5000
b1ad28efdb
add an option to fire-beam to force the beam to fire
...
combine fighter_beam flag into flags field
2011-08-21 01:11:24 +00:00
The_E
f768943284
Swifty's collision detection improvements.
2011-07-01 17:00:31 +00:00
Sushi
e661586a3f
Add "wait for animation" turret flag (turret won't fire until associated animation completes)
2011-06-26 18:10:54 +00:00
Wanderer
2eb06e1787
fixes to turret rotation handling (swarm issue) and to secondary turret angle checks
2011-04-23 21:53:19 +00:00
The_E
9d8caf5f2a
m!m's corrections to subsystem:fireWeapon() as seen here: http://www.hard-light.net/forums/index.php?topic=44821.msg1486751#msg1486751 . Slightly adjusted to use model instances. Also tweaked ship_get_global_turret_gun_info() to use model instances.
2011-03-18 21:47:17 +00:00
Goober5000
110cd3bccc
add turret-protect-ship and turret-unprotect-ship
2011-01-21 08:55:26 +00:00
The_E
083a84feff
Swifty's go-swift stuff. Makes collision detection slightly less insane.
2010-12-22 14:42:21 +00:00
The_E
e38b68bee5
Partial fix for Mantis 2277. This moves the "Turret Firing" animation trigger so that it only triggers when the turret really is firing.
2010-12-09 23:13:46 +00:00