Commit graph

46 commits

Author SHA1 Message Date
AzaezelX
f5a34308f9 add a docsURL; macro to link a given set of script config vars to git or similar storage urls via clicking on the inspector 2023-01-27 01:13:15 -06:00
Lukas Aldershaab
c999baf7ed Moves from using dStrCmp to the new String::compare static functions. Keeps things cleaner, consistent, and works with intellisense. 2020-10-03 14:37:55 +02:00
Areloch
8956559bfd Various misc. tweaks and fixes based on static code analysis to minimize/fix memleaks, crashes, or other performance impacting code. 2020-09-19 18:25:10 -05:00
AzaezelX
1619b7cd23 from practicing: aiplayer onstuck correction 2020-07-10 12:15:46 -05:00
Lukas Joergensen
76908eae3c Eliminate DefineConsoleMethod 2018-04-17 21:01:50 +02:00
Marc Chapman
ab88b8f489 anim-clip -- sequence selection by afx effects 2017-07-27 00:31:43 +01:00
Thomas "elfprince13" Dickerson
eed9c1c511 Merge branch 'development' of github.com:GarageGames/Torque3D 2017-01-06 22:52:04 -05:00
Thomas "elfprince13" Dickerson
45ae5e71cb fixed lots of tabs and space 2017-01-06 18:04:28 -05:00
Thomas "elfprince13" Dickerson
3f6c269f6a Fixed type inference for nulls in console functions 2017-01-06 14:50:41 -05:00
Azaezel
c57b1a8b70 clang reports: unclear || + && and &+| mixes. 2016-10-14 17:26:13 -05:00
Azaezel
8121408029 doc correction 2016-10-12 10:24:17 -05:00
Azaezel
e12536efcd distance needs to be returned as a float. 2016-10-12 10:19:04 -05:00
Areloch
fd7f8e5c8c Merge pull request #1657 from John3/fixAimOffset
Correct AIPlayer aim.
2016-07-04 18:11:37 -05:00
Areloch
df18fda338 Merge pull request #1631 from John3/RapidFiring_setImageTrigger
Fix for rapid firing setImageTrigger(0,1); issue #1630
2016-07-02 15:57:19 -05:00
John3
9dadd28ab8 Correct Bot aim.
http://forums.torque3d.org/viewtopic.php?f=11&t=673&p=5718#p5718
2016-06-19 10:03:15 -05:00
John3
060649dbad typo "tomove" to "to move" 2016-06-12 14:34:26 -05:00
John3
6c73968bdc fix redundant movePtr->trigger[ i ] 2016-06-07 19:05:10 -05:00
John3
14834bde58 Fix for rapid firing setImageTrigger(0,1); issue #1630 2016-06-06 08:14:49 -05:00
Azaezel
262cc4bac1 Merge branch 'development' of https://github.com/GarageGames/Torque3D into AIExtracts
Conflicts:
	Engine/source/T3D/aiPlayer.cpp
2016-03-02 10:59:10 -06:00
Anis A. Hireche
f701228a37 Steve Acaster's Ai Poses 2016-02-26 15:53:20 +01:00
Azaezel
ee83c8b66c Extacted AI tweaks:
attackradius - seperate value/callbacks to allow AI to be coded to move and shoot.

slowdown triggered by 2x movetolerance rather than a fixed 5 untis.

void AIPlayer::updateMove(const Move* move)  - 'lag' correction.

getTargetDistance - c side distance calculation with enabled option.
2015-12-04 11:24:20 -06:00
Daniel Buckmaster
807aad826f Merge pull request #1357 from Azaezel/ChaseCache
followobject position caching
2015-07-25 15:22:14 +10:00
Areloch
527c3790d6 Issue found with PVS-Studio:
Many instances where we would create a object via a new call, and then check that it was non-null.

This is redundant, as if we ever were in a situation where new failed, we'd be crashing left and right already, so the additional check is wasted processing.
2015-07-21 23:22:21 -05:00
Azaezel
f97dced4a7 followobject position caching
re-use the position of an object we're following (within reason) so we're not constantly regenning a path.
2015-07-17 03:34:22 -05:00
Areloch
11398bb04e Issue found with PVS-Studio:
A lot of instances where some function args are not actually modified in any way, meaning that it is better for performance to convert them into const references. This prevents an additional copy, which can help performance.
2015-07-16 22:02:18 -05:00
Daniel Buckmaster
02c88201c6 Merge remote-tracking branch 'GuyAllard/aiPlayerTweaks' into development
Conflicts:
	Engine/source/T3D/aiPlayer.cpp
	Engine/source/T3D/aiPlayer.h
2015-02-22 21:51:56 +11:00
LuisAntonRebollo
57698599e0 Add missing <cfloat> and <limits> 2015-02-07 20:30:07 +01:00
Daniel Buckmaster
bd437cda1c Merge branch 'development' into walkabout
Conflicts:
	Engine/source/T3D/aiPlayer.cpp
2015-01-29 21:38:20 +11:00
Daniel Buckmaster
014b566014 Merge remote-tracking branch 'gg/development-3.6' into development
Conflicts:
	Engine/source/T3D/gameFunctions.cpp
2015-01-29 21:17:38 +11:00
Daniel Buckmaster
7ab6731f51 Merge branch 'development' into walkabout
Conflicts:
	Templates/Empty/game/tools/worldEditor/scripts/editors/creator.ed.cs
	Templates/Full/game/tools/worldEditor/scripts/editors/creator.ed.cs
2015-01-02 14:45:20 +11:00
Daniel Buckmaster
9fca02b2f8 Merge pull request #1017 from eightyeight/aiplayer-triggers-fix
AIPlayer trigger fix
2014-12-12 21:45:57 +11:00
Daniel Buckmaster
04df62ebe5 AIPlayer trigger fix as in #1007. 2014-12-07 17:14:37 +11:00
Azaezel
8ac10e42b0 checkInFoV correction
requested:
https://github.com/GarageGames/Torque3D/issues/1009
crosscheck vs 69838bdc8c/Engine/source/T3D/fps/guiShapeNameHud.cpp (L177-L240) upon which that was based.
2014-12-05 05:00:09 -06:00
GuyAllard
bc230be8a2 Added scriptable move triggers for AIPlayers. Fixes an issue where AIPlayers were setting move trigger states from invalid memory. Enables the use of player poses and actions. 2014-12-04 16:21:57 +01:00
Daniel Buckmaster
d315b1fa5a Improved style of AIPlayer modifications. 2014-11-29 12:31:05 +11:00
Daniel Buckmaster
f4c940f4fe Added basic Walkabout with #define renamed and no editor. 2014-11-28 19:42:10 +11:00
Vincent Gee
acb192e2a5 Replaced a ton of ConsoleMethods with the DefineConsoleMethod Macro. 2014-11-03 22:42:51 -05:00
Azaezel
e332609003 requested alterations.
bool AIPlayer::checkLosClear(Point3F _pos) removed as not fit for purpose at the present time. Something to revisit when I'm spread less thin, or give someone else a crack at it.
2014-07-13 12:24:17 -05:00
Azaezel
9bed39b7d0 logical inversion to stock functionality as requested. Now assumes if it has a target and does not hit anything Static by the time the ray terminates, then it must be the right target. 2014-07-11 07:47:31 -05:00
Azaezel
ae55ad2b50 revised checkInLos and CheckFoV. boith now take all parameters as optional as suggested, with a target value of NULL resulting in checking the present one.
cleaned up internal usage of checkInLos, tightened the typemask used, and provided further documentation.
2014-07-11 06:58:19 -05:00
Azaezel
8aebb67aa1 conforms losmask to standard nomenclature 2014-05-13 22:45:25 -05:00
Azaezel
9342115b1e helper functions for AI: testing if an object is in line of sight (and optionally if it's enabled), if a point is clear, and if an object is within a given angular field of view (optionally specified beyond a stock 45 degrees, as well as optionally checking if the target is enabled) 2014-05-13 19:53:00 -05:00
cpusci
4c35fd37af Simple pass over the codebase to standardize the platform types. 2013-08-04 16:26:01 -05:00
thecelloman
b4ea1123dc Remove Interior Object format (DIF) 2013-04-05 12:39:26 -04:00
Daniel Buckmaster
f69b4bb1f1 Added a console method to get an AIPlayer's move speed. 2012-09-26 23:30:20 +10:00
DavidWyand-GG
7dbfe6994d Engine directory for ticket #1 2012-09-19 11:15:01 -04:00