Flak88mm acting like mg42

Post your skinning / modelling questions or answers here

Moderator: Moderators

Post Reply
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Flak88mm acting like mg42

Post by Krane »

Ok, I want to "hack" the 88mm model to make it act like a mg42, like when u use it, it'll shoot like crazy instead of one shot at a time. Same bullets as the mg42, etc...

I'm affraid this is not possible coz the animations of the model, is it right?

Or maybe do the oposite way: get a mg42 and change the model in the tik for th 88mm...but this doesn't seems to work...

Help! :shock:
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I would try to do it the second way... but if you say it doesn't work.... :(
Image
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

Prob is, if I copy just the path/models...flak88_turret.skc part only, it crashes the game. So, I copied the animations part too and worked...I mean, it's shooting one bullet at a time...
Image
Phil {sfx}
Sergeant
Posts: 67
Joined: Thu Sep 30, 2004 2:08 pm
Location: uk
Contact:

Post by Phil {sfx} »

Old answer for an old post. :wink:

Make a folder called models, then make another folder inside it called Projectiles

Copy this to notepad:

TIKI
setup
{
scale 1.0 // Needs to be unnaturally large so it is visible
lod_scale 30
path models/ammo/bazooka_shell
skelmodel projectile_bazooka.skd
surface bazookashell shader bazookashell
}


init
{
server
{
classname Projectile
anim idle
setsize "-4 -4 -4" "4 4 4"
speed 1500 // full realistic speed is 2800 (175ft/sec)
addownervelocity 0
hitdamage 200
life 20.0
health 50
takedamage
meansofdeath rocket
explosionmodel models/fx/bazookaexplosion.tik
explodeontouch
smashthroughglass 64
//knockback 300
dlight 0.4 0.2 0.1 256 // red green blue radius
gravity 0.2
//avelocity random 90 random 90 60

//commanddelay 0.2 drunk 0.12 0.12

cache blastmark.spr
cache models/fx/bazookaexplosion.tik
}
client
{
originemitter bazookatrail
(
model vsssource.spr
velocity 150
friction 0.85
randvel crandom 10 crandom 10 crandom 10
accel 0 0 20
spawnrate 110
color .4 .4 .4
spritegridlighting
alpha 0.4
fadein 0.1
fadedelay 1.0
scalemin 0.8
scalemax 1.0
scalerate 0.5
life 2.0 2.5
)
}
}

animations
{
idle projectile_bazooka.skc
}


Save this as flak88shell.tik & put in the Projectiles folder.

Make another folder in the Models folder & call it statweapons.

Open notepad again & copy this:

TIKI
setup
{
scale 0.62 // 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"

//pickupsound flak88_reload
//noammosound flak88_reload

// Primary fire type info
projectile models/projectiles/flak88shell.tik
firetype projectile
ammotype "heavy"
//semiauto
//clipsize 1
meansofdeath rocket
bulletcount 1
usenoammo 1
ammorequired 0
firedelay 5.0
bulletrange 8000
bulletdamage 200
bulletspread -35 -35
tracerfrequency 3
turnspeed 38
pitchcaps "-55 10 0"

// DM Attributes
dmprojectile models/projectiles/flak88shell.tik
dmusenoammo 1
dmammorequired 0
dmfiredelay 5.0
//dmbulletcount 1
dmbulletrange 8000
dmbulletdamage 400
dmbulletspread 15 15 75 75
dmcrosshair 0

SoundSet "tank_"
}
client
{
cache muzsprite.spr
cache models/fx/muzflash.tik
cache models/ammo/rifleshell.tik
cache model vsssource.spr
cache model smoke_ring.spr
}
}


animations
{
idle 88turret.skc
wheel_left 88turret_wheel_left.skc
wheel_right 88turret_wheel_right.skc
fire 88turret_fire.skc
{

server
{
first shoot
}

client
{
entry stopaliaschannel king_snd_fire
first sound king_snd_fire weapon 1.0 -1 0.95 0.1

first tagspawn tag_barrel
(
model vsssource.spr
count 6
alpha 0.30
color 1.00 1.00 1.00
life 0.70
scalerate 15.00
cone 20.00 20.00
velocity 700.00
accel -2000.00 0.00 0.00
friction 4.00
fade
circle
randomroll
)

// muzzle flash
first tagdlight tag_barrel 0.25 0.2 0.05 110 0.11
first tagspawn tag_barrel
(
spawnrate 1.00
model muzsprite.spr
alpha 0.50
color 1.00 1.00 1.00
varycolor
scale 1.70
life 0.05
scalerate 1.00
velocity 4.00
friction 3.00
fade
alignstretch 1.00
)

first tagspawn tag_barrel
(
spawnrate 1.00
model muzsprite.spr
alpha 0.50
color 1.00 1.00 1.00
scale 1.60
life 0.05
scalerate 0.70
velocity 17.00
offsetalongaxis 9 0 0
fade
alignstretch 0.40
)

first tagspawn tag_barrel
(
spawnrate 1.00
model muzsprite.spr
alpha 0.50
color 1.00 1.00 1.00
scale 1.60
life 0.05
velocity 18.00
fade
)

first tagspawn tag_barrel
(
spawnrate 1.00
model models/fx/muzflash.tik
color 1.00 1.00 1.00
scale 1.09
life 0.01
velocity 2009.00
accel 0.00 20.00 30.00
friction 2.00
offsetalongaxis range -10 4 0 0
fade
alignstretch 0.02
)

first tagspawn tag_barrel
(
spawnrate 1.00
model models/fx/snipesmoke.tik
color 1.00 1.00 1.00
scale 3.00
life 1.00
velocity 220.00
friction 10.00
angles 0 0 random 270
avelocity 0 0 10
align
)

}

}
}

/*QUAKED turretweapon_german_88mmflakturret (0.5 .25 0.25) (-32 -32 0) (32 32 128)
Big gun - Boom boom.
*/


Save this as flak88turret.tik & put it in statweapons folder.

Turn the models folder into a zip folder by using Winzip.
Then rename the new zipped folder to flak88.pk3 & then add it to your Main foler.

All flak88's should be useable.
Senior Modder/Mapper/Scripter/Modeller @ www.mods-r-us.net
Post Reply