gribbleshnibit8

Project Nevada Explosive Entry Formula

Sep 13th, 2013
955
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. The force of an explosion is calculated as:
  2. force = (explosion damage + explosion force) / 10
  3.  
  4. if (force > player skill)
  5. force = skill
  6.  
  7. The above calculation is used to let you know if you can even unlock an object with explosives.
  8.  
  9. For calculating the actual chance of an explosive to unlock an object, the following formula is used:
  10.  
  11. force = (explosion damage + explosion force) / 10
  12. if (force > player skill)
  13. force = skill
  14. distance = distance from explosion to locked object
  15. lockLevel = level of lock (0 = very easy; 25 = easy; 50 = average; 75 = hard; 100 = very hard; 255 = impossible)
  16. if (distance < 150) && (lockLevel < Impossible) && (object is locked)
  17. if (force - lockLevel) >= 0
  18. object is unlocked
  19. if (is a container) && random number between 0 and 99 inclusive < (rawForce - lockLevel) * (Luck / 5)
  20. if (not a quest item) && (is a food, armor, weapon, ammo, or misc)
  21. destroy items
  22.  
  23.  
  24.  
  25. Here's an example of how this would be applied using the GrenadeFragExplosion explosion and the following stats. We will assume that all other checks are true to allow this to work.
  26. Player Skill = 32
  27. Player Luck = 6
  28. Explosion Damage= 100
  29. Explosion Force = 185
  30. Lock Level = 50 (average)
  31. Distance = 80
  32.  
  33. 28.5 = (100 + 185) / 10
  34. if (28.5 > 32)
  35. not true so we don't do this
  36. if (80 < 150) && (50 < 255) && (locked == true)
  37. if (28.5 - 50) >= 0 ; this is equal to -21.5, so the door is not unlocked
  38.  
  39.  
  40. We'll try again with a more powerful explosive, this time we'll use a FatManNukeExplosion:
  41. Player Skill = 32
  42. Player Luck = 6
  43. Explosion Damage= 1600
  44. Explosion Force = 550
  45. Lock Level = 50 (average)
  46. Distance = 80
  47.  
  48. 215 = (1600+ 550) / 10
  49. if (215 > 32)
  50. force is set to the player skill instead, so now it is 32
  51. if (80 < 150) && (50 < 255) && (locked == true)
  52. if (32 - 50) >= 0 ; this is equal to -18, so the door is not unlocked
  53. ; This is where the use of PN EO comes in handy to disable the skill check
  54. ; by disabling the skill check both of the tests we've done here would work.
Advertisement
Add Comment
Please, Sign In to add comment