Page 1 of 1

AI doesn't use Wrist Tri-Shot?

Posted: Wed Aug 01, 2012 5:07 pm
by razac920
In a map I'm working on I have a CIS SBD unit whose only weapon is the Wrist Tri-Shot. I noticed that this unit essentially NEVER fired its gun. I found this odd since I haven't modified the stock weapon in any way. So I looked at its ODF and discovered that it contains the lines:

MinRange = "0"
OptimalRange = "0"
MaxRange = "0"

Is this normal? I don't *think* I've messed around with my assets ever... But it doesn't seem right to me. I took the default lines from com_weap_inf_shotgun:

MinRange = "0"
OptimalRange = "24"
MaxRange = "48"

plugged them in, and now it works just fine. But still, was the wrist tri-shot intended to be a human only weapon? And if not, my assets must be corrupted, so does anyone know the "proper" values for this weapon?

Re: AI doesn't use Wrist Tri-Shot?

Posted: Wed Aug 01, 2012 5:26 pm
by Bob
The values in my assets are the same and I'm 100% sure that I've never changed them. So yes, the AI aren't supposed to use it. Maybe it caused problems with the game balance since the Trishot is somewhat better than the Clone Rifleman's Blasterpistol.

Re: AI doesn't use Wrist Tri-Shot?

Posted: Wed Aug 01, 2012 6:20 pm
by Dreadnot9
Try adding these lines to the weapon's odf:
Hidden/Spoiler:
BarrageMin = "3"
BarrageMax = "8"
BarrageDelay = "1"
That should make the AI fire them a bit more.
You can of course adjust the numbers to suit your fancy.

Re: AI doesn't use Wrist Tri-Shot?

Posted: Wed Aug 01, 2012 7:13 pm
by razac920
Bob, thank you for clearing that up for me.

Dreadnot9, yes, those lines can get AI to fire their guns more often, but I had noticed that they weren't firing at ALL, and instead were just running up to me/each other. This must have been them trying to get to Range = 0 (which is impossible) to shoot, and never reaching it. Since changing the range values for the tri-shot, though, they now behave normally, shooting from a distance. So thanks, but that code isn't necessary; plus, no one can shoot the tri-shot more than twice at a time due to it overheating.

Thread solved.

Re: AI doesn't use Wrist Tri-Shot?

Posted: Wed Aug 01, 2012 7:58 pm
by Dreadnot9
My mistake. Glad you solved your problem.