z64555
cc774b83d4
Rename Goober's factor to shield_scale_factor and change its type to a float.
2016-11-25 16:16:24 -06:00
z64555
020c7e70fd
Use correct abs function.
2016-11-25 15:12:12 -06:00
z64555
b30a801f25
(Safety) Add asserts to all functions that use an objp.
...
(Perf) Add early bail-outs to some functions that could be called on non-ship objects
2016-11-25 15:05:40 -06:00
z64555
6f0888e30b
Combine shield transfers from AI and Players into one code path
...
Fixed an Assert()
2016-11-25 15:04:08 -06:00
z64555
0a81104723
AI and Player shield balancing now share same codepath.
2016-11-25 15:01:28 -06:00
z64555
4cd9c847f3
Implemented shield_balance
2016-11-25 10:42:39 -06:00
z64555
14c4e553dd
Doxy and organize objectshield functions. Declared shield_balance.
2016-11-25 10:42:37 -06:00
niffiwan
bf21913708
Updates to max shield recharge fix
...
Use a helper function in appropriate places, add comments where not
Avoid a potential div/0 & add Assertion to shield_get_max_strength
2016-10-16 16:31:11 +10:00
Fabian Woltermann
0591b7ef49
ai profile flags
2016-08-19 22:44:39 +02:00
Fabian Woltermann
770fce8de5
Bitset flags -- take 2 ( #775 )
...
This introduces a new mechanism for handling bit flags. Instead of using an int (or two, or three) to write bits into, this uses the std::bitset in a wrapper class that accepts an enum class as input. This means that certain classes of errors we've had a few of in the engine, where a coder used the wrong set of flags or checked them against the wrong variable (SF_STEALTH vs SIF_STEALTH, for example) can now be detected at a compiler level rather than not at all.
2016-08-12 16:13:50 -07:00
Lari Nieminen
26e31a4cf0
Added a $Max Shield Recharge ship table entry for limiting how full the shields may recharge.
2015-06-04 15:35:41 +03: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
Zacam
6c702a11e6
svn:eol-type set to LF.
2012-01-13 18:37:09 +00:00
Sushi
e46ba43891
Fix for Mantis 2099
2010-05-12 19:40:09 +00:00
Sushi
eb4b7c03e9
Major expansion of AI.tbl. AI.tbl now allows per-AI-class changes to AI settings in AI Profiles. Numerical values (such as $Glide Attack Percent or $Predict Position Delay) are handled as multipliers. YES/NO flags are overridden if set for a specific AI class. All of these multipliers and overrides are optional, and only active if explicitly specified for an AI class.
2009-08-18 04:32:40 +00:00
portej05
719825f80d
The big CVS comment removal. This chops approx. 3.5mb off a full checkout.
...
I've tested this through compiling and through hand checking.
Normalises line endings in ALL files to \n.
2009-06-20 08:08:20 +00:00
taylor
0c1d218fb4
fix compiling on F9 (per the standard, limits.h isn't implicitly included)
2008-06-19 04:36:26 +00:00
WMCoolmon
d760c85ae9
Initial commit of new files for main codebase.
2008-03-15 09:01:46 +00:00