Goober5000
fa0043f93b
Merge pull request #2962 from SelfGamer/master
...
Add flag for AI to only fire Turrets / Secondaries when having clear Line of Sight
2020-12-07 17:47:32 -05:00
Goober5000
8c27d60f0a
Merge pull request #2957 from SelfGamer/fireball-scripting
...
Adds Fireball as a new Object Subclass to scripting
2020-12-07 16:43:41 -05:00
Birk Magnussen
1e5652ea07
Adapt change requests by Goober for Fireballclass
2020-12-07 07:04:09 +09:00
Goober5000
a6f5f4c09c
Merge pull request #2959 from Goober5000/some_turret_fixes
...
some fixes to aiturret code
2020-12-06 08:57:42 -05:00
Birk Magnussen
08fee6f807
Added more lua erros for bad warp effects
2020-12-06 20:48:49 +09:00
Birk Magnussen
16c4097992
Added error when using too short duration for warp effect
2020-12-06 20:42:19 +09:00
Birk Magnussen
ccb6e52475
Simplify Early Out calculation for LoS calculation
2020-12-06 17:34:22 +09:00
Goober5000
bfb7631ad5
Merge pull request #2955 from PhantomHoover/feature/default-fit
...
Turn framerate-independent turning on by default
2020-12-05 22:44:18 -05:00
Goober5000
0dd12473a4
address feedback
2020-12-05 22:40:51 -05:00
Birk Magnussen
18d17b18e0
Added earlier outs for los detection
2020-12-06 11:08:02 +09:00
Birk Magnussen
f10fd36706
Modernized function, iterate over used objects instead of all
2020-12-06 06:47:44 +09:00
Birk Magnussen
d4e9958f0f
Tidy Code. Add AI Flag for firing requires exact los
2020-12-06 05:48:17 +09:00
Birk Magnussen
d72ea2c213
Add require exact los weapon flag
2020-12-06 04:05:40 +09:00
Goober5000
ed7eddc873
comment
2020-12-05 13:54:43 -05:00
Goober5000
c0e5d810be
fix flak not jittering if it had the fire-down-normals flag
2020-12-05 13:43:41 -05:00
Birk Magnussen
042cd0682d
Fixed Warning due to unused variable
2020-12-05 08:48:45 +09:00
Birk Magnussen
2fa8d1e23b
Fixed Error in createWarpeffect, added createExplosion
2020-12-05 08:32:04 +09:00
Birk Magnussen
67ebbddb09
Added Fireball lua API + added createWarpeffect
2020-12-05 07:23:14 +09:00
Goober5000
e0bbdf5d17
Merge pull request #2954 from SelfGamer/master
...
Modified Ship-Ship Collision Overrides to fit other Ship-X collision Overrides
2020-12-04 15:28:08 -05:00
Phantom Hoover
83df3a003c
Turn framerate-independent turning on by default
2020-12-04 17:38:09 +00:00
Goober5000
62a66a0e20
patch player sound issue; adjust code comment and variable scope
2020-12-03 21:19:57 -05:00
Goober5000
0ad267a6dd
remove superfluous function
2020-12-03 21:19:57 -05:00
Goober5000
7eb18dddca
clean up the second half, and remove an unused field
2020-12-03 21:19:53 -05:00
Goober5000
54343a0eee
clean up the top half of ai_fire_from_turret
2020-12-03 21:18:16 -05:00
Birk Magnussen
effe18c629
Added Comments to indicate moved code block for ship-ship collision override change
2020-12-04 10:40:08 +09:00
Birk Magnussen
90b4079746
Remove now unused parameter from ship_ship_check_collision due to warning
2020-12-04 08:07:45 +09:00
Birk Magnussen
3268e1d49b
Modified Ship-Ship Collision Overrides to fit other Ship-X collision Overrides
2020-12-04 07:36:01 +09:00
Baezon
e8fb55fafa
shoot_vector -> pointer
2020-12-03 12:27:35 -05:00
Baezon
2d516ef3ac
allow normal weapons to use 'fire down normals'
2020-12-02 20:18:24 -05:00
m!m
37ea2bdaf4
Merge pull request #2946 from SelfGamer/master
...
Scripting Bugfix: previous HUD set/get gauge color referred to config instead of ingame gauge
2020-12-02 18:04:53 +01:00
Goober5000
5f87f1da47
Merge pull request #2948 from MageKing17/bugfix/turret-change-weapon-4th-bank-fix
...
Fix turret-change-weapon comparing sec_slot to max primary banks.
2020-12-02 00:24:54 -05:00
MageKing17
edcc3b7d59
Fix turret-change-weapon comparing sec_slot to max primary banks.
...
We should compare `sec_slot` to `MAX_SHIP_SECONDARY_BANKS`, not `MAX_SHIP_PRIMARY_BANKS`.
2020-12-01 18:36:02 -08:00
Goober5000
958237f95c
don't flush the tree when evaluating the *-argument conditionals
...
This is a follow-up to PR #2942 . Given that the short-circuiting is now explicitly skipped for node trees containing the special argument, it should no longer be necessary to flush the conditional branch of the sexp tree. (The .cache field is already skipped for special-arg nodes.)
The sexp tree is still explicitly flushed for `every-time` and `every-time-argument`.
2020-12-01 16:31:11 -05:00
Goober5000
bd3b0fc893
Merge pull request #2938 from MageKing17/feature/first-of-sexp
...
Add "first-of" SEXP that behaves like "any-of" with a cap.
2020-12-01 16:22:33 -05:00
Goober5000
9261b9b5d2
Merge pull request #2942 from PhantomHoover/fix/unsound-short-circuit
...
Don't short circuit eval_sexp on nodes which contain the special argument.
2020-12-01 16:20:41 -05:00
Birk Magnussen
4def488a11
Fixed new HUD Scripting API Variable for Gauge Count
2020-12-02 05:35:00 +09:00
Birk Magnussen
47af4b5652
Fixed Warning in new HUD API
2020-12-02 05:30:39 +09:00
Birk Magnussen
f2d013ae0d
Updated HUD Scripting API Docs Again
2020-12-02 05:03:27 +09:00
Birk Magnussen
a30a289f68
Updated HUD Scripting API Docs
2020-12-02 03:36:35 +09:00
Birk Magnussen
dacf61cf80
Moved HUD-Scripting API changes to newe function
2020-12-02 03:34:03 +09:00
Birk Magnussen
b0db9e3aea
Merge branch 'master' of https://github.com/scp-fs2open/fs2open.github.com
2020-12-02 02:53:57 +09:00
Birk Magnussen
76c28ddccc
Fixed HUD set Color call to use in game HUD instead of configs
2020-12-02 02:52:42 +09:00
Phantom Hoover
909f4e9642
Don't short circuit eval_sexp on nodes which contain the special argument.
2020-11-29 20:49:12 +00:00
Baezon
63f16b3fec
fix a copy paste error
2020-11-28 20:38:25 -05:00
MageKing17
017bef3721
Merge pull request #2903 from JohnAFernandez/Adjust-timestamp-warning
...
Slightly alter when a timestamp warning is written to the log.
2020-11-28 12:02:44 -08:00
Fabian Woltermann
743bd306fe
Merge pull request #2934 from PhantomHoover/fix/allow-treason-broken
...
Remove erroneous call to CDR.
2020-11-28 09:28:29 +01:00
Fabian Woltermann
af08485286
Merge pull request #2929 from The-E/feature/expose_power_output
...
Expose the power output in the ship class to sexps and scripting
2020-11-28 09:27:59 +01:00
MageKing17
764b141175
Add "first-of" SEXP that behaves like "any-of" with a cap.
...
It takes a number as a maximum number of arguments that can be evaluated in a single call, but otherwise behaves very similarly to `any-of`; alternatively, if the number is 1, it's like an `in-sequence` that also skips arguments that don't satisfy the condition instead of just invalid ones.
2020-11-27 17:18:34 -08:00
Fabian Woltermann
7be6f8adf4
Remove extraneous call to CDR
2020-11-27 19:30:13 +01:00
Phantom Hoover
2f9e64ed17
Remove erroneous call to CDR.
2020-11-27 18:14:12 +00:00