Advertisement
Guest User

Untitled

a guest
May 9th, 2015
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. ;-UNIVERSAL SLIDER PLACEMENT CHECK FOR ACTORS
  2. ;-This function is one of the more complex
  3. ;-It calls ActorSliderPlacement if the appropriate
  4. ;-settings and conditions are met by X follower
  5. Function ActorSliderPlacementCheck(Actor ActorRef, GlobalVariable ActorGlobal)
  6. If ActorRef != NONE
  7. If !ActorRef.IsDisabled() || IsGlobalTarget(OverRide_G, 1)
  8. If !ActorRef.IsDead() || IsGlobalTarget(OverRide_G, 1)
  9. If IsCustomFollower(ActorRef)
  10. PlaceSliderByActor(ActorRef, ActorGlobal, ActorRef.GetBaseObject().GetName())
  11. Else
  12. If ActorRef.GetRelationshipRank(PlayerRef) > 2 || IsGlobalTarget(OverRide_G, 1)
  13. If IsGlobalTarget(OverRide_G, 1) && IsOverRideAble(ActorRef) || IsGlobalTarget(OverRide_G, 0)
  14. PlaceSliderByActor(ActorRef, ActorGlobal, ActorRef.GetBaseObject().GetName())
  15. GlobalCount = GlobalCount+1
  16. Else
  17. OID_EmptyText = AddTextOption(ActorRef.GetBaseObject().GetName() +" Is locked in OverRide Mode",0 , OPTION_FLAG_DISABLED)
  18. Endif
  19. Else
  20. OID_EmptyText = AddTextOption("Locked: " +ActorRef.GetBaseObject().GetName(),0 , OPTION_FLAG_DISABLED)
  21. Endif
  22. Endif
  23. Else
  24. OID_EmptyText = AddTextOption(ActorRef.GetBaseObject().GetName() +" Is Dead",0 , OPTION_FLAG_DISABLED)
  25. Endif
  26. Else
  27. OID_EmptyText = AddTextOption("Locked: " +ActorRef.GetBaseObject().GetName(),0 , OPTION_FLAG_DISABLED)
  28. Endif
  29. Elseif ActorRef == NONE
  30. Bool IsCustomActorSlot = TeamMatesG.Find(ActorGlobal) > -1 && TeamMatesG.Find(ActorGlobal) < 20
  31. If IsCustomActorSlot
  32. OID_EmptyText = AddTextOption("Follower Slot: EMPTY",0 , OPTION_FLAG_DISABLED)
  33. Else
  34. OID_EmptyText = AddTextOption("Required DLC not found",0 , OPTION_FLAG_DISABLED)
  35. Endif
  36. Endif
  37. Endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement