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

  1. TIKI
  2. setup
  3. {
  4.     scale 0.52            // Set default scale to 16/30.5 since world
  5.                         // is in 16 units per foot and model is in cm's
  6.     path models/weapons/P38
  7.     skelmodel P38.skd
  8.     surface P382 shader P38
  9.     surface P381 shader P38
  10.     surface clip shader P38
  11. }
  12.  
  13. init
  14. {
  15.     server
  16.     {
  17.  
  18.     //========================================//
  19.     //        WEAPON NAME          //
  20.     //========================================//
  21.  
  22.         classname        Weapon
  23.         weapontype        pistol
  24.         name            "Walther P38"
  25.         rank            120 120
  26.  
  27.     //========================================//
  28.     //        WEAPON ACCURACY       //
  29.     //========================================//
  30.  
  31. //        Walther P-38 Pistol: Max Eff. Range is 75 yds with a muzzle velocity of 1150 ft/s. (9mm Parabellum round)
  32.  
  33.         sp bulletrange        3120     //the range at which bulletspread is applied fully
  34.         sp bulletspread        40 40 56 56 //  minpitch minyaw maxpitch maxyaw(offsets in world units)
  35.         sp firespreadmult    0.38 0.7 200 0.6            //add falloff cap maxtime
  36.  
  37. //        dm bulletrange        3120     //the range at which bulletspread is applied fully (65 yards)
  38.         dm bulletrange        4000     //the range at which bulletspread is applied fully (65 yards)
  39.  
  40. //        dm bulletspread        40 40 56 56 //  minpitch minyaw maxpitch maxyaw(offsets in world units) spread is maximum at top movement speed
  41. //        dm bulletspread        70 70 130 130 //  minpitch minyaw maxpitch maxyaw(offsets in world units) spread is maximum at top movement speed
  42. //        dm bulletspread        40 40 64 64 //  minpitch minyaw maxpitch maxyaw(offsets in world units) spread is maximum at top movement speed
  43.         dm bulletspread        42 42 65 65 //  minpitch minyaw maxpitch maxyaw(offsets in world units) spread is maximum at top movement speed
  44.  
  45. //        dm firespreadmult    0.38 0.7 200 0.6            //add falloff cap maxtime
  46.         dm firespreadmult    0.58 0.5 200 0.6    //add falloff cap maxtime 0.38 0.7 200 0.6 (original)
  47.  
  48.         realism bulletrange        4000     //the range at which bulletspread is applied fully (65 yards)
  49.         realism bulletspread        42 42 65 65 //  minpitch minyaw maxpitch maxyaw(offsets in world units) spread is maximum at top movement speed
  50.         realism firespreadmult    0.58 0.5 200 0.6    //add falloff cap maxtime 0.38 0.7 200 0.6 (original)
  51.  
  52.     //========================================//
  53.     //        DAMAGE / RATE OF FIRE      //
  54.     //========================================//
  55.  
  56.         sp bulletdamage        33    //original 25
  57.         dm bulletdamage        38    //original 25 // 2nd pass 33
  58.         sprealism bulletdamage    40    //original 25 // 2nd pass 33
  59.         dmrealism bulletdamage    44
  60.  
  61.         sp firedelay        0.15
  62.         dm firedelay        0.16    //was 0.15
  63.         realism firedelay        0.16    //was 0.15
  64.  
  65.     //========================================//
  66.     //        PLAYER MOVEMENT          //
  67.     //========================================//
  68.  
  69.         sp movementspeed     1.0
  70.         dm movementspeed    1.0
  71.         realism movementspeed    1.0
  72.  
  73.     //========================================//
  74.     //        RIFLE BUTT / SECONDARY FIRE//
  75.     //========================================//
  76.  
  77.         secondary firetype            melee
  78.         secondary ammotype            none
  79.         secondary ammorequired        0
  80.         secondary meansofdeath        bash
  81.         secondary bulletknockback    50
  82.         secondary quiet
  83.  
  84.         sp secondary bulletrange    64
  85.         sp secondary bulletdamage    20
  86.  
  87.         dm secondary bulletrange    96
  88.         dm secondary bulletdamage    35
  89.  
  90.         realism secondary bulletrange    96
  91.         realism secondary bulletdamage    35
  92.  
  93.     //========================================//
  94.     //        AMMO              //
  95.     //========================================//
  96.  
  97.         firetype        bullet
  98.         ammotype        "Pistol"
  99.         meansofdeath        bullet
  100.         semiauto
  101.         bulletcount        1
  102.         clipsize        8
  103.         ammorequired        1
  104. //        usenoammo        1 // allow the pistol to be used when it has no ammo
  105.  
  106.         sp startammo    8
  107.         dm startammo    32
  108.         sprealism startammo    8
  109.         dmrealism startammo    16
  110.  
  111.     //========================================//
  112.     //        CROSSHAIR, ZOOM, TRACERS  //
  113.     //========================================//
  114.  
  115.         sp tracerfrequency     1
  116.         dm tracerfrequency     0
  117.         sprealism tracerfrequency     1
  118.         dmrealism tracerfrequency     0
  119.  
  120.         crosshair        1
  121.  
  122.     //========================================//
  123.     //        SOUND, AI, OTHER      //
  124.     //========================================//
  125.  
  126.         pickupsound        p38_snd_pickup
  127.         ammopickupsound    p38_snd_pickup_ammo
  128.         noammosound        p38_snd_noammo
  129.  
  130.         // Holstering info
  131. //        holstertag        "Bip01 Pelvis"
  132. //        holsteroffset    "1.5 -4 -10.0"
  133. //        holsterangles    "5 190 195"
  134. //        holsterScale    1.0
  135.  
  136.         // AI animation group info
  137.         weapongroup        pistol
  138.         airange            short
  139.         
  140.         // this is attached to the player during reload
  141.         cache models/ammo/p38_clip.tik
  142.     }
  143.     client
  144.     {
  145.         cache tracer.spr
  146.         cache muzsprite.spr
  147.         cache models/fx/muzflash.tik
  148.         cache models/ammo/pistolshell.tik
  149.     }
  150. }
  151.  
  152. animations
  153. {
  154.     idle     P38.skc
  155.     reload     P38_reload.skc
  156.     {
  157.         server
  158.         {
  159.             18 surface clip    +nodraw
  160.             39 surface clip -nodraw
  161.             last idle
  162.         }
  163.         client
  164.         {
  165.                 entry sound P38_snd_reload item
  166.         }
  167.  
  168.     }
  169.  
  170.     secondaryfire     P38.skc
  171.     {
  172.         server
  173.         {
  174.             entry shoot secondary
  175.         }
  176.     }
  177.     fire     P38.skc
  178.     {
  179.         server
  180.         {
  181.             entry shoot primary
  182.         }
  183.         client
  184.         {
  185.             entry stopaliaschannel P38_snd_fire
  186.             entry sound P38_snd_fire
  187.  
  188.             // By now, the server has already fired the weapon, so it's
  189.             // ok to apply the view kick apon entry to avoid problems
  190.             // with multiple application on single frame animations.
  191.  
  192.             ////////////////////////////////////////////////////////////////////////////////////////
  193.             // View Kick Controls
  194.             //
  195.             // View Kicking works based on the assumptions that every weapon has its own tendencies to kick in
  196.             // a paticular fashion. In MOH we call then scatter patterns. Currently we have 2 scatter patterns which
  197.             // will be explained.
  198.             // Scatter Patterns:
  199.             // "V" - the cone. The longer you shoot the more random your shots will be in the horizontal axis.
  200.             // "T" - the T shape. The gun has a tendancy to push in a paticular direction. //not used much...too artificial looking
  201.             //
  202.             //
  203.             //                     +-------------------------------------------- Scatter Pitch Min
  204.             //                      |    +--------------------------------------- Scatter Pitch Max
  205.             //                      |    |       +------------------------------- Scatter Yaw Min
  206.             //                     |    |       |   +--------------------------- Scatter Yaw Max
  207.             //                     |    |       |   |     +--------------------- The Recentering speed in fraction per second
  208.             //                      |    |       |   |     |    +---------------- The Scatter Pattern
  209.             //                      |    |       |   |     |    |     +---------- The absolute pitch min/max
  210.             //                      |    |       |   |     |    |     |  +------- The absolute yaw min/max
  211.             //                      |    |       |   |     |    |     |  | +----- This is the pitch at which you loose all
  212.             //                      |    |       |   |     |    |     |  | |      control of the weapon and its behavior is
  213.             //                      |    |       |   |     |    |     |  | |      purely random.
  214.             //                V    V       V   V     V    V     V  V V
  215.             entry viewkick         -1.0 -1.0    -0.16 0.16  1.2 "V"  2.8 0.8 1.2
  216.  
  217.             //entry viewkick         -1.2 -1.2    -0.2 0.2    1   "V"  3.0 1.0 1.6 (Colt .45 stats)
  218.  
  219.             // muzzle flash
  220.             entry tagdlight tag_barrel 0.25 0.2 0.15 120 0.11
  221.             entry tagspawnlinked tag_barrel
  222.             (
  223.                 scale 0.2
  224.                 offsetalongaxis 2 0 0
  225.                 count 1
  226.                 scale 0.30
  227.                 model muzsprite.spr
  228.                 life 0.06
  229.             )
  230.             entry tagspawnlinked tag_barrel
  231.             (
  232.                 count 1
  233.                 scalemin 0.15
  234.                 scalemax 0.25
  235.                 model models/fx/muzflash.tik
  236.                 randomroll
  237.                 life 0.04
  238.             )
  239.  
  240.             // smoke puff
  241. //            entry commanddelay 0.05 tagspawn tag_barrel
  242. //            (
  243. //                volumetric
  244. //                model gun    // sets the type of smoke
  245. //                life 10        // amount of smoke
  246. //                scale 1.0    // radius
  247. //                alpha 0.3    // density
  248. //                color 0.7 0.7 0.7    // RBG color of the smoke
  249. //                velocity 2    // base velocity away from the surface
  250. //                randvelaxis random 6 0 0    // velocity offset
  251. //                offsetalongaxis random 4 0 0    // positional offset
  252. //            )
  253.  
  254.             // shell eject
  255.             entry commanddelay 0.1 tagspawn tag_eject
  256.             (
  257.                 count 1
  258.                 model models/ammo/pistolshell.tik
  259.                 spawnrange 1024
  260.                 velocity 50
  261.                 randvel crandom 10 crandom 10 random 20
  262.                 avelocity crandom 90 crandom 90 0
  263.                 accel 0 0 -800
  264.                 physicsrate 20
  265.                 life 2.0
  266.                 fadedelay 1.7
  267.                 collision
  268.                 bouncefactor 0.2
  269.                 bouncesoundonce snd_pistol_shell
  270.             )
  271.         }
  272.     }
  273. }
  274.  
  275. /*QUAKED addon_playerweapon_german_p38 (0.0 0.0 1.0) (-8 -8 -8) (8 8 8)
  276. German pistol - Walther P38
  277. */