AzaezelX
d36cf31707
more safeties. simplified reverse steering calc
2025-04-18 18:27:39 -05:00
AzaezelX
712404c9b4
hook up Vehicle's getAIMove(Move*);
...
list aiControllerData's in the datablock. though the command is still required to set the controler and look up the relevant db for game specific logic
2025-04-18 12:28:49 -05:00
AzaezelX
2d0bcbcf8d
behavioural change: feeding an AInfo an object with a 0 radius causes the class to fill in radius from that objects bounds box
...
also, vehicle direct hooks
2025-04-18 11:36:27 -05:00
AzaezelX
78a26b0108
expose a getThrottle for vehicles. save some calcs in AIWheeledVehicleControllerData
...
deletion cleanups
2025-04-18 11:00:13 -05:00
AzaezelX
2d5e8c1560
make steerstate for AIWheeledVehicleControllerData's self contained
...
variable raylength for the rpath filter. same 0.001 for players to stop recalculating a path when jumping, but bump anything they're mounted to to a 2 unit check
bit of work towards parallel parking. or at least not ending up arcing back and forth infinitely in an arc
2025-04-17 23:31:30 -05:00
AzaezelX
1fad2c7372
AIWheeledVehicleControllerData wipwork
2025-04-17 20:01:36 -05:00
AzaezelX
32f9917ed2
aicontroller:
...
in order to call derivatives of AIControllerData datablocks *without* requiring an accompanying AIController subclass as well, leverage the fastdelegate system for our resolver callbacks
additionally, don't try and repath in mid air
aigoal: initialize inange/infirinrange to false. use those to filter callbacks
2025-04-17 17:55:38 -05:00
AzaezelX
f84bf058c9
navigation: setPathdestination now takes a replace bool to preserve the goal
...
also killed a few now extraneous clearfollow calls
2025-04-17 17:51:31 -05:00
AzaezelX
c72c3068f8
aiinfo subclass inheritance cleanups, and default constructor removals for safeties
2025-04-17 14:38:27 -05:00
AzaezelX
4f87ad4cf7
moar gaol tracking cleanups
2025-04-17 12:27:05 -05:00
AzaezelX
2956223a60
simplify setpathdestination loop
2025-04-17 11:39:06 -05:00
AzaezelX
83822f1148
fix eroneous defaults
2025-04-17 11:38:21 -05:00
AzaezelX
25b3a7c070
break wether we *should* be trying to move out of the resolver
2025-04-17 10:50:58 -05:00
AzaezelX
eaa6a62b0c
misc cleanups
2025-04-17 10:38:36 -05:00
AzaezelX
a10169accf
fix node following stopping early
2025-04-17 09:44:04 -05:00
AzaezelX
4fb92f02a3
completed list of roughly ported over scripthooks.
...
todo: need to figure out why followobject is only hitting the first path node. likely amixup with goal handling
2025-04-17 01:27:08 -05:00
AzaezelX
e37ae27bc0
fix aim safeties to actually be safe, add an explicit clearAim script command
2025-04-16 17:58:30 -05:00
AzaezelX
14a03dfc6c
if you've stopped moving on purpose, you're not stuck
2025-04-16 17:40:53 -05:00
AzaezelX
f3ef698e89
getmovedestination, set/get speed, targetting script commands
...
todo: need to see why getAIController().setAimLocation("10 10 0"); seems to get into an onreachdestination+stuck callback loop
2025-04-16 17:27:26 -05:00
AzaezelX
f00b8e1ae0
toEuler. n ot getforwardvector
2025-04-15 18:23:12 -05:00
AzaezelX
2fe36a571b
setaicontroller: use Ids
...
get rid of duplicated mMoveDestination
2025-04-15 18:01:18 -05:00
AzaezelX
201b7bf695
aiController.setMoveDestination test
2025-04-15 17:00:36 -05:00
AzaezelX
19e73c0be2
expose the AIPlayerControllerData subtype to console
2025-04-15 15:34:58 -05:00
AzaezelX
8c663a19a5
generalized ai subsystem wipwork
2025-04-15 15:12:27 -05:00
AzaezelX
d0d2e1f343
handle relfecting the health of the controlled object
...
players and vehicles can both be the controlobject, or you can control a vehicle *through* a player.
set the health bar/text controls to reflect that state
2025-04-08 18:30:06 -05:00
AzaezelX
2d974cebf5
add difFloatPi range validator
...
player:
apply to player min/max angle
allow fallingspeedthreshold to go negative
splashdata:
velocity, hieght, acceleration and startradius can all be negative
wrap material animation range from -1 to 1
2025-04-03 16:52:49 -05:00
AzaezelX
b299b54467
encapsulate tool-only code for levelassets
2025-04-02 15:38:43 -05:00
Brian Roberts
6ffe7500cd
Merge pull request #1423 from Olathuss/gametsctrl-mouserefactor
...
Gametsctrl mouserefactor
2025-03-25 14:25:49 -05:00
Olathuss
3dabbc83ff
Fixed callbacks to replace char* with Point classes
...
Replacing char* in callbacks with Point2I and Point3F classes for better readability and overhead
2025-03-25 11:07:14 -06:00
Olathuss
df5ffd9e10
Remove extraneous function
...
Remove extraneous function makeScriptCall which is no longer used.
2025-03-25 10:47:35 -06:00
Olathuss
32bc068f7f
Added PlatformTimer for mouse callbacks
...
Added PlatformTimer to GameTSCtrl to limit mouse move/drag callbacks.
2025-03-24 12:04:36 -06:00
AzaezelX
b4eb885aae
fix forceDetail
...
it can safely be a negative number.
2025-03-19 18:08:37 -05:00
AzaezelX
fcd2d38deb
further validator cleanups
...
bump default fidelity from 0,0001 to 0.01
fix F32Range. needs to go from - to +, not smallest to largest positive value
fix several misasigned validator ranges. most of which use some form of -1 default to do a Special Thing
2025-03-18 14:06:33 -05:00
Brian Roberts
1ebe48edbd
Merge pull request #1413 from Azaezel/alpha41/validValidators
...
consolidate addfieldV method contents to avoid duplication
2025-03-18 10:43:42 -05:00
AzaezelX
ffe83b1d2d
use the same renderpriority range across all cases
2025-03-18 01:18:37 -05:00
AzaezelX
44b0d896b8
consolidate addfieldV method contents to avoid duplication
...
report *what* field is an invalid console type
prune down floating point fuzzed validators to 0
default the visual fidelity to POINT_EPSILON (0.0001) rather than 1/FLT_MAX
use the bit(bitcount) macro for legibility
fix breakangle
2025-03-17 22:39:01 -05:00
Olathuss
d0f5c2e0db
Merge branch 'TorqueGameEngines:development' into gametsctrl-mouserefactor
2025-03-15 13:49:58 -06:00
Brian Roberts
bab30568eb
Merge pull request #1409 from Azaezel/alpha41/soImpulsive
...
skip out on impulses that have no chance of moving the object
2025-03-14 13:59:44 -05:00
Olathuss
96786020a2
Remove document reference
...
Removed incorrect document reference, as parent GuiTSCtrl does not implement mouse callback.
2025-03-11 09:40:22 -06:00
AzaezelX
325b3a97c0
skip out on impulses that have no chance of moving the object
...
also, sRestTol already is a 0.5 multiplier
2025-03-09 18:40:49 -05:00
AzaezelX
28603655a5
fix malformed addfeildV
2025-03-09 12:58:59 -05:00
AzaezelX
f633ef3a3d
fill in the validated variables
2025-03-09 11:53:23 -05:00
Olathuss
f9b445119f
gameTSCtrl mouse refactor
...
GameTSCtrl mouse refactoring to make consistent with scripting call backs.
2025-03-06 12:29:40 -07:00
Olathuss
59b938151d
Enable onMouseMove script method for GameTSCtrl
...
Enables the onMouseMove method for scripting in the GameTSCtrl class.
2025-03-04 21:30:19 -07:00
Brian Roberts
09cf5a0425
Merge pull request #1402 from Azaezel/alpha41/mumbledMat
...
prexisting material asset safety check
2025-03-01 18:41:37 -06:00
AzaezelX
bc9ed3e10a
prexisting material asset safety check
...
from steve_yorkshire
don't try and create a new suffixed materiaAsset if one already exists
2025-03-01 17:17:24 -06:00
Brian Roberts
dbdcf251ac
Merge pull request #1399 from Azaezel/alpha41/restingLagFace
...
rigidshape pef tweaks
2025-03-01 12:07:07 -06:00
AzaezelX
69a0c40795
wheeled vehicle downforce aug. applies a spoiler effect
2025-02-28 19:20:21 -06:00
AzaezelX
ccbcf7a862
take tick time into account as well.
2025-02-28 19:18:28 -06:00
AzaezelX
c2b3ea6122
clean out redundant pack/unpack in vehicle
2025-02-28 18:35:46 -06:00