Page 2 of 2

Re: MonsterHunt: Coding weapon/ammo exchange

Posted: Mon May 07, 2018 6:52 pm
by Aldebaran
Barbie wrote:I noticed the same if you give them a WarheadLauncher. They don't shoot or shoot just one time.
I just played MH-Kuratorium. I have swapped OLquadshot with TheMiner. Now I had a look to the Skaarj right before I started the match.
And I saw that he shoot all his ammo (here mines) out of the weapon although no opponent was in sight.
My conclusion is that this Skaarj simply has not enough ammo if opponents will fight against them later and they get no new ammo reloaded.

Re: MonsterHunt: Coding weapon/ammo exchange

Posted: Mon May 07, 2018 7:34 pm
by OjitroC
Aldebaran wrote:... I have swapped OLquadshot with TheMiner. Now I had a look to the Skaarj right before I started the match.
And I saw that he shoot all his ammo (here mines) out of the weapon although no opponent was in sight.
My conclusion is that this Skaarj simply has not enough ammo if opponents will fight against them later and they get no new ammo reloaded.
I think it is a problem with the Miner rather than the Skaarj - I noticed that, when playing TDM, bots would spam mines continuously; it became so annoying that I eventually stopped using the Miner.

Re: MonsterHunt: Coding weapon/ammo exchange

Posted: Mon May 07, 2018 8:16 pm
by papercoffee
OjitroC wrote:
Aldebaran wrote:... I have swapped OLquadshot with TheMiner. Now I had a look to the Skaarj right before I started the match.
And I saw that he shoot all his ammo (here mines) out of the weapon although no opponent was in sight.
My conclusion is that this Skaarj simply has not enough ammo if opponents will fight against them later and they get no new ammo reloaded.
I think it is a problem with the Miner rather than the Skaarj - I noticed that, when playing TDM, bots would spam mines continuously; it became so annoying that I eventually stopped using the Miner.
Really? I played many matches of CTF and TDM with bots and NW3 and never had this problem. They rather avoided to use the miner if they collected them.

Re: MonsterHunt: Coding weapon/ammo exchange

Posted: Mon May 07, 2018 8:24 pm
by OjitroC
papercoffee wrote: Really? I played many matches of CTF and TDM with bots and NW3 and never had this problem. They rather avoided to use the miner if they collected them.
Yes - I've watched (and heard) bots firing mines continuously in a number of matches - but it's interesting that you haven't had this problem - not sure what the explanation is.

Re: MonsterHunt: Coding weapon/ammo exchange

Posted: Mon May 07, 2018 8:33 pm
by papercoffee
OjitroC wrote:
papercoffee wrote: Really? I played many matches of CTF and TDM with bots and NW3 and never had this problem. They rather avoided to use the miner if they collected them.
Yes - I've watched (and heard) bots firing mines continuously in a number of matches - but it's interesting that you haven't had this problem - not sure what the explanation is.
I'll try to reproduce it.
I know that bots tend to shoot with the Miner like any regular weapon ...but never did I hear or see it shooting the mines without an enemy in sight. :noidea

Re: MonsterHunt: Coding weapon/ammo exchange

Posted: Mon May 07, 2018 11:31 pm
by Feralidragon
:mrgreen:

Most are probably not aware of this, but there's a fair amount of AI code which does not reside in the bots, but in the weapons themselves.
For example, the standard UT Pulse Gun is the one which has the necessary AI code to "teach" a bot how to use and sustain the beam. By default a bot doesn't know how to handle a Pulse Gun.

In the same fashion, any weapons in this pack which are not just "shoot & kill" require at least some rudimentary level of AI built into them, so the bots use them how they are supposed to.
In the case of the Miner, since it's mostly a weapon to lay explosive traps to enemies rather than to engage directly, I made it so that they would randomly shoot the weapon sometimes in order to lay down some traps, to have yourself and the other bots/players to be careful and check their step, otherwise you get caught by an explosive surprise (which is the whole point).

The Miner AI code is not exactly brilliant by any means, it's mostly a rudimentary randomization where the bots will just shoot it in random directions at random times, and it may be the case where if this is the only weapon a pawn has (bot or monster), once it runs out of ammo the bot can no longer fire it (similar to the Redeemer problem you guys mentioned before).
But on the other hand, if the map is small enough, you may get caught by their mines they just placed.

Re: MonsterHunt: Coding weapon/ammo exchange

Posted: Tue May 08, 2018 6:11 am
by sektor2111
"All time" problem of WarHeadLauncher is that ammoamount which is 0, that's why Skaarj won't shoot it or shoots very rare, not in my mods, where that dumb thing is adjusted or... guess well... a new Skaarj root will deal with it way different... :wtf: