RA2lover

Rigidchips Airdrag/Force data

May 17th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.71 KB | None | 0 0
  1. loadlib("spirytus.dll", "rc_OpenSpirytus")()
  2. _SETLIMITVELOCITY(0,10000)
  3. _SETLIMITVELOCITY(1,10000)
  4.  
  5. function force()
  6. for n=0,_CHIPS() do
  7. _FORCE(n, 0, 400000,0)
  8. end
  9. end
  10.  
  11. function printstuff()
  12. out(0,"core vy".._VY(CORE))
  13. out(1,"arm vy".._VY(ARM))
  14. out(2,"weight vy".._VY(WEIGHT))
  15. out(3,"weight2 vy".._VY(WEIGHT2))
  16. out(4,"weight3 vy".._VY(WEIGHT3))
  17. out(5,"weight4 vy".._VY(WEIGHT4))
  18. out(6,"weight5 vy".._VY(WEIGHT5))
  19. out(7,"weight6 vy".._VY(WEIGHT6))
  20. out(8,"weight7 vy".._VY(WEIGHT7))
  21. out(9,"weight8 vy".._VY(WEIGHT8))
  22. out(10,"rlw vy".._VY(RLW))
  23. out(11,"rlw1 vy".._VY(RLW1))
  24. out(12,"rlw2 vy".._VY(RLW2))
  25. out(13, "Val"..43.709705352783/(33.13164520263))
  26. out(14, "Val"..55.921951293945/(43.709705352783))
  27. end
  28.  
  29. function warpchips()
  30. for n=0,_CHIPS()-1 do
  31. if _Y(n)>5 or true then
  32. _WARP(n,0,5,0)
  33. end
  34. end
  35. end
  36.  
  37. function main()
  38. warpchips()
  39. force()
  40. printstuff()
  41. end
  42.  
  43. --[[TestData
  44.  
  45. Chip countered 1kN of force at 2.828711271286m/s
  46. Arm countered 1kN of force at 4.6173896789551m/s
  47. Option1 Weight countered 1kN of force at 0.47341284155846m/s
  48. Option2 Weight countered 1kN of force at 0.23961593210697m/s
  49. Option3 Weight countered 1kN of force at 0.16011321544647m/s
  50. Option4 Weight countered 1kN of force at 0.12018283456564m/s
  51. Option5 Weight countered 1kN of force at 0.096182480454445m/s
  52. Option6 Weight countered 1kN of force at 0.080168358981609m/s
  53. Option7 Weight countered 1kN of force at 0.068724649141121m/s
  54. Option8 Weight countered 1kN of force at 0.060138501226902m/s
  55. Option2 RLW countered 1kN of force at 8.6531848907471m/s. others went above 300m before i could measure
  56.  
  57. them.
  58.  
  59. lets try again with 0.1kN of force...
  60. Option 0 RLW still didn't counter 0.1kN of force before getting to 300m. stupid idea, thinking with portals.
  61. Option1 RLW countered 0.1kN of force at 3.6614904403687m/s
  62. Option2 RLW countered 0.1kN of force at 2.7452077865601m/s
  63. *writes warpchips() function*
  64. Now you know how portals affect momentum. or, to be precise, how it does not.
  65.  
  66. Option0 RLW countered 1kN of force at 17.347108840942m/s
  67. Option1 RLW countered 1kN of force at 11.551167395447m/s
  68. Option2 RLW countered 1kN of force at 8.6531848907471m/s
  69.  
  70. *changes warpchips() function to lock chips at a set position and altitude*
  71.  
  72.  
  73. Testing with 4kN force
  74. Chip countered at 7.5393605232239m/s
  75. Arm countered at 9.1755065917969m/s
  76. Option1 weight countered at 7.7166919708252m/s
  77. Option2 weight countered at 7.7463684082031m/s (????)
  78. Option3 weight countered at 0.6369297504425m/s
  79. Option4 weight countered at 0.47923186421394m/s
  80. Option5 weight countered at 0.38395920395851m/s
  81. Option6 weight countered at 0.62022643089294m/s
  82. Option7 weight countered at 0.27461543679237m/s
  83. Option8 weight countered at 0.24036566913128m/s
  84. why is the option2 weight faster than the rest?
  85. this doesn't make sense.
  86. *note* i forgot the RLWs.
  87.  
  88.  
  89. lets move it up to eleven.
  90.  
  91. Testing with 100k force
  92. Chip - 33.131645202637
  93. Arm - 43.531646728516
  94. Weight1 - 37.402992248535
  95. Weight2 - 38.139247894287
  96. Weight3 - 38.509357452393
  97. Weight4 - 38.58349609375
  98. Weight5 - 38.632946014404
  99. Weight6 - 68.668403625488
  100. Weight7 - 38.668403625488
  101. Weight8 - 38.69465637207
  102. RLW0 - 167.06672668457 / 17.347108840942
  103. RLW1 - 111.86505126953
  104. RLW2 - 82.894546508789
  105. now weights are faster as the speed increases. there must be some kind of lockdown phenomena i don't
  106.  
  107. understand.
  108.  
  109. RLW0 is nearing the speed limit(140m/s for core, 175m/s for the rest)
  110. Time to get rigidchips drunk. *gets Spirytus from the shelf. 96.5% of awesome polish rectified alcohol*
  111. *edits code to change terminal velocity to 10km/s*
  112.  
  113. Testing with 200k force
  114. Chip - oscilates on exactly 2 values - 43.709705352783 and 43.70970916748
  115. Arm - 59.876411437988
  116. Weight1 - 52.039710998535
  117. Weight2 - 53.504707336426
  118. Weight3 - 56.996742248535
  119. Weight4 - 54.243320465088
  120. Weight5 - 54.391483303885
  121. Weight6 - 54.490322113037
  122. Weight7 - 54.530905456543
  123. Weight8 - 54.614246368408
  124. RLW0 - 237.79054260254
  125. RLW1 - 155.84954833984
  126. RLW2 - 114.83402770996
  127.  
  128. 300k force
  129. Chip - 50.711357116699
  130. Arm - 71.768531799316
  131. Weight1 - 62.935970306396
  132. Weight2 - 65.124633789063
  133. Weight3 - 65.86109161377
  134. Weight4 - 66.230453491211
  135. Weight5 - 66.452682495117
  136. Weight6 - 66.600860595703
  137. Weight7 - 66.706901550293
  138. Weight8 - 66.7861328125
  139. RLW0 - 289.01718139648
  140. RLW1 - 188.67860412598
  141. RLW2 - 138.53842163086
  142.  
  143. 400k
  144.  
  145. Chip - 55.921951293945
  146. Arm - 81.364906311035
  147. Weight1 - 71.898345947266
  148. Weight2 - 74.80598449707
  149. Weight3 - 75.786430358887
  150. Weight4 - 76.278495788574
  151. Weight5 - 76.574150085449
  152. Weight6 - 76.771469116211
  153. Weight7 - 76.912712097168
  154. Weight8 - 77.018714904785
  155. RLW0 - 331.57818603516
  156. RLW1 - 217.73889160156
  157. RLW2 - 157.86625671387
  158.  
  159. 500k
  160. Chip -
  161. Arm -
  162. Weight1 -
  163. Weight2 -
  164. Weight3 -
  165. Weight4 -
  166. Weight5 -
  167. Weight6 -
  168. Weight7 -
  169. Weight8 -
  170. RLW0 -
  171. RLW1 -
  172. RLW2 -
  173.  
  174. Chip -
  175. Arm -
  176. Weight1 -
  177. Weight2 -
  178. Weight3 -
  179. Weight4 -
  180. Weight5 -
  181. Weight6 -
  182. Weight7 -
  183. Weight8 -
  184. RLW0 -
  185. RLW1 -
  186. RLW2 -
  187.  
  188.  
  189. here's the model supposed to be used along with this scenario:
  190. -----------------START OF MODEL FILE-------------------------
  191.  
  192. Val{
  193. }
  194. Key{
  195. }
  196. Body{
  197.     Core(Name=CORE){
  198.         N:Weight(Name=WEIGHT){}
  199.         N:Weight(Name=WEIGHT2,Option=2){}
  200.         N:Weight(Name=WEIGHT3,Option=3){}
  201.         N:Weight(Name=WEIGHT4,Option=4){}
  202.         N:Weight(Name=WEIGHT5,Option=5){}
  203.         N:Weight(Name=WEIGHT6,Option=6){}
  204.         N:Weight(Name=WEIGHT7,Option=7){}
  205.         N:Weight(Name=WEIGHT8,Option=8){}
  206.         S:Arm(Name=ARM){}
  207.         E:RLW(Name=RLW){}
  208.         E:RLW(Name=RLW1,Option=1){}
  209.         E:RLW(Name=RLW2,Option=2){}
  210.     }
  211. }
  212. Lua{
  213.  
  214. function breakchips()
  215. for n=1,_CHIPS()-1 do
  216. _SPLIT(n)
  217. end
  218. end
  219.  
  220. function OnInit()
  221. breakchips()
  222.  
  223. end
  224. function OnReset()
  225. breakchips()
  226. end
  227. function OnFrame()
  228. breakchips()
  229. end}
  230. ------------------END OF MODEL FILE----------------------
  231.  
  232.  
  233. ]]
Advertisement
Add Comment
Please, Sign In to add comment