Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Cutscene Banter(Entity eLeader, Entity eFollower, bool textDelay)
- {
- string delay = textDelay ? " --delay=true" : " --delay=false";
- return new()
- {
- actionSequences =
- [
- new CutsceneActionSequence()
- {
- actions= [
- new CutsceneAction()
- {
- commandFmt = $"cam_follow -t=\"{eLeader.NameWithId}\""
- }
- ]
- },
- new CutsceneActionSequence()
- {
- id = "leader_0",
- entityId = eLeader.Id,
- actions= [
- new CutsceneAction()
- {
- commandFmt = "text -t=\"Hey\" -f -e=\"${actor_id}\""+delay,
- waitDuration = TimeUnit.tlvl
- }
- ]
- },
- new CutsceneActionSequence()
- {
- id = "follower_0",
- entityId = eFollower.Id,
- sequenceIdAnchor = "leader_0",
- actions= [
- new CutsceneAction()
- {
- commandFmt = "text -t=\"What's up?\" -f -e=\"${actor_id}\""+delay,
- waitDuration = TimeUnit.tlvl
- }
- ]
- },
- new CutsceneActionSequence()
- {
- id = "leader_1",
- sequenceIdAnchor = "follower_0",
- entityId = eLeader.Id,
- actions= [
- new CutsceneAction()
- {
- commandFmt = "text -t=\"Follow me\" -f -e=\"${actor_id}\""+delay,
- waitDuration = TimeUnit.tlvl
- }
- ]
- },
- new CutsceneActionSequence()
- {
- id = "follower_1",
- entityId = eFollower.Id,
- sequenceIdAnchor = "leader_1",
- actions= [
- new CutsceneAction()
- {
- commandFmt = "text -t=\"Where to?\" -f -e=\"${actor_id}\""+delay,
- waitDuration = TimeUnit.tlvl
- }
- ]
- },
- new CutsceneActionSequence()
- {
- id = "leader_2",
- sequenceIdAnchor = "follower_1",
- entityId = eLeader.Id,
- actions= [
- new CutsceneAction()
- {
- commandFmt = "text -t=\"You ask too many questions. We got a player to kill\" -f -e=\"${actor_id}\""+delay,
- waitDuration = TimeUnit.tlvl,
- id = "text"
- },
- new CutsceneAction()
- {
- commandFmt = $"behaviour_add -t=\"${{actor_id}}\" -k=Cutscene --preset=GoTo --params=position=36,42",
- },
- new CutsceneAction()
- {
- commandFmt = "play_anim -t=\"${actor_id}\" -a=AnimDoubleJump -d=2",
- waitDuration = TimeUnit.tlvl
- },
- new CutsceneAction()
- {
- commandFmt = "text -t=\"There he is!\" -f -e=\"${actor_id}\""+delay,
- waitDuration = TimeUnit.tlvl
- },
- ],
- endingSequence = true
- },
- new CutsceneActionSequence()
- {
- id = "follower_2",
- sequenceIdAnchor = "leader_2",
- actionIdAnchor = "text",
- entityId = eFollower.Id,
- actions= [
- new CutsceneAction()
- {
- commandFmt = "text -t=\"Who's gonna kill whom...There we go again\" -f -e=\"${actor_id}\""+delay,
- waitDuration = TimeUnit.tlvl
- },
- new CutsceneAction()
- {
- commandFmt = $"behaviour_add -t=\"${{actor_id}}\" -k=Cutscene --preset=FollowLeader --params=targetId=\"{eLeader.NameWithId}\"|proximityDesireOverride=1",
- },
- ]
- },
- ]
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment