Ok m8 i will, if i cant get the proper onboard MG42 working ill show ya how to do the "added" version and its fire settings
Ok heres some code that is only of use to a static tank...
main:
level waittill prespawn
thread panza_aims
thread panza_mg42
level waittill spawn
end
panza_aims:
spawn script_origin "targetname" "aim9"
$aim9.origin = ( -1043 -4225 2105 )
spawn script_origin "targetname" "aim10"
$aim10.origin = ( 1195 -3841 2133 )
spawn script_origin "targetname" "aim11"
$aim11.origin = ( 6937 -4796 2027 )
spawn script_origin "targetname" "aim12"
$aim12.origin = ( 1113 -4375 2064 )
spawn script_origin "targetname" "aim13"
$aim13.origin = ( -896 -2326 2258 )
spawn script_origin "targetname" "aim14"
$aim14.origin = ( 1888 -3827 2090 )
end
panza_mg42:
spawn vehicles/panzer_tank_europe1.tik "targetname" "panza77"
$panza77.origin = ( 3347 -653 2777 )
$panza77.angle = -120
$panza77.gun = $tiger77 QueryTurretSlotEntity 0
$panza77.gun dmprojectile models/projectiles/panzerIVshell.tik
$panza77 nodamage
spawn "statweapons/mg42_gun.tik" "targetname" "t1"
$t1.origin = ( 3298 -782 2835 )
$t1.angles = ( 0 -120 0 )
$t1 notsolid
$t1 burstFireSettings 0.55 1.5 1 .25
$t1 bulletdamage 25
while (1)
{
wait 5
$t1 setaimtarget $aim9
$t1 startfiring
wait 3
$t1 stopfiring
$t1 setaimtarget $aim10
$t1 startfiring
wait 3
$t1 stopfiring
$t1 setaimtarget $aim11 //etc etc
$t1 startfiring
wait 3
$t1 stopfiring
wait 20
}
end
Note - these are set up for our Omaha Assault map so youll need to edit the Tanks,MG42s and Aim coords for your map, youll also need some aim points added for the panzers cannon if you intend it to fire.
Now to look at a moving Tank
edit..
Well not much luck with a moving tank, the onboard just doesnt want to know
