home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / models / weapons / mg42portable_placed.tik < prev    next >
Encoding:
Text File  |  2002-10-25  |  3.0 KB  |  162 lines

  1. // Portable MG42 turret gun
  2. // This is the gun used when the portable MG42 is placed and usable
  3.  
  4. TIKI
  5. setup
  6. {
  7.     scale 0.52
  8.  
  9.     path models/weapons/mg42
  10.     skelmodel mg42_mounted_3rdperson.skd
  11.     surface mg42_carryable_tripod shader mg42_carryable_tripod
  12.     surface mg42_carryable_gun shader mg42_carryable_gun
  13. }
  14.  
  15. init
  16. {
  17.     server
  18.     {
  19.         classname        PortableTurret
  20.         weapontype        mg
  21.         name            "Portable MG42"
  22.  
  23.         // turret settings
  24.         idleCheckOffset    "-56 0 0"
  25. //        viewOffset        "-40.35 0 11.88"
  26.         viewOffset        "-25 0 11.88" // temp compensation to make it look ok
  27.         viewjitter        0.75
  28.         maxIdlePitch    -5
  29.         maxIdleYaw        12
  30.         pitchCaps        "-20 20 0"
  31.         maxYawOffset    40
  32.         userdistance    38.27
  33.  
  34.         // Primary fire type info
  35.         firetype        bullet
  36.         meansofdeath    bullet
  37.         clipsize        50
  38.         usenoammo        1
  39.         bulletlarge        1
  40.  
  41.         sp bulletcount        2
  42.         sp firedelay        0.06
  43.         sp bulletrange        4000
  44.         sp bulletdamage        45
  45.         sp bulletspread        40 40
  46.  
  47.         // DM Attributes
  48.         dm bulletcount        2
  49.         dm firedelay        0.06
  50.         dm bulletrange        4000
  51.         dm bulletdamage        45
  52.         dm bulletspread        40 40
  53.  
  54.  
  55.         // Realism Attributes
  56.         realism bulletcount        2
  57.         realism firedelay        0.06
  58.         realism bulletrange        4000
  59.         realism bulletdamage    45
  60.         realism bulletspread    40 40
  61.  
  62.         realism throughwood        56
  63.         realism throughmetal    32
  64.  
  65.         tracerfrequency     4
  66.  
  67.         // AI animation group info
  68.         weapongroup        mg42
  69.     }
  70.     client
  71.     {
  72.         cache muzsprite.spr
  73.         cache models/fx/muzflash.tik
  74.         cache models/ammo/rifleshell.tik
  75.     }
  76. }
  77.  
  78.  
  79. animations
  80. {
  81.     idle    mg42_mounted_3rdperson.skc
  82.     reload    mg42_mounted_3rdperson.skc
  83.     {
  84.         client
  85.         {
  86.             entry sound mp44_snd_reload
  87.         }
  88.     }
  89.     fire    mg42_mounted_3rdperson.skc
  90.     {
  91.         server
  92.         {
  93.             entry shoot
  94.         }
  95.         client
  96.         {
  97.             entry stopaliaschannel mg42_gun_snd_fire
  98.             entry sound mg42_gun_snd_fire
  99.  
  100.             // muzzle flash
  101.             entry tagdlight tag_barrel 0.25 0.2 0.05 140 0.11
  102.             entry tagspawnlinked tag_barrel
  103.             (
  104.                 spawnrange 4096
  105.                 scale 0.4
  106.                 offsetalongaxis 1.5 0 0
  107.                 count 1
  108.                 model muzsprite.spr
  109.                 angles 0 0 crandom 25
  110.                 life 0.06
  111.             )
  112.             entry tagspawnlinked tag_barrel
  113.             (
  114.                 spawnrange 4096
  115.                 count 1
  116.                 scalemin 0.9
  117.                 scalemax 1.1
  118.                 model models/fx/muzflash.tik
  119.                 randomroll
  120.                 life 0.04
  121.             )
  122.  
  123.             // shell eject
  124.             entry commanddelay 0.1 tagspawn tag_eject
  125.             (
  126.                 spawnrange 1024
  127.                 count 1
  128.                 model models/ammo/rifleshell.tik
  129.                 scale 1.0
  130.                 velocity 70
  131.                 randvel crandom 10 crandom 10 random 20
  132.                 emitterangles 0 0 0
  133.                 avelocity crandom 90 crandom 90 0
  134.                 accel 0 0 -800
  135.                 physicsrate 20
  136.                 life 2.0
  137.                 fadedelay 1.7
  138.                 collision
  139.                 bouncefactor 0.2
  140.                 bouncesoundonce snd_rifle_shell
  141.             )
  142.  
  143.             // smoke puff
  144.             entry tagspawn tag_barrel
  145.             (
  146.                 spawnrate 1.00
  147.                 model vsssource.spr
  148.                 alpha 0.30
  149.                 color 1.00 1.00 1.00
  150.                 scale 0.10
  151.                 life 1.00
  152.                 scalerate 10.00
  153.                 velocity 65.00
  154.                 randvel range 20 -60 crandom -40 range 20 -60
  155.                 friction 7.00
  156.                 fade
  157.                 randomroll
  158.             )
  159.         }
  160.     }
  161. }
  162.