Advertisement
axyd

lockpickminigame.scr

Aug 9th, 2022
898
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.42 KB | None | 0 0
  1. //a LockpickDifficulty(s,        <-- difficulty identifier
  2. //b                    s,        <-- localized description
  3. //c                    f,        <-- durability (larger -> harder to break picklocks)
  4. //d                    f,        <-- movement possibility range (angle around the required value where you can move the lock - angle per side)
  5. //e                    f,        <-- success angle - how much can one deviate from the required angle and still succed(per side)
  6. //f                    f,        <-- angle randomization range (per side)
  7. //g                    f,        <-- angle randomization - excluded part (per side)
  8. //h                    f,        <-- hold to fast-break time (seconds)
  9. //i                    i,        <-- lockpicks amount to fast-break
  10. //j                    i,        <-- cube level
  11. //k                    i,        <-- required lockpicking skill level
  12. //l                    i)        <-- required lockpick break skill level
  13.  
  14. //a SafeDifficulty(s, <-- difficulty identifier
  15. //b                s, <-- localized description
  16. //c                i, <-- combination lenght
  17. //d                i, <-- max number
  18. //e                i, <-- tolerance
  19. //f                f, <-- fast-break
  20. //g                i) <-- cube-level
  21.  
  22.  
  23. //a FrequncyDifficulty(s, <-- difficulty identifier
  24. //b                    s, <-- localized description
  25. //c                    f, <-- range min
  26. //d                    f, <-- range max
  27. //e                    i, <-- divisor
  28. //f                    f, <-- blocked angle left and right from 6 o'clock, defaults to 0
  29. //g                    f) <-- time to hold in valid position for success
  30.  
  31.  
  32. sub main()
  33. {                    //a             b                          c       d       e       f       g    h    i     j   k   l
  34.     LockpickDifficulty("easy",       "&Lockpicking_Easy&",      1.9,    20.0,   10.0090.0,   0.0, 3.0, 2,    0,  1,  1);
  35.     LockpickDifficulty("medium",     "&Lockpicking_Medium&",    1.9,    15.0,   7.25,   90.0,   0.0, 3.0, 3,    0,  1,  2);
  36.     LockpickDifficulty("hard",       "&Lockpicking_Hard&",      1.9,    8.0,    3.75,   90.0,   0.0, 3.0, 5,    0,  1,  3);
  37.     LockpickDifficulty("impossible", "&Lockpicking_Imposible&", 1.9,    5.0,    1.25,   90.0,   0.0, 3.0, 7,    0,  1,  4);
  38.     LockpickDifficulty("cube1",      "&Lockpicking_Imposible&", 1.9,    5.0,    1.25,   90.0,   0.0, 3.0, 25,   1,  1,  0);
  39.     LockpickDifficulty("cube2",      "&Lockpicking_Imposible&", 1.9,    5.0,    1.25,   90.0,   0.0, 3.0, 50,   2,  1,  0);
  40.     LockpickDifficulty("cube3",      "&Lockpicking_Imposible&", 1.9,    5.0,    1.25,   90.0,   0.0, 3.0, 100,  3,  1,  0);
  41.     LockpickDifficulty("cube4",      "&Lockpicking_Imposible&", 1.9,    5.0,    1.25,   90.0,   0.0, 3.0, 200,  4,  1,  0);
  42.    
  43.                   //a             b             c  d   e  f  g  
  44.     SafeDifficulty("safe",       "&safe&",      3, 99, 0, 0, 0);
  45.     SafeDifficulty("easy_safe",  "&safe&",      3, 39, 0, 0, 0);
  46.    
  47.                       //a            b             c      d      e   f   g
  48.     FrequncyDifficulty("frequency", "&TriggerUse&", 80.0, 450.0, 1,  30, 3.0);
  49.    
  50.     /*
  51.     CustomizeDifficulty("frequency")
  52.     {
  53.         //StartAudioEventName("wwise name");
  54.         //StopAudioEventName("wwise name");
  55.         //CloseHalfRange(15.0); // -/+ from valid angle
  56.         //GoodHalfRange(2.0); // -/+ from valid angle
  57.         //MoveThreshold(0.0); //minimal change to trigger move wwise event
  58.         //MoveTimeout(2.5); // move wwise event timeout in seconds
  59.     }
  60.     */
  61.    
  62. }
  63.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement