Guest User

Untitled

a guest
Jun 26th, 2026
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.29 KB | Gaming | 0 0
  1. public static Cutscene Banter(Entity eLeader, Entity eFollower, bool textDelay)
  2.         {
  3.             string delay = textDelay ? " --delay=true" : " --delay=false";
  4.             return new()
  5.             {
  6.                 actionSequences =
  7.                 [
  8.                     new CutsceneActionSequence()
  9.                     {
  10.                         actions= [
  11.                             new CutsceneAction()
  12.                             {
  13.                                 commandFmt = $"cam_follow -t=\"{eLeader.NameWithId}\""
  14.                             }
  15.                         ]
  16.                     },
  17.                     new CutsceneActionSequence()
  18.                     {
  19.                         id = "leader_0",
  20.                         entityId = eLeader.Id,
  21.                         actions= [
  22.                             new CutsceneAction()
  23.                             {
  24.                                 commandFmt = "text -t=\"Hey\" -f -e=\"${actor_id}\""+delay,
  25.                                 waitDuration = TimeUnit.tlvl
  26.                             }
  27.                         ]
  28.                     },
  29.                     new CutsceneActionSequence()
  30.                     {
  31.                         id = "follower_0",
  32.                         entityId = eFollower.Id,
  33.                         sequenceIdAnchor = "leader_0",
  34.                         actions= [
  35.                             new CutsceneAction()
  36.                             {
  37.                                 commandFmt = "text -t=\"What's up?\" -f -e=\"${actor_id}\""+delay,
  38.                                 waitDuration = TimeUnit.tlvl
  39.                             }
  40.                         ]
  41.                     },
  42.                     new CutsceneActionSequence()
  43.                     {
  44.                         id = "leader_1",
  45.                         sequenceIdAnchor = "follower_0",
  46.                         entityId = eLeader.Id,
  47.                         actions= [
  48.                             new CutsceneAction()
  49.                             {
  50.                                 commandFmt = "text -t=\"Follow me\" -f -e=\"${actor_id}\""+delay,
  51.                                 waitDuration = TimeUnit.tlvl
  52.                             }
  53.                         ]
  54.                     },
  55.                     new CutsceneActionSequence()
  56.                     {
  57.                         id = "follower_1",
  58.                         entityId = eFollower.Id,
  59.                         sequenceIdAnchor = "leader_1",
  60.                         actions= [
  61.                             new CutsceneAction()
  62.                             {
  63.                                 commandFmt = "text -t=\"Where to?\" -f -e=\"${actor_id}\""+delay,
  64.                                 waitDuration = TimeUnit.tlvl
  65.                             }
  66.                         ]
  67.                     },
  68.                     new CutsceneActionSequence()
  69.                     {
  70.                         id = "leader_2",
  71.                         sequenceIdAnchor = "follower_1",
  72.                         entityId = eLeader.Id,
  73.                         actions= [
  74.                             new CutsceneAction()
  75.                             {
  76.                                 commandFmt = "text -t=\"You ask too many questions. We got a player to kill\" -f -e=\"${actor_id}\""+delay,
  77.                                 waitDuration = TimeUnit.tlvl,
  78.                                 id = "text"
  79.                             },
  80.                             new CutsceneAction()
  81.                             {
  82.                                 commandFmt = $"behaviour_add -t=\"${{actor_id}}\" -k=Cutscene --preset=GoTo --params=position=36,42",
  83.                             },
  84.                             new CutsceneAction()
  85.                             {
  86.                                 commandFmt = "play_anim -t=\"${actor_id}\" -a=AnimDoubleJump -d=2",
  87.                                 waitDuration = TimeUnit.tlvl
  88.                             },
  89.                             new CutsceneAction()
  90.                             {
  91.                                 commandFmt = "text -t=\"There he is!\" -f -e=\"${actor_id}\""+delay,
  92.                                 waitDuration = TimeUnit.tlvl
  93.                             },
  94.                         ],
  95.                         endingSequence = true
  96.                     },
  97.                     new CutsceneActionSequence()
  98.                     {
  99.                         id = "follower_2",
  100.                         sequenceIdAnchor = "leader_2",
  101.                         actionIdAnchor = "text",
  102.                         entityId = eFollower.Id,
  103.                         actions= [
  104.                             new CutsceneAction()
  105.                             {
  106.                                 commandFmt = "text -t=\"Who's gonna kill whom...There we go again\" -f -e=\"${actor_id}\""+delay,
  107.                                 waitDuration = TimeUnit.tlvl
  108.                             },
  109.                             new CutsceneAction()
  110.                             {
  111.                                 commandFmt = $"behaviour_add -t=\"${{actor_id}}\" -k=Cutscene --preset=FollowLeader --params=targetId=\"{eLeader.NameWithId}\"|proximityDesireOverride=1",
  112.                             },
  113.                         ]
  114.                     },
  115.                 ]
  116.             };
  117.         }
Advertisement
Add Comment
Please, Sign In to add comment