• Advertisement

Archived

This topic is now archived and is closed to further replies.

Controlling Timing..

This topic is 6472 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi everyone! If u know Mechcommander or any other game where there aren''t too much units to control, maybe my Q wuold be more easily to answer. The Q is: how to control timing of firing ? Like in Mech i got 3 small laser, 4 PPC''s, 5 Long range Rockets and 1 AutoCannon.. So, how can I control each one in terms of timing? Like, laser shoots every 3d second, rocket - 4th and so on.. Do I have to make a lot of timers (would be not good) for each weaponor there is another way like flag?? Thanks who will answer!! I''ll try to help anyone if someone will try to answer mine or not.. just ask!!

Share this post


Link to post
Share on other sites
Advertisement
Forget about random timing, use some form of fuzzy state machine with a series of heuristics to decide what to fire and when. Each weapon has a different set of attributes. Total range, damage, amount of ammunition, accuracy (at different ranges). There will always be a best answer, the laser is overheating so use the autocannon. The target''s far away use the LRR, the target''s moving fast use a fast moving weapon. Each weapon will also have a firing rate inhibiting when it can be fired and there will also be situations when the heuristics decide that no weapon should be fired due to a a lack of need or lack of an appropriate gun.

Make sense?

Mike

Share this post


Link to post
Share on other sites
Thanks for that!!
I already got one answer from a guy and I will try to combine yours and his together, ok??
So, nobody will fell his misuse..
You all help me a lot...
Here is another Q: If I want to make animated tiles, where''s the best place to find them??
THANKS A LOT!!

Share this post


Link to post
Share on other sites

  • Advertisement