classes.scm 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. (def_class damager_vars nil
  2. (attach_pos (new vector 0 0 0))
  3. (smoke_type 'acid '(list_box acid napalm))
  4. (ticks_to_think 1) ; after visible, think for 2 seconds
  5. (damage_per_tick 0)
  6. (person_being_damaged (new object_ref))
  7. (person_giving_damage (new object_ref))
  8. )
  9. (def_class takeover_pad_vars nil
  10. (trigger_objects (new object_ref_list))
  11. (trigger_message 'on)
  12. (takeover_objects (new object_ref_list))
  13. (turret (new object_ref)))
  14. (def_class bank_vars nil
  15. (can_build '(moneyplane))
  16. (ticks_till_next_deploy 0)
  17. (reset_time_in_ticks 50)
  18. (path_color 0)
  19. (start (new object_ref))
  20. (moneyplanes 1)
  21. (time 0)
  22. (income_time 50)
  23. (crates 0)
  24. (crate_value 2000)
  25. (crate_capacity 10)
  26. (crate (new object_ref)))
  27. (def_class moneycrate_vars nil
  28. (vspeed 0.0)
  29. (crate_value 100))
  30. (def_class moneyplane_vars nil
  31. (crate (new object_ref))
  32. (mode 0))
  33. (def_class lawfirm_vars nil
  34. (income_rate 3000) ; how much they are sueing for
  35. (commision 0.5) ; lawyers get %50 of income from other players
  36. (counter 0) ; ticks left till current law-suite
  37. (reset_time 150) ; ticks till next law-suite
  38. )
  39. (def_class chain_gun_type_vars nil
  40. (texture_name "blue_flare")
  41. (texture_size 0.2))
  42. (def_class director_vars nil
  43. ; use an objects as the location to send people to. Randly picks one
  44. (deploy_to (new object_ref_list))
  45. (range_when_deployed 2.0) ; when an object is this close, send it to destination
  46. (current_state 'on ; when off it will not deploy
  47. '(list_box on off))
  48. (on_message 'on) ; when we get this message we turn on
  49. (off_message 'off)
  50. (who_to_send 'team '(list_box team enemy anyone))
  51. ; list of nearby objects we've already sent so we don't send them again,
  52. ; or if we turned off, then a list of objects to send when we turn on
  53. (nearby_objects (new object_ref_list))
  54. ; objects should be sent next tick.
  55. (objects_to_send_next_tick (new object_ref_list))
  56. )
  57. (def_class trigger_vars nil
  58. (range_when_activated 3.0 '(list_box 1.0 2.0 3.0 4.0 5.0 6.0))
  59. (range_when_deactivated 4.0 '(list_box 1.0 2.0 3.0 4.0 5.0 6.0))
  60. (who_can_trigger 'enemy '(list_box anyone team_mates enemy
  61. supertanks enemy_supertanks))
  62. (objects_to_trigger (new object_ref_list))
  63. (send_on_trigger 'on)
  64. (send_on_untrigger 'off)
  65. (objects_in_range (new object_ref_list))
  66. (current_state 'on '(list_box on off))
  67. )
  68. (def_class garage_vars nil
  69. (can_build '(electric_car peon_tank engineer
  70. trike tank_buster rocket_tank bomb_truck bridger))
  71. (ticks_till_next_deploy 0)
  72. (reset_time_in_ticks 10)
  73. (path_color 0x7f7f7f)
  74. (selected_path_color 0xffffff)
  75. (start (new object_ref)))
  76. (def_class airbase_vars nil
  77. (can_build '(helicopter jet bomber))
  78. (ticks_till_next_deploy 0)
  79. (reset_time_in_ticks 10)
  80. (traffic_height 1.5) ; height of all flying objects objects
  81. (path_color 0x7f007f)
  82. (selected_path_color 0xff00ff)
  83. (start (new object_ref)))
  84. (def_class mainbasepad_vars nil
  85. (can_build '(stank))
  86. (ticks_till_next_deploy 0)
  87. (reset_time_in_ticks 10)
  88. (path_color 0x7f7f7f)
  89. (selected_path_color 0xffffff)
  90. (start (new object_ref)))
  91. (def_class path_object_vars nil
  92. (warning_level 0 '(list_box 0 1 2 3 4 5 6 7 8 9))
  93. (bridgeable_spot 'no '(list_box no yes already_attached))
  94. (active 'on '(list_box on off)) ; is this node turned on?
  95. (controlled_objects (new object_ref_list))) ; objects taken over by engineers & other specials
  96. (def_class secret_hider_vars nil
  97. (grab_height 'no '(list_box no yes))
  98. (grab_textures 'no '(list_box no yes)))
  99. (def_class field_camera_vars nil
  100. (name "unknown"))
  101. (def_class bridger_vars nil
  102. (marker_attached_to (new object_ref))
  103. )
  104. (def_class guided_missile_vars nil
  105. (smoke_trail (new object_ref))
  106. (who_fired_me (new object_ref))
  107. (track_object (new object_ref))
  108. (fuel 0.0)
  109. (velocity (new vector)))
  110. (def_class buster_rocket_vars nil
  111. (smoke_trail (new object_ref))
  112. (who_fired_me (new object_ref))
  113. (track_object (new object_ref))
  114. (fuel 0.0)
  115. (velocity (new vector)))
  116. (def_class heavy_rocket_vars nil
  117. (smoke_trail (new object_ref))
  118. (who_fired_me (new object_ref))
  119. (track_object (new object_ref))
  120. (fuel 0.0)
  121. (velocity (new vector)))
  122. (def_class vortex_missile_vars nil
  123. (smoke_trail (new object_ref))
  124. (who_fired_me (new object_ref))
  125. (track_object (new object_ref))
  126. (fuel 0.0)
  127. (velocity (new vector)))
  128. (def_class nuke_missile_vars nil
  129. (smoke_trail (new object_ref))
  130. (who_fired_me (new object_ref))
  131. (track_object (new object_ref))
  132. (fuel 0.0)
  133. (velocity (new vector)))
  134. (def_class crate_vars nil
  135. (type 'money '(list_box health bullet missile chain_gun money))
  136. (amount 'small '(list_box small large))
  137. (yvel 0.0)
  138. (ticks_left -1))
  139. (def_class cloud_color nil
  140. (red 1.0)
  141. (green 1.0)
  142. (blue 1.0)
  143. (alpha 1.0)
  144. )
  145. (def_class level_vars nil
  146. ; (bottom_cloud_layer (new cloud_color 0.8 0.6 0.4 1.0))
  147. ; (top_cloud_layer (new cloud_color 1.0 0.8 0.6 0.75))
  148. (bottom_cloud_layer (new cloud_color 1.0 1.0 1.0 1.0))
  149. (top_cloud_layer (new cloud_color 0.8 0.8 0.8 0.75))
  150. )