Author Topic: Bot and shooting  (Read 1517 times)

0 Members and 2 Guests are viewing this topic.

Offline Szaman

  • Soldier
  • **
  • Posts: 145
Bot and shooting
« on: April 17, 2014, 03:51:13 pm »
Hi,

When the bot is too far from the player and his bullets can not reach the enemy (player) the bot should - in my opinion - try to get closer to the enemy and then shoot again.
The attached picture shows the problem - bot is sitting there and shooting pointlessly, even if it's hit by a player.

It would be nice if bot could be more intelligent ;)

Best regards,
Szaman.

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Bot and shooting
« Reply #1 on: April 17, 2014, 04:51:15 pm »
... or it should run away, depending on it's health and ammo status, whenever it's carrying flag, current terrain conditions, positions of possible teammates and so on. Yes, bots could be more intelligent, i agree but as you can see this isn't exactly simplest thing to code. Although anything would be better than current implementation i guess, maybe except no implementation.
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Bot and shooting
« Reply #2 on: April 17, 2014, 06:50:15 pm »
Do you think it is remotely feasible to even consider scriptable bots in the distant future? (anything from "go left for X time" to "go to location X" or something)

Offline Szaman

  • Soldier
  • **
  • Posts: 145
Re: Bot and shooting
« Reply #3 on: April 18, 2014, 01:32:25 am »
For me it would be great if bots could be scriptable :)
One more option in bot ini file:
Code: [Select]
custom_engine=bot.pas
And in bot.pas (example made without deep thinking about API :p):
Code: [Select]
procedure OnEnemySpotted(ID : integer);
procedure OnEnemyKill(ID : integer);
procedure OnEnemyDamage(ID : integer, Damage : integer, Weapon : integer);
procedure OnMyDamage(ID : integer, Damage : integer, Weapon : integer);
...
procedure OnMyFlagGrabbed(ID : integer);
procedure OnMyFlagDropped(ID : integer);
procedure OnOtherFlagGrabbed(ID : integer, FlagID : integer);
procedure OnOtherFlagDropped(ID : integer, FlagID : integer);
...
procedure OnTargetCrouch(ID : integer);
procedure OnTargetLayDown(ID : integer);
...

It would be really useful :)

Offline nosejj

  • Camper
  • ***
  • Posts: 432
    • Soldat Discord!
Re: Bot and shooting
« Reply #4 on: April 18, 2014, 02:16:34 am »
To be honest, I never quite understood why bots in Soldat can't provide a good level of gameplay.
When I first tried games like unreal tournament on the hardest level, I just said wow comparing to Soldat's bots.

Offline smiluu

  • Flagrunner
  • ****
  • Posts: 673
  • Put your farts in my pussy
    • LOLOKAUST MSPAINT PLEASURE POND
Re: Bot and shooting
« Reply #5 on: April 18, 2014, 02:38:28 pm »
It would be nice if bots would actually see the enemies from behind polygons like players do and then be able to predict projectiles to hit them as they walk into line of fire. 

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Bot and shooting
« Reply #6 on: April 20, 2014, 10:38:11 am »
Yeah bots need some improvements.
I'm not sure if Falcon or ExHunter want to work on this though. It's up to them.

There are a lot of possible things one could implement (bots following players, giving replies, tutorials for new players, story mode servers).

It would be nice if bots would actually see the enemies from behind polygons like players do and then be able to predict projectiles to hit them as they walk into line of fire. 
Yes it should be possible to limit the view of the bot to the real players view or to the actual view in realistic (or even non limited view for special use cases).
Rules
Tools: ARSSE - SARS - SRB - chatMod