home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / models / projectiles / steilhandgranate_base.txt < prev    next >
Encoding:
Text File  |  2002-10-21  |  1.4 KB  |  62 lines

  1. setup
  2. {
  3. //    scale 0.52            // Set default scale to 16/30.5 since world is in 16 units per foot and model is in cm's
  4.     scale 0.6    // Needs to be unnaturally large so it is visible
  5.     path models/projectiles/steilhandgranate
  6.     skelmodel steilhandgranate.skd
  7.     surface material1 shader stielhandgranate
  8.     surface material2 shader stielhandgranate
  9.     surface material3 shader stielhandgranate
  10.  
  11. }
  12.  
  13.  
  14. init
  15. {
  16.     server
  17.     {
  18.         classname Projectile
  19.         anim idle
  20.         setsize       "-2 -2 -2" "2 2 2"
  21.         speed         700
  22.         minspeed      300
  23.         life            4.0
  24.         dmlife            3.0
  25.         hitdamage     10
  26.         health        50
  27.         minlife            0.25
  28.         fuse            1
  29.         takedamage
  30.         meansofdeath        grenade
  31. //        impactmarkshader      blastmark
  32. //        impactmarkradius      50
  33. //        impactmarkorientation random
  34.         explosionmodel models/fx/M2FGrenadeExplosion.tik
  35.         bouncetouch
  36.         bouncesound            grenade_bounce_soft
  37.         bouncesound_metal    grenade_bounce_metal
  38.         bouncesound_hard    grenade_bounce_hard
  39.         bouncesound_water    grenade_bounce_water
  40. //        notouchdamage
  41.         smashthroughglass 64
  42.         gravity 0.8
  43.         avelocity random 90 random 90 60
  44.  
  45.         cache blastmark.spr
  46.         cache models/fx/M2FGrenadeExplosion.tik
  47.     }
  48. }
  49.  
  50. animations
  51. {
  52. //    idle    steilhandgranate.skc
  53.     idle    grenade_ping.skc
  54.     {
  55.         server
  56.         {
  57.             first ai_event grenade 384    // explosion radius is 256
  58.             last anim idle            // HACK! for some reason, server events don't get reposted after looping
  59.         }
  60.     }
  61. }
  62.