Advertisement
RA2lover

RigidChips Invincibility test

May 19th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. // [RCD] NotABasicCarAnymore
  2. Val
  3. {
  4. BRAKE(default=0, max=80, step=80)
  5. ENGINE(default=0, min=-2500, max=2500, step=2500)
  6. GUN(default=0, max=9999999999, step=9999999999)
  7. HANDLE(default=0, min=-20, max=20, step=5)
  8. HBRAKE(default=0, max=100, step=100)
  9. INVINCIBILITY(default=1, max=2)
  10. }
  11. Key
  12. {
  13. 0:Engine(step=-500)
  14. 1:Engine(step=500)
  15. 2:Handle(step=-0.5)
  16. 3:Handle(step=0.5)
  17. 4:GUN(step=9999999999)
  18. 7:Brake(step=30), HBrake(step=20)
  19. 8:HBrake(step=20)
  20. }
  21. Body
  22. {
  23. Core() {
  24. N:Chip() {
  25. N:Rudder(angle=Handle) {
  26. W:Frame() {
  27. W:Wheel(angle=90, brake=Brake) { }
  28. }
  29. E:Frame() {
  30. E:Wheel(angle=90, brake=Brake) { }
  31. }
  32. N:Arm(power=GUN, option=1600000, name=GUN) { }
  33. }
  34. }
  35. S:Chip() {
  36. W:Frame() {
  37. W:Wheel(angle=90, power=Engine, brake=HBrake) { }
  38. }
  39. E:Frame() {
  40. E:Wheel(angle=90, power=-Engine, brake=HBrake) { }
  41. }
  42. }
  43. }
  44. }
  45. Script
  46. {
  47. print 0,"Welcome to Rigid-Chips World."
  48. print 1," FPS=",_FPS()," Chips=",_CHIPS()," Weight=",_WEIGHT()
  49. print 2," Width=",_WIDTH()," Height=",_HEIGHT()
  50. print 3," Faces=",_FACE()
  51. print 4," Vel=",_VEL()
  52. print 5," R=",_RED(32,32)
  53. print 6," G=",_GREEN(32,32)
  54. print 7," B=",_BLUE(32,32)
  55. }
  56. Lua
  57. {status="ON"
  58.  
  59. function main()
  60. INVINCIBILITY=INVINCIBILITY+_KEYDOWN(5)
  61.  
  62. inv = INVINCIBILITY
  63. if inv<1 then
  64. _SETTICKS(200) status="OFF"
  65. elseif inv<2 then
  66. _SETTICKS(148)--not sure about other values
  67. status="ON"
  68. elseif inv>2 then
  69. INVINCIBILITY=0 _SETTICKS(200) status="OFF"
  70. end
  71.  
  72.  
  73. out(0,"weapon energy = ".._E(GUN).." (1.6M)")
  74. out(1,"controls are pretty much the same as b8test")
  75. out(2,"x toggles invincibility")
  76. out(3,"invincibility = "..status)
  77. end}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement