Jump to content
Sign in to follow this  
Ares1978

Enemy ignoring an object

Recommended Posts

This has probably been asked and answered before, but I didn't find any thread about it.

I have made a static gun, and the enemy ignores it completely. Neither tanks nor planes shoot at it. What is the cause? I remember other addons initially having the same problem, but these were corrected in later versions.

Share this post


Link to post
Share on other sites

Have you set the threat array in your addon class?

e.g.

class Man: Land{}

{

....

threat[]={1,0.800000,0.200000};

}

Where the array items are for infantry, armour and airborne respectively.

1.0 means maximum threat to infantry (should be targetted first)

0.8 means reasonable threat to tanks

0.2 means minor threat to planes

Share this post


Link to post
Share on other sites

Yes.

Helicopters will attack it, but only with guns and rockets.

Share this post


Link to post
Share on other sites

That didn't do it either.

Tried it from a tank commanders point of view, to command the gunner to engage, but even though the target is identified, they still yell "Negative!" I suspect the problem has something more to do with them not being able to see the gunner, for you see, he is surrounded by the object he sits in.

Share this post


Link to post
Share on other sites

Hmm,

what's the armor member variable set to in the config.cpp?

When I was writing my zombie addon, I set the armor of the zombie to 40.0.

Soldiers would not engage the zombie- they would say "negative" too 0- until I lowered the armor to 4.

Try lowering the armour?

Share this post


Link to post
Share on other sites
Guest

Maybe post your config up...that will help. smile_o.gif

Share this post


Link to post
Share on other sites
Maybe post your config up...that will help.  smile_o.gif

I'd rather not. I'm a bit funny about things like that, don't like to show things I'm still working on. Because I usually screw it up.

I'm pretty sure they are trying to target the gunner and not the gun, but since the model covers the gunner, they just give up. Need to approach the problem from another angle.

edit:

That wasn't it either. Suspecting a modelling fuckup.

Share this post


Link to post
Share on other sites

Have you tried adjusting Cost as well?

Higher costs seems to mean the AI try harder to destroy it

(check the Scud cost in Commented Config.)

Share this post


Link to post
Share on other sites

Woot is .. a vehicle or a man ?? if you would target the vehicle u must adjust the cost and accuracy values if it's a man is the same but u have to adjust the camo value..

Maybe u have forget the FireGeometry lod in your model... but not sure that afect the negative answer..

and not sure the camo or cost or accuracy solve your problem too if u give the target to your gunner and he did not engage by negative answers.. So man woot is your problem lol

It's interesting maybe a new method to disable targeting for smoking vehicles...

If you'll find what is it .. write it here **nice to know ;) it**

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×