feat(Core/SmartScripts): SMART_ACTION_PLAY_CINEMATIC (#10231)

* cherry-pick commit (63aa5d1e35)
This commit is contained in:
IntelligentQuantum
2022-01-29 02:23:27 +03:30
committed by GitHub
parent 8f249a3d84
commit 9fadfa6499
3 changed files with 25 additions and 2 deletions

View File

@@ -618,12 +618,12 @@ enum SMART_ACTION
SMART_ACTION_DESPAWN_SPAWNGROUP = 132, // TODO: NOT SUPPORTED YET
SMART_ACTION_RESPAWN_BY_SPAWNID = 133, // TODO: NOT SUPPORTED YET
// SMART_ACTION_INVOKER_CAST = 134, // TODO: solve name conflicts
SMART_ACTION_TC_END = 135, // placeholder
SMART_ACTION_PLAY_CINEMATIC = 135, // entry, cinematic
SMART_ACTION_SET_MOVEMENT_SPEED = 136, // movementType, speedInteger, speedFraction
SMART_ACTION_SET_HEALTH_PCT = 142, // percent
SMART_ACTION_TC_END = 199, // placeholder
// AC-only SmartActions:
SMART_ACTION_AC_START = 200, // placeholder
@@ -1316,6 +1316,11 @@ struct SmartAction
{
uint32 percent;
} setHealthPct;
struct
{
uint32 entry;
} cinematic;
//! Note for any new future actions
//! All parameters must have type uint32