Home   Help Search Login Register  

Author Topic: flak88: problem combining muzzles  (Read 699 times)

0 Members and 1 Guest are viewing this topic.

stoppelhopser

  • Guest
flak88: problem combining muzzles
« on: 13 Jul 2003, 18:54:33 »
hi pholkz,

got a problem here:
i made a ww2 88flak/pak, and as a matter of fact this weapon served as anti-air as well as anti-tank weapon.
the aa version shot timed shells detonating in the air,  but used as antitank, untimered ammo was used, obviously...
now thats what iÂ'm trying to achieve...
i scripted a timed aa-shell but first the AI wouldnÂ't fire at air targets. after a hard struggle (itÂ's my first vehicle config) i found out that AI will never shot air targets when ammo is of type shell :P.
nexti derived my ammo and gun type from the shilka-classes and it worked. but now comes the trouble:
i coded 2 muzzle types for the gun. one supposed to shoot shells against tanks, one for my timed aa shells.
the first muzzle is derived from the t80 tankgun classes, so is the ammo. the other one is derived from the shilka classes.

PROBLEM:
AI donÂ't act as intended :( i hoped that now AI will switch muzzles according to type of target (air/ground)...
but they donÂ't...
anyone knows why or howto?
 

Yahoo Reborn

  • Guest
Re:flak88: problem combining muzzles
« Reply #1 on: 13 Jul 2003, 19:55:17 »
Try changing the Threat vaules to  threat[]={0.0, 0.8, 0.9}; Could work
« Last Edit: 13 Jul 2003, 20:00:57 by Yahoo Reborn »

stoppelhopser

  • Guest
Re:flak88: problem combining muzzles
« Reply #2 on: 13 Jul 2003, 22:29:44 »
thanks but that wonÂ't help cause it has nothing to do with the weapon.
it only applies to vehicle classes.
but i figured it out. AI didnÂ't wanna shot my dummy bullet (hit=0)! :P