Goober5000
4797ce55a2
use vm_vector_2_matrix_norm on normalized vectors
...
Most places in the code that use `vm_vector_2_matrix` do so on already-normalized vectors. Changing these to `vm_vector_2_matrix_norm` avoids redundant normalization.
2025-03-02 23:07:09 -05:00
Goober5000
f4669db41c
constify some turret code
...
Apply `const` to a whole bunch of functions. Also change a bunch of ints to bools.
2023-12-30 00:00:31 -05:00
Baezon
ce1907c52a
flak should use normal mflash methods
2021-03-15 18:30:47 -04:00
Goober5000
c9df8a13f1
add functions to remove the clutter of static casts for ship and weapon info vectors
2020-03-14 13:02:12 -04:00
Goober5000
20835adef6
convert Weapon_info to a SCP_vector
2020-03-05 19:12:43 -05:00
asarium
eeed22b91a
Enable misc-unused-parameters
...
clang-tidy was used for fixing the warnings. It is not clear if this is
actually an improvement so this may still be disabled later.
2018-04-25 11:57:55 +02:00
Fabian Woltermann
127976cd74
Weapon info flags conversion ( #851 )
2016-08-18 23:17:41 -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
niffiwan
bcea3057f5
GCC warnings: declaration of ‘ship_obj’ shadows a global declaration (weapon/*.cpp)
2012-06-14 10:30:01 +00:00
The_E
d8026058d5
Ooops, I accidentally broke flaks.
2012-02-04 19:25:20 +00:00
The_E
6145ae753a
A bit of cleanup in flak.cpp. Removes #defines made obsolete by previous commits, especially the hardcoded need for the "flk2" animation, which wasn't referenced anywhere in the actual code.
2012-02-04 13:48:58 +00:00
The_E
8636e43dbd
oops, forgot to remove this terminal command
2012-02-04 13:32:03 +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
Echelon9
c17fbdbcfc
Documentation: Code cleanup in flak.cpp and flak.h
2011-09-12 12:45:19 +00:00
Goober5000
d57ab51162
change fl_radian to fl_radians so as to be consistent
2010-12-31 04:02:41 +00:00
portej05
0383415a3b
Antipodes 3 from Flaming_Sword
2009-09-26 05:52:17 +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
d43719ed03
little bit of cleanup (and we don't really have to Assert() there)
2008-03-20 17:55:51 +00:00
WMCoolmon
7e7d77c8d7
*Drumroll* The official scripting system commit to the stable branch!
2008-03-15 08:56:43 +00:00
wmcoolmon
3e9b38313e
Flak weapons only use detonation range if targets are further away than $Det range
2006-01-04 21:48:36 +00:00
wmcoolmon
246cfcfa65
Codebase commit, most notably including objecttypes.tbl
2005-12-29 08:08:42 +00:00
wmcoolmon
78fab0c331
Codebase commit - nebula.tbl, scripting, new dinky explosion/shockwave stuff, moving muzzle flashes
2005-10-30 06:45:00 +00:00
taylor
7f786136a6
s/vector/vec3d/g, better support for different compilers (Jens Granseuer)
2005-04-05 05:53:25 +00:00
Kazan
864e1b5922
remove MCD complete
2004-07-26 20:47:56 +00:00
Kazan
428b3dcbc9
MCD - define _MCD_CHECK to use memory tracking
2004-07-12 16:33:09 +00:00
Goober5000
7ef2ab2e39
Uber pass at reducing #includes
...
--Goober5000
2004-03-05 09:02:13 +00:00
penguin
0c503be8d1
The big include file move
2002-08-01 01:41:11 +00:00
penguin
8f92eebd34
Warpcore CVS sync
2002-06-03 04:10:40 +00:00
penguin
663b3471b9
Volition sources -- warpcore CVS import
2002-06-03 03:26:03 +00:00