Bot Questions - Hmm Azian Samurai X - Tue Jul 13, 2004 9:23 pm Post subject: Hmm
How do I make bots actually Die!!! if you shoot them. When I put them on turret mode, they just shoot at nmes have 0 nrg so they can never die... Any plugins for bots to die?
CypherJF - Tue Jul 13, 2004 10:17 pm Post subject:
Make a plugin that detect's a bots supposive energy; subtract weapon hits; add recharge, you've got a deathable bot. Matzke - Tue Jul 13, 2004 10:24 pm Post subject:
i think there's some out there, maybe not on sites but i think 50% PL has one, cause Wormhole Surfer told me he made one for the one in his zone SSZ Sin City(3D) and there's two bots there that have energy and die
50% Packetloss - Wed Jul 14, 2004 12:12 am Post subject:
Both bots that detect damage are mine, Sin City and Monster bot in MK. Its not as simple as the *watchdamge because bots dont send that packet. So what has to be done is to calculate where a weapon is going in event_playerweapon. A player fires a weapon, i use some of catid's forumlas in SSBot2 to figure out where the bullet/bomb is going. Then a formula to judge if the weapon was close enough to the ship's diameter to impact. If a weapon is going to hit, it calculates damage and then the time it will take for the weapon to get to the bot's location. Then in event_positionhook it will go through the weaponlist to calculate any damage if a weapon hit.
The formulas are far from perfect and there is a lot to add still. Plus i need to go back through the code and fix some stuff, but for Sin City's purposes it works perfect.
Mr Ekted - Wed Jul 14, 2004 12:55 am Post subject:
You also have to factor in shrapnel, weapon/shrap bounce, proximity, weapons hitting other ships, etc.
50% Packetloss - Wed Jul 14, 2004 1:24 am Post subject:
yah, there is a lot that it cant do. It takes bullet and bomb damage if they hit directly. No bouncie anything, no repping bombs into it, no mines, no thors, there is an endless amount of code that would be required for the bot to keep track of everything.
Azian Samurai X - Wed Jul 14, 2004 8:09 am Post subject:
lol complex
D1st0rt - Wed Jul 14, 2004 9:44 am Post subject:
Maybe priit could release some of his physics engine? (lol)
50% Packetloss - Wed Jul 14, 2004 10:23 am Post subject:
nah, its not hard to figure out. Just lots of writting and some trig