Goober5000
e302f0e456
convert the rest of the model instance functions to have model_instance_num parameters instead of object parameters
2016-02-10 23:23:44 -05:00
Goober5000
da812f9433
modify the actual function calls
2016-02-06 18:05:33 -05:00
MageKing17
1159e66168
Avoid checking for combat music if the projectile's parent was recycled.
2016-01-27 01:25:46 -08:00
MageKing17
a5b705b2c1
Store debris damage type on the debris object itself.
...
If the Object that had been assigned to that particular debris's parent wound up getting recycled and used for something else, the code in shiphit.cpp would cause a crash as soon as that debris hit something. This would happen fairly reliably in cluttered missions like BP massive battle.
2016-01-26 23:36:24 -08:00
SamuelCho
0f0f6377d0
Killed the last vestiges of ship_model_start/stop.
2015-12-13 23:51:24 -08:00
The E
e0defd287a
Renaming vm_vec_crossprod to vm_vec_cross
2015-12-01 20:36:34 +01:00
The E
a413255728
Renaming vm_vec_dotprod to vm_vec_dot
2015-12-01 20:35:47 +01:00
Goober5000
ccc71a8e8b
looks like we'll need them in these three other files too
2015-10-25 21:20:57 -04:00
Goober5000
b82d0c579d
convert qsort to std::sort
2015-10-25 19:16:36 -04:00
Goober5000
bd3cd7eb18
Merge pull request #195 from Echelon9/fix/sort-uniq-includes
...
Review and refactor #include's
2015-08-19 00:05:02 -04:00
MageKing17
ce3755b333
Further hook variables cleanup.
...
Consolidated a few sequential calls, corrected a few instances of "ObjectB" being removed when "Object" was set, and removed a couple instances of hook variables that weren't set being removed.
2015-08-18 08:11:11 -07:00
Echelon9
c5493bb480
Scripted sort and uniq on (internal) project includes. Improves search time and as a by product removed a number of duplicative includes.
2015-06-22 20:24:30 +10:00
Fabian Woltermann
f6d0e7d97a
Merge pull request #126 from AxemP/PainFlash
...
Adding customizable pain flash and shield pain flash settings
2015-06-13 15:22:40 +02:00
Axem
27e81df523
Commit cause reasons
2015-06-11 19:50:35 -05:00
Axem
4b20b46509
Commit because reasons? (Why git, why)
2015-06-03 17:44:37 -05:00
Axem
61e4f739ce
Adds On Beam Fire scripting hook
2015-05-31 18:02:36 -05:00
Axem
e396686570
Adding customizable pain flash and shield pain flash settings
2015-05-24 09:00:30 -05:00
MageKing17
ab900aad1c
Avoid calling ssm_create() from ship_apply_tag() if ssm_index < 0.
...
This would happen if a TAG level 3 weapon had no specified SSM (or an invalid one). Since nothing can call ssm_create() with a negative ssm_index now, changed it to a size_t and simplified one of the verification conditionals.
2015-05-19 10:55:17 -07:00
Goober5000
ac25da1bd9
remove the Error (originally Assert) from r1675 and add back the comment removed in r8005
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11181 387891d4-d844-0410-90c0-e4c51a9137d3
2014-12-01 20:37:52 +10:00
niffiwan
a73404dbd5
Error needs LOCATION :)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11176 387891d4-d844-0410-90c0-e4c51a9137d3
2014-11-21 19:26:53 +10:00
The_E
fbd590cd77
Improvement for this error message
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11175 387891d4-d844-0410-90c0-e4c51a9137d3
2014-11-21 18:43:52 +10:00
Goober5000
6e56b2970f
xt branch: minor tweaks
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11146 387891d4-d844-0410-90c0-e4c51a9137d3
2014-10-17 18:25:31 +10:00
niffiwan
484b518760
Fix mantis 2804: beams can use damage factors
...
Add game_setting.tbl option that allows beams to use weapons table
Armor/Shield/Subsystem damage factors
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11089 387891d4-d844-0410-90c0-e4c51a9137d3
2014-09-27 18:20:18 +10:00
zookeeper
8cd19aa588
Merged model point shields from zookeeper branch.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10135 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-25 19:29:36 +10:00
niffiwan
184cda8e58
remove gcc warnings [-Wunused-but-set-variable] in ship/shiphit.cpp
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9922 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-16 19:46:01 +10:00
niffiwan
e725bfc7a1
remove gcc warnings [-Wshadow] in ship/shiphit.cpp
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9921 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-16 19:46:01 +10:00
niffiwan
92e5d5bee3
Coverity 1093637: "fix" out of bounds read of Weapon_info[Weapons[other_obj->instance].weapon_info_index].subtype
...
(fix for release, at least, Assert probably handles this in debug)
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9906 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-16 19:45:59 +10:00
The_E
658c6c5aa8
From Axem: Patch for Mantis 2870 (hook variable for On Death: scripting hook is not always set correctly)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9687 387891d4-d844-0410-90c0-e4c51a9137d3
2013-06-11 19:22:17 +10:00
Echelon9
0a7fcfc0a5
Fix Mantis 2854: AddressSanitizer: global-buffer-overflow in do_subobj_hit_stuff()
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9649 387891d4-d844-0410-90c0-e4c51a9137d3
2013-06-11 19:22:14 +10:00
Echelon9
72770939a2
Further spelling fixes, inspired by bugmenot's Mantis 2794
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9533 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:24:45 +10:00
The_E
d1e73bd8b7
Followup for 2788: Fix potential issue while looping through subobjects.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9530 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:24:45 +10:00
The_E
6197c20010
Patch for Mantis 2788: Difficulty-based damage scaling does not work
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9529 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:24:45 +10:00
Goober5000
3b5b154712
fix from Admiral MS -- if there's no explosion, explosion sound shouldn't play either
2012-10-29 20:29:54 +00:00
Goober5000
5785885641
Admiral MS's patch for destroy-instantly and destroy-subsys-instantly
2012-08-27 02:50:05 +00:00
Goober5000
00d4f23209
this should fix all of the issues with docked fighters and bombers (Mantis #945 )
2012-07-01 03:24:41 +00:00
Echelon9
8befbc7adf
warning C6246: Local declaration of 'subsys' hides declaration of the same name in outer scope. For additional information, see previous declaration at line '443'
2012-04-15 07:12:28 +00:00
Zacam
2cb5b15bd8
Nukes changes to the Armor Table for Difficulty Scaling and additional options.
...
Potentially handles Mantis issues 2493 and/or 2494.
http://www.hard-light.net/forums/index.php?topic=78277.0
2012-03-28 06:25:26 +00:00
zookeeper
a02fb5a869
Moved the features from r8621 and r8622 behind two game_settings.tbl flags.
2012-03-22 06:15:39 +00:00
zookeeper
8890b61350
Made hits which directly impact a subsystem's submodel always deal damage to that subsystem first, even if other subsystems are closer to the point of impact.
2012-03-21 12:34:34 +00:00
zookeeper
c14399cfb1
Made hits to a turret's barrel count as hits to the turret subsystem itself.
2012-03-21 12:31:02 +00:00
zookeeper
c87c2cbd63
Added a "collide submodel" subsystem flag, which makes the subsystem take local damage only from shots which actually impacted its submodel.
2012-03-17 17:40:53 +00:00
The_E
855fe8cb34
Removing superfluous SSM alert message spawning.
2012-02-04 21:05:02 +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
karajorma
e95201e041
Training weapons shouldn't cause smoke to come off of ships which haven't really taken any damage.
2011-12-31 06:49:30 +00:00
Echelon9
19ae6528e0
Cases of commented out Int3() indicate areas of old, redundant code.
2011-11-17 11:07:53 +00:00
Zacam
a63dbe572c
Part Two: Synchronization pass of Trunk and Antipodes Differences.
...
Removes all extraneous ifdefs (Demo, E3, Multi Beta, etc).
Leaves Debug and Inferno.
2011-09-09 10:23:53 +00:00
The_E
5ea6138708
A bit of cleanup here. Removed unnecessary "if (true)" and changed the sexp code to use the already written armor_type_get_idx function
2011-09-04 19:33:09 +00:00
Goober5000
5fb4a6db18
add ability to set the duration of the ship death roll
2011-05-30 21:06:11 +00:00
Wanderer
bf66734ded
adds table controls for various particle effects, and explosions related to ship death event. per ship class base deathroll time.
2011-04-14 18:59:06 +00:00
Zacam
973fab655e
Reported by chief1983, adds closing brace to line 2346.
...
Mac's should be happy now.
2011-04-12 23:35:58 +00:00