AI doesn't use Wrist Tri-Shot?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
razac920
2nd Lieutenant
2nd Lieutenant
Posts: 365
Joined: Sun Jan 16, 2011 12:42 am

AI doesn't use Wrist Tri-Shot?

Post 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?
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

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

Post 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.
Dreadnot9
Chief Warrant Officer
Chief Warrant Officer
Posts: 341
Joined: Wed Jun 06, 2012 2:05 pm
Projects :: Rising Conflict CW v2.0
Games I'm Playing :: Skyrim TF2 FTL
xbox live or psn: Steam is Dreadnot9

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

Post 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.
razac920
2nd Lieutenant
2nd Lieutenant
Posts: 365
Joined: Sun Jan 16, 2011 12:42 am

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

Post 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.
Dreadnot9
Chief Warrant Officer
Chief Warrant Officer
Posts: 341
Joined: Wed Jun 06, 2012 2:05 pm
Projects :: Rising Conflict CW v2.0
Games I'm Playing :: Skyrim TF2 FTL
xbox live or psn: Steam is Dreadnot9

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

Post by Dreadnot9 »

My mistake. Glad you solved your problem.
Post Reply