Shauren
00542ca800
Core/Scripts: Remove Optional<> wrapper from all Scripting::v2::ActionResultSetter uses
2026-01-09 00:37:42 +01:00
Shauren
645da5a3f9
Core/Movement: Remove deprecated jump functions and update SAI scripts using them
2025-11-25 13:39:25 +01:00
Shauren
95ca714824
Core/Movement: Replace MotionMaster::MoveJumpWithGravity with new jump height based MoveJump
2025-11-24 12:07:19 +01:00
Shauren
ed599208ea
Core/Movement: Change MoveJump to use min/max height argument instead of vertical speed
2025-11-23 11:54:42 +01:00
Shauren
429fdf992d
Core/SAI: Support SMART_EVENT_FLAG_ACTIONLIST_WAITS in movement fall action
2025-10-24 12:13:33 +02:00
carl3175
b9e6a81f28
Core/SAI: Implement fall movement action
2025-10-24 12:13:33 +02:00
Shauren
962568781a
Core/SAI: Sync action enum with 3.3.5 branch
2025-10-24 12:13:33 +02:00
Shauren
a8f01e07d1
Core/Entities: Merge duplicate functions calculating relative positions - remove CalculatePassengerPosition/CalculatePassengerOffset from TransportBase class
2025-10-14 13:11:41 +02:00
offl
d1e07ac655
Core/AI: Implement OnAuraApplied and OnAuraRemoved hooks ( #31288 )
...
Closes #26894
(cherry picked from commit 3bb4f56773 )
2025-10-04 13:21:02 +02:00
Meji
1085b3f433
Core/AreaTriggers: Implement AreaTriggerActionSetFlag::DontRunOnLeaveWhenExpiring ( #31276 )
2025-09-22 21:56:04 +02:00
BandyscTC
80437d3c79
Core/SAI: Add storedTargetId param to summon actions ( #31142 )
2025-09-07 20:09:44 +02:00
Meji
4a1b881a0c
Core/SAI: Fix SMART_ACTION_MOVE_OFFSET after 4887e0ea1d
2025-07-24 20:03:27 +02:00
BandyscTC
9477209f10
Core/SAI: Add actions ENTER_VEHICLE, BOARD_PASSENGER and EXIT_VEHICLE ( #31141 )
2025-07-24 10:25:13 +02:00
Shauren
4887e0ea1d
Core/SAI: Replace sai specific object type checking functions with Object functions
2025-07-17 15:19:03 +02:00
Shauren
c4e45263a6
Core/SAI: Remove temp vectors
2025-07-17 14:24:00 +02:00
Shauren
9665b9e7d4
Core/SAI: Use std::string_view for event params
2025-07-17 14:07:30 +02:00
Shauren
e0b957f5ff
Core/SAI: Use std::vector::emplace_back instead of creating large temporary objects
2025-07-17 13:46:10 +02:00
Shauren
6e87bc58c0
Core/SAI: Remove ObjectGuid::ToString calls
2025-07-17 13:44:59 +02:00
Shauren
0953d97533
Core/SAI: Fix SMART_ACTION_OFFER_QUEST - now tracks npc interaction correctly
2025-07-17 13:40:55 +02:00
ModoX
e9e7059a23
Core/SAI: Implemented action type SMART_ACTION_DESTROY_CONVERSATION ( #31133 )
2025-07-17 13:23:24 +02:00
Shauren
cbb532e4be
Core/Groups: Use iterators instead of raw LinkedListElement to interact with group members
2025-07-11 17:40:34 +02:00
Shauren
f94d87b00f
Core/Scripts: Mark script base class constructors noexcept
2025-06-13 19:31:03 +02:00
Shauren
7657a289d7
Core/Misc: Kill copy/move constructors for singleton classes
2025-06-10 13:12:33 +02:00
Meji
1248bdffcb
Core/SAI: Allow SMART_EVENT_HEALTH_PCT to be triggered out of combat ( #30874 )
2025-04-18 14:48:09 +02:00
Shauren
00223f3bee
Core/Misc: Add a bunch of examples for 67418a1aee
2025-02-23 12:10:33 +01:00
sanctum32
444a98111a
Core/SAI: Improve SMART_ACTION_ATTACK_START to exclude non-unit targets from selection pool ( #30653 )
2025-01-30 20:02:44 +01:00
ModoX
6b96facee3
Core/AI: Remove default arguments for inter-script communication
2024-12-29 00:17:07 +01:00
ModoX
92efc2523b
Core/Objects: Allow more specific checks to include or exclude feign death units in CreatureWithOptionsInObjectRangeCheck::IsAlive check ( #30361 )
...
* this also extends SMART_TARGET_CLOSEST_CREATURE dead param
2024-12-22 12:59:57 +01:00
Meji
2cf2535cd6
Core/SAI: Allow update of disable gravity/root applied via static flags (using related action type) ( #30481 )
2024-12-04 18:18:02 +01:00
Shauren
4e551741cf
Core/Misc: Fix some GCC warnings
2024-11-12 16:39:24 +01:00
Meji
9261140c9d
Core/SAI: Implemented new action SMART_ACTION_CREDIT_QUEST_OBJECTIVE_TALK_TO ( #30382 )
2024-10-28 21:32:16 +01:00
Meji
0d5242daae
Core/SAI: Implemented new event type SMART_EVENT_AREATRIGGER_EXIT (88) ( #30367 )
2024-10-22 04:01:37 +02:00
Meji
3429871a07
Core/SAI: Implemented new action SMART_ACTION_COMPLETE_QUEST ( #30048 )
2024-08-15 15:43:17 +02:00
Shauren
bd9fb4a563
Core/Movement: Defined and implemented new spline flag - JumpOrientationFixed
2024-06-29 18:15:43 +02:00
Shauren
ac73edc268
Core/Movement: Allow setting position or object facing targets for jump movement
2024-06-21 15:35:12 +02:00
Meji
2238844f56
Core/Creatures: Allow profession tools to be used as equipment ( #29915 )
2024-05-03 15:58:05 +02:00
Shauren
cf1ab7b414
Core/Movement: Implemented alternative method of smoothing waypoint paths (send new point 1.5 before arrival) and make that the default
...
* Sending whole path at once is still supported with WaypointPathFlags::ExactSplinePath
2024-04-21 00:16:57 +02:00
Shauren
5dfac0ef14
Core/SAI: Implement waiting for actions on action list to finish before continuing the action list
...
This is enabled by setting event_flags to SMART_EVENT_FLAG_ACTIONLIST_WAITS on the action that is waited for
Supported actions:
* SMART_ACTION_TALK
* SMART_ACTION_SIMPLE_TALK
* SMART_ACTION_CAST
* SMART_ACTION_SELF_CAST
* SMART_ACTION_INVOKER_CAST
* SMART_ACTION_MOVE_OFFSET
* SMART_ACTION_WP_START
* SMART_ACTION_MOVE_TO_POS
* SMART_ACTION_CROSS_CAST
* SMART_ACTION_ACTIVATE_TAXI
* SMART_ACTION_JUMP_TO_POS
* SMART_ACTION_START_CLOSEST_WAYPOINT
2024-04-14 14:28:40 +02:00
Meji
2ce4068459
Core/SAI: Added support for StringIds to creature and gameobject targets ( #29910 )
...
Co-authored-by: Shauren <shauren.trinity@gmail.com >
2024-04-11 10:15:46 +02:00
Shauren
f1b7ca1a91
Fix codestyle
2024-04-03 16:31:39 +02:00
Shauren
22e43917ab
Core/SAI: Allow gameobjects to be targeted by spell casts
2024-04-03 16:21:15 +02:00
Shauren
b93791255c
Core/SmartAI: Load paths by their id now that SAI doesn't use a separate database table as waypoints source
2024-03-12 11:49:42 +01:00
Shauren
a748fddfa4
Core/Creatures: Implemented CREATURE_STATIC_FLAG_4_NO_MELEE_APPROACH and fixed CREATURE_STATIC_FLAG_NO_MELEE_FLEE implementation (should cause fleeing from melee range)
2024-02-22 15:47:11 +01:00
Shauren
888ccd1e44
Core/SAI: Fixed SMART_ACTION_MOVE_TO_POS and SMART_ACTION_JUMP_TO_POS using target coordinates as destination if requested WorldObject target was not found
2024-02-15 19:15:21 +01:00
Shauren
605e5f94c0
Core/Creatures: Moved autoattack handling from scripts to game
2024-01-08 22:23:12 +01:00
ModoX
12186ef857
Core/Waypoints: Refactor to split data into path and node related info in db ( #29506 )
2024-01-05 17:56:19 +01:00
Meji
37eb2e64a6
Core/AreaTriggers: Refactor ( #29500 )
...
* Moved IsServerside to custom flags
* Flags moved from areatrigger_template to areatrigger_create_properties
* New field to create custom CreateProperties (IsCustom)
* New field to reference custom areatriggers (IsAreatriggerCustom)
* Moved fields for shape data to areatrigger_create_properties
2023-12-30 17:14:09 +01:00
Meji
b8ce70d528
Core/SAI: Moved event_flags for difficulties to new field Difficulties ( #29377 )
2023-10-30 09:53:52 +01:00
Shauren
0ce96adb7a
Core/Objects: Treat areas that have ParentAreaID filled but dont have IsSubzone flag as zones instead of areas
2023-10-06 20:22:14 +02:00
Teleqraph
88ff97c1f9
Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE ( #29159 )
...
Co-authored-by: Shauren <shauren.trinity@gmail.com >
2023-07-20 19:09:27 +02:00