Here is a usable Flak88 with one problem...any ideas?
Posted: Mon Sep 29, 2003 2:23 pm
Here is a usable Flak88 with one problem...well maybe two. The main problem is that the fire delay is ignored. The other small problem is that the crosshair is located in the line of sight where the player is attached to the gun so it's not in line with the barrel. Anyone got any ideas? The name of the TIKI file is flak88turret.tik
Code: Select all
TIKI
setup
{
scale 0.42 // Set default scale to 16/30.5 since world
// is in 16 units per foot and model is in cm's
//scale 1.55 // Seems to work better than 0.52
path models/statweapons/88mmflak
skelmodel 88turret.skd
surface all shader flak88
}
init
{
server
{
classname TurretGun
weapontype cannon
name "88mm A.T. Gun"
// turret settings
idleCheckOffset "-240 0 0"
viewOffset " -100 -10 115"
// Primary fire type info
firetype projectile
ammotype "heavy"
projectile models/projectiles/tigercannonshell.tik
meansofdeath rocket
//bulletcount 1
clipsize 1
startammo 1
ammorequired 1
ammorequired 0
usenoammo 1
firedelay 1000
bulletrange 4000
bulletdamage 200
bulletspread 40 40
tracerfrequency 3
turnspeed 38
pitchcaps "-30 30 0"
// AI animation group info
weapongroup 88mmflak
// DM Attributes
dmprojectile models/projectiles/tigercannonshell.tik
//dmammorequired 1
//dmstartammo 10
dmfiredelay 1000
dmbulletcount 1
dmbulletrange 8000
dmbulletdamage 400
dmbulletspread 15 15 75 75
}
client
{
cache muzsprite.spr
cache models/fx/muzflash.tik
cache models/ammo/rifleshell.tik
}
}
animations
{
exit 88turret.skc
idle_open 88turret.skc
idle 88turret.skc
fire 88turret_fire.skc
{
server
{
entry shoot
}
client
{
entry stopaliaschannel tank_snd_fire
entry sound tank_snd_fire weapon 1.0 -1 0.95 0.1
// muzzle flash
first tagdlight tag_barrel 0.25 0.2 0.05 110 0.11
first tagspawn tag_barrel
(
scale 0.6
offsetalongaxis 0 0 0
count 1
model muzsprite.spr
angles 0 0 crandom 25
life 0.06
)
entry tagspawn tag_barrel
(
count 1
scalemin 1.0
scalemax 1.5
model models/fx/muzflash.tik
randomroll
life 0.04
)
// shell eject
/*entry commanddelay 0.1 tagspawn tag_eject
(
spawnrange 1024
count 1
model models/ammo/panzer_shell.tik
scale 1.0
velocity 70
randvel crandom 10 crandom 10 random 20
emitterangles 0 0 0
avelocity crandom 90 crandom 90 0
accel 0 0 -800
physicsrate 20
life 2.0
fadedelay 1.7
collision
bouncefactor 0.2
bouncesoundonce snd_rifle_shell
*/)
// smoke puff
entry tagspawn tag_barrel
(
spawnrate 1.00
model vsssource.spr
alpha 0.30
color 1.00 1.00 1.00
scale 0.10
life 1.00
scalerate 10.00
velocity 65.00
randvel range 20 -60 crandom -40 range 20 -60
friction 7.00
fade
randomroll
)
}
}
}
/*QUAKED turretweapon_german_88mmflakturret (0.5 .25 0.25) (-32 -32 0) (32 32 128)
Big gun - Boom boom.
*/