home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 95 / XENIATGM95.iso / Gunlok / data1.cab / Program_Executable_Files / scripts / missile_launcher.gsh < prev    next >
Text File  |  2000-08-22  |  4KB  |  184 lines

  1. // defines the weapon Wpn_MissileLauncher
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_MISSILE_LAUNCHER_GSH
  8. #define INCLUDED_MISSILE_LAUNCHER_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. light Lit_Missile
  13. {
  14.     red             10
  15.     green           10
  16.     blue            10
  17.     specular red    5
  18.     specular green    5
  19.     specular blue    5
  20.     range           256
  21. }
  22.  
  23. pgenerator Pgn_Missile
  24. {
  25.     type smoke
  26.     life infinite    // well, it lasts as longs as the projectile it's attached to anyway
  27.     rate 10
  28.     // stream direction
  29.     x 0 y 0 z 0
  30.     // particle colour
  31.     red 0.1 green 0.1 blue 0.1 alpha 0.5
  32.     // scale
  33.     start scale 0.1    end scale 2.0
  34.     spin 10000
  35. }
  36.  
  37. shape Shp_Missile
  38. {
  39.     file "objects\missile.rif"
  40.     name "missile"
  41. }
  42.  
  43. shape Shp_Missile_Plus
  44. {
  45.     file "objects\missile plus.rif"
  46.     name "missile plus"
  47. }
  48.  
  49. projectile Prj_Missile
  50. {
  51.     gravity        yes // is this missile affected by gravity
  52.     damage        23 // in strength points
  53.     blast        23 // proximity damage (not yet supported)?
  54.     blast range    3
  55.     hit_light    Lit_Missile    // just for the explosion
  56.     sound        grenade sound
  57.     max range    4000
  58. }
  59.  
  60. projectile Prj_Missile_Plus
  61. {
  62.     gravity        no // is this missile affected by gravity
  63.     damage        27 // in strength points
  64.     blast        25 // proximity damage (not yet supported)?
  65.     blast range    3
  66.     hit_light    Lit_Missile    // just for the explosion
  67.     sound        grenade sound
  68.     max range    4000
  69. }
  70.  
  71. role Rol_Missile : Rol_DefaultProjectile
  72. {
  73.     pgen        Pgn_Missile
  74.  
  75.     shape        Shp_Missile
  76.  
  77.     projectile    Prj_Missile
  78.  
  79.     identifier    "missile"
  80.  
  81.     limit        256        //Bang
  82. }
  83.  
  84. role Rol_Missile_Plus : Rol_DefaultProjectile
  85. {
  86.     pgen        Pgn_Missile
  87.  
  88.     shape        Shp_Missile_Plus
  89.  
  90.     projectile    Prj_Missile_Plus
  91.  
  92.     identifier    "missile plus"
  93.  
  94.     limit        320            // homing(64) + Bang (256)
  95. }
  96.  
  97. // MISSILE LAUNCHER
  98. ammo
  99. {
  100.     weapon type        missile launcher
  101.     ammo type        missile basic
  102.  
  103.     round time        4
  104.     reload time        5
  105.     life timer        0
  106.     magazine size        5
  107.     sound            grenade launcher sound
  108.  
  109.     file            "User Interface/CommWheel01.RIF"    // command wheel icon
  110.     name            "sub ammo miss ra"
  111.  
  112.     projectile        Rol_Missile // what it fires
  113.     firing speed    25 // m/s
  114. }
  115. ammo
  116. {
  117.     weapon type        missile launcher
  118.     ammo type        missile plus
  119.  
  120.     round time        4
  121.     reload time        5
  122.     life timer        0
  123.     magazine size        1
  124.     sound            grenade launcher sound
  125.  
  126.     file            "User Interface/CommWheel01.RIF"    // command wheel icon
  127.     name            "sub ammo miss rb"
  128.  
  129.     projectile        Rol_Missile_Plus // what it fires
  130.     firing speed    15 // m/s
  131. }
  132.  
  133. ////////////////////////////////////////////////////////////////////////////////////
  134.  
  135. shape Shp_MissileLauncher_Pickup
  136. {
  137.     file "objects\missile launcher pickup a.rif"
  138.     name "missile launcher pickup a"
  139. }
  140.  
  141. hierarchy Hcy_MissileLauncher_Inventory_Pickup
  142. {
  143.     file "objects\missile launcher.rif"
  144.     name "missile launcher"
  145.     hotspot none
  146. }
  147.  
  148. character Chr_MissileLauncher_Pickup : Chr_Default
  149. {
  150.     turning speed   0    // this is in revolutions per second
  151.     walking speed   0    // this is in animation cycles per second
  152.     weapon            missile launcher
  153.     strength        10    // initial strength points
  154.     aim                0
  155.     aggression        0.41    // 4 = weapon pickup
  156. }
  157.  
  158. role Rol_MissileLauncher_Pickup : Rol_DefaultRobot
  159. {
  160.     shape            Shp_MissileLauncher_Pickup
  161.  
  162.     inventory shape    Hcy_MissileLauncher_Inventory_Pickup
  163.  
  164.     character        Chr_MissileLauncher_Pickup
  165.  
  166.     identifier        "missile_launcher"
  167.  
  168.     destructibility    Des_Explode
  169.  
  170.     ai                pickup
  171.  
  172.     armour            25
  173.  
  174.     limit            11
  175.  
  176.     description        missile launcher description
  177.  
  178.     pickup name        missile launcher pickup
  179. }
  180.  
  181. ////////////////////////////////////////////////////////////////////////////////////
  182.  
  183. // end wrapper - for preventing multiple or recursive inclusions
  184. #endif // !INCLUDED_MISSILE_LAUNCHER_GSH