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

  1. TIKI
  2.  
  3. setup
  4. {
  5.     scale 0.52            // Set default scale to 16/30.5 since world is in 16 units per foot and model is in cm's
  6.     path models/weapons/mosin_nagant
  7.     skelmodel mosin_nagant.skd
  8.     surface mosin_nagant shader mosin_nagant
  9. }
  10.  
  11. init
  12. {
  13.     server
  14.         {
  15.     //========================================//
  16.     //        WEAPON NAME          //
  17.     //========================================//
  18.  
  19.         classname        Weapon
  20.         weapontype        rifle
  21.         name            "Mosin Nagant Rifle"
  22.         rank            220 220
  23.  
  24.     //========================================//
  25.     //        WEAPON ACCURACY       //
  26.     //========================================//
  27. //        Kar98K: Max Eff. Range is 400 yds with a muzzle velocity of 2650 ft/s. (7.92 x 57mm Mauser)
  28.  
  29.         sp bulletrange        4000             //the range at which bulletspread is applied
  30.         sp bulletspread        8 8 65 65         //minpitch minyaw maxpitch maxyaw
  31.  
  32.         dm bulletrange        4000
  33.         dm bulletspread        2 2 65 65
  34.  
  35.         realism bulletrange        4000
  36.         realism bulletspread    2 2 65 65
  37.  
  38.     //========================================//
  39.     //        DAMAGE / RATE OF       //
  40.     //========================================//
  41.  
  42.         sp bulletdamage        75
  43.         dm bulletdamage        100
  44.         realism bulletdamage    110
  45.  
  46.         sp firedelay         1.2    //was 1.45
  47.         dm firedelay        1.1    //was 1.45
  48.         realism firedelay    1.1
  49.  
  50.         realism throughwood        24
  51.         realism throughmetal    8
  52.  
  53.     //========================================//
  54.     //        PLAYER MOVEMENT          //
  55.     //========================================//
  56.  
  57.         sp movementspeed        1.0
  58.         dm movementspeed        1.05
  59.         realism movementspeed        1.05
  60.  
  61.     //========================================//
  62.     //        RIFLE BUTT / SECONDARY FIRE//
  63.     //========================================//
  64.  
  65.         secondary firetype            melee
  66.         secondary ammotype            none
  67.         secondary ammorequired        0
  68.         secondary meansofdeath        bash
  69.         secondary bulletknockback    50
  70.         secondary quiet
  71.  
  72.         sp secondary bulletrange    64
  73.         sp secondary bulletdamage    60
  74.  
  75.         dm secondary bulletrange    96
  76.         dm secondary bulletdamage    60
  77.  
  78.         realism secondary bulletrange    96
  79.         realism secondary bulletdamage    60
  80.  
  81.     //========================================//
  82.     //        AMMO              //
  83.     //========================================//
  84.  
  85.         firetype        bullet
  86.         ammotype        "rifle"
  87.         meansofdeath    bullet
  88.         semiauto
  89.         bulletcount        1
  90.         clipsize        5
  91.         ammorequired    1
  92.         bulletlarge        1
  93.  
  94.         sp startammo    5
  95.         dm startammo    80
  96.         sprealism startammo    5
  97.         dmrealism startammo    60
  98.  
  99.         // Additional DM Loadout
  100.         dm additionalstartammo "grenade" 1
  101. //        dm additionalstartammo "smokegrenade" 1
  102.         dm startitem "items/binoculars.tik"
  103.  
  104.         // Additional DM Realism Loadout
  105.         dmrealism additionalstartammo "grenade" 1
  106. //        dmrealism additionalstartammo "smokegrenade" 1
  107.         dmrealism startitem "items/binoculars.tik"
  108.  
  109.     //========================================//
  110.     //        CROSSHAIR, ZOOM, TRACERS  //
  111.     //========================================//
  112.  
  113.         sp tracerfrequency     2 //original 0
  114.         dm tracerfrequency     0
  115.         sprealism tracerfrequency     2
  116.         dmrealism tracerfrequency     0
  117.  
  118.         crosshair        1
  119.  
  120.     //========================================//
  121.     //        SOUND, AI, OTHER      //
  122.     //========================================//
  123.  
  124.         pickupsound        kar98_snd_pickup
  125.         ammopickupsound        kar98_snd_pickup_ammo
  126.         noammosound        kar98_snd_noammo
  127.  
  128.         // Holstering info
  129. //        holstertag        "Bip01 Spine2"
  130. //        holsteroffset        "8.0 -7.75 6.5"
  131. //        holsterangles        "0 185 -25"
  132. //        holsterScale        1.0
  133.  
  134.         // AI animation group info
  135.         weapongroup        rifle
  136.         airange            long
  137.  
  138.     }
  139.     client
  140.     {
  141.         cache tracer.spr
  142.         cache muzsprite.spr
  143.         cache models/fx/snipesmoke.tik
  144.         cache models/ammo/rifleshell.tik
  145.     }
  146. }
  147.  
  148. animations
  149. {
  150.     idle        mosin_nagant.skc
  151.  
  152.     reload    mosin_nagant_reload.skc // this is the start of the reloading sequence
  153.     {
  154.         client
  155.         {
  156.             entry sound nagantRif_snd_reload item
  157.         }
  158.     }
  159.     rechamber    mosin_nagant_rechamber.skc
  160.     {
  161.         client
  162.         {
  163.             entry sound kar98_snd_bolt item
  164.             18 tagspawn tag_eject 1024
  165.             (
  166.                 spawnrange 2048
  167.                 count 1
  168.                 model models/ammo/rifleshell.tik
  169.                 scale 1.0
  170.                 velocity 70
  171.                 randvel crandom 10 crandom 10 random 20
  172.                 emitterangles 0 0 0
  173.                 avelocity crandom 90 crandom 90 0
  174.                 accel 0 0 -800
  175.                 physicsrate 20
  176.                 life 2.0
  177.                 fadedelay 1.7
  178.                 collision
  179.                 bouncefactor 0.2
  180.                 bouncesoundonce snd_rifle_shell
  181.             )
  182.         }
  183.     }
  184.     secondaryfire     mosin_nagant.skc
  185.     {
  186.         server
  187.         {
  188.             entry shoot secondary
  189.         }
  190.     }
  191.     fire        mosin_nagant.skc
  192.     {
  193.         server
  194.         {
  195.             entry shoot
  196.         }
  197.         client
  198.         {
  199.             entry stopaliaschannel nagantRif_snd_fire 
  200.             entry sound nagantRif_snd_fire 
  201.  
  202.             // By now, the server has already fired the weapon, so it's
  203.             // ok to apply the view kick apon entry to avoid problems
  204.             // with multiple application on single frame animations.
  205.  
  206.             ////////////////////////////////////////////////////////////////////////////////////////
  207.             // View Kicking
  208.             //
  209.             // View Kicking works based on the assumptions that every weapon has its own tendencies to kick in
  210.             // a paticular fashion. In MOH we call then scatter patterns. Currently we have 2 scatter patterns which
  211.             // will be explained.
  212.             // Scatter Patterns:
  213.             // "V" - the cone. The longer you shoot the more random your shots will be in the horizontal axis.
  214.             // "T" - the T shape. The gun has a tendancy to push in a paticular direction.
  215.             //
  216.             //
  217.             //                     +-------------------------------------------- Scatter Pitch Min
  218.             //                      |    +--------------------------------------- Scatter Pitch Max
  219.             //                      |    |       +------------------------------- Scatter Yaw Min
  220.             //                     |    |       |   +--------------------------- Scatter Yaw Max
  221.             //                     |    |       |   |     +--------------------- The Recentering speed in fraction per second
  222.             //                      |    |       |   |     |    +---------------- The Scatter Pattern
  223.             //                      |    |       |   |     |    |     +---------- The absolute pitch min/max
  224.             //                      |    |       |   |     |    |     |  +------- The absolute yaw min/max
  225.             //                      |    |       |   |     |    |     |  | +----- This is the pitch at which you loose all
  226.             //                      |    |       |   |     |    |     |  | |      control of the weapon and its behavior is
  227.             //                      |    |       |   |     |    |     |  | |      purely random.
  228.             //                V    V       V   V     V    V     V  V V
  229.             entry viewkick         -3.5 -4.0    -1.0 -1.05 2.5  "T"   5.0 2.0 5
  230.  
  231. //            entry viewkick         -1.2 -1.2    -0.2  0.2   1   "V"   3.0 1.0 1.6 (Colt .45 Pistol)
  232.  
  233. //            entry viewkick -3.5 -4.0   -1.0 1.0 (old)
  234.  
  235.             // muzzle flash
  236.             entry tagdlight tag_barrel 0.25 0.2 0.15 150 0.11
  237.             entry tagspawnlinked tag_barrel
  238.             (
  239.                 model muzsprite.spr
  240.                 count 1
  241.                 alpha .5
  242.                 color 1.00 1.00 1.00
  243.                 varycolor
  244.                 scale 0.70
  245.                 life 0.05
  246.                 scalerate 1.00
  247.                 velocity 4.00
  248.                 friction 3.00
  249.                 fade
  250.                 alignstretch 1.00
  251.                 randomroll
  252.             )
  253.             entry tagspawnlinked tag_barrel
  254.             (
  255.                 model muzsprite.spr
  256.                 count 1
  257.                 alpha .5
  258.                 color 1.00 1.00 1.00
  259.                 scale 0.60
  260.                 life 0.05
  261.                 scalerate 0.70
  262.                 velocity 17.00
  263.                 offsetalongaxis 5 0 0
  264.                 fade
  265.                 alignstretch 0.40
  266.                 randomroll
  267.             )
  268.  
  269.             entry tagspawnlinked tag_barrel
  270.             (
  271.                 model muzsprite.spr
  272.                 count 1
  273.                 alpha .5
  274.                 color 1.00 1.00 1.00
  275.                 scale 0.60
  276.                 life 0.05
  277.                 velocity 18.00
  278.                 offsetalongaxis 9 0 0
  279.                 fade
  280.             )
  281.  
  282.             // smoke puff used on sniper version of kar98
  283.             entry commanddelay 0.020 tagspawn tag_barrel
  284.             (
  285.                 spawnrate 1.00
  286.                 model vsssource.spr
  287.                 //count 1
  288.                 alpha 0.10
  289.                 color 1.00 1.00 1.00
  290.                 spritegridlighting
  291.                 scale 0.09
  292.                 life .9
  293.                 scalerate 23.00
  294.                 velocity 429.00
  295.                 accel 0.00 20.00 30.00
  296.                 friction 2.00
  297.                 fade
  298.                 offsetalongaxis random 4 0 0
  299.             )
  300.  
  301.             entry tagspawn tag_barrel
  302.             (
  303.                 count 1
  304.                 scale .7
  305.                 model models/fx/snipesmoke.tik
  306.             )
  307.         }
  308.     }
  309. }
  310.  
  311. /*QUAKED addon_playerweapon_soviet_mosin-nagant-m1891 (0.0 0.0 1.0) (-8 -8 -8) (8 8 8)
  312. Soviet rifle - Mosin-Nagant M1891.
  313. */
  314.