Question about better aiming

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
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Question about better aiming

Post by Dakota »

I was looking for a quicker way to make ai aim better than setting bubble sizes for ai aimming on each weapon so i went to the common folder and went com_inf_default and looked at these lines:

AimValue = "1.0"
AimFactorPostureSpecial = 50
AimFactorPostureStand = 100
AimFactorPostureCrouch = 140
AimFactorPostureProne = 160
AimFactorStrafe = 60
AimFactorMove = 70

Would inceasing the values just make them aim better, and could someone tell me exactly what the AimValue means? I can see that each of the other ones are for a different pose, and that special is the worse at aim, and prone is best (now crouch in swbf2), but I just am wondering what would I have to set it to to give them perfect aim.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: quick question on aimming

Post by Marth8880 »

My guess is that AimValue is a multiplier for the AimFactor parameters. I'll try mucking with it to see what happens.


EDIT:

Hmm, changing AimValue to 2.0 didn't seem to change anything... I'll do a little more research on it later.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: quick question on aimming

Post by lucasfart »

I'm not sure if this specifically influences aiming, but i don't see why not:
http://www.secretsociety.com/forum/down ... culty.html.

It's really worth having a look through Psychofreds docs, as there is quite a lot of handy stuff in them....

http://www.secretsociety.com/forum/downloads/BF2Docs/

@ Marth - Try changing it to something extreme - you're more likely to notice a difference in your sides if you make it an extreme value

@ Dakota - Try 1000. :P If they still aren't aiming perfectly, try 10,000. Repeat till desired effect is achieved. :D
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: quick question on aimming

Post by Dakota »

i'll probably do that. i was asking this in advance for my next mod i was making.

Side-Note: in my other one i would just change the bubblesizes for aimming on all weapons like i said before (look at sniper rifle for bubble reference). it simply took awhile but setting the bubble to 0 would give almost perfect aim, using the infinite jets in my mod would be a horrible idea if there are any snipers on the map.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Question about better aiming

Post by AceMastermind »

AimValue
AimFactorPostureSpecial
AimFactorPostureStand
AimFactorPostureCrouch
AimFactorPostureProne
AimFactorStrafe
AimFactorMove
Those properties are missing from ODF Parameters.txt on psych0fred's message board but are obviously found in a few ODFs.
Soldier, Walker and CommandWalker classlabels seem to support some or all of them but I have not tested anything here.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Question about better aiming

Post by Dakota »

So no one has tested this and made a document for it? I was actually expecting someone to want the ai to be even better than elite difficulty (they are still pretty weak at that level) and not have to do a bunch of stuff for it.

When I clear out a bit of space on my harddrive I'll probably start up the munger and start testing.

This could be pretty good if i ever wanted to make a nice sniper war server mod with ai. While we are speaking about aimming, I just have to wonder at about what level is the average swbf2 player at aimming in comparison to an ai.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Question about better aiming

Post by THEWULFMAN »

Dakota wrote:I was actually expecting someone to want the ai to be even better than elite difficulty (they are still pretty weak at that level) and not have to do a bunch of stuff for it.

AIBubbleCircle works very well for that purpose, my beta testers generally get their butt kicked when they try out BF3. The damage values are similar to stock as well, sometimes weaker than stock. Barrage + AIBubbleCircle makes a very deadly combo.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Question about better aiming

Post by Marth8880 »

THEWULFMAN wrote:Barrage + AIBubbleCircle makes a very deadly combo.
Exactly correct. As WULF may know, my mod's Geth Prime is a deadly predator; it wields a powerful weapon, the M-76 Revenant Machine Gun, it has a ton of armor, but the unit moves at a very slow speed (it's 12 feet tall :P). It fires minimum of 24 shots and a maximum of 50 shots per barrage with a delay of 2 seconds between barrages.
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: Question about better aiming

Post by CressAlbane »

I think those might be values for how much your bullets will deviate in those positions.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Question about better aiming

Post by lucasfart »

I just noticed in the doc I linked to on difficulty, that it mentions easy, medium and hard, but aren't there only two difficulties ingame? Does this mean that medium difficulty is useless?
This works just like the above, but only for a specific profile setting. So if you want to leave medium alone, but make hard mode harder, you could do:

SetAIDifficulty(0, 3, "hard")
The last value can be "easy", "medium", or "hard".
It's also worth noting that if you wish to change the difficulty you must add the line

Code: Select all

DisableAIAutoBalance()
BELOW your SetAIDifficulty line. If you don't add it below, the custom difficulty does not take effect.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Question about better aiming

Post by Dakota »

lucasfart wrote:I just noticed in the doc I linked to on difficulty, that it mentions easy, medium and hard, but aren't there only two difficulties ingame? Does this mean that medium difficulty is useless?
This works just like the above, but only for a specific profile setting. So if you want to leave medium alone, but make hard mode harder, you could do:

SetAIDifficulty(0, 3, "hard")
The last value can be "easy", "medium", or "hard".
It's also worth noting that if you wish to change the difficulty you must add the line

Code: Select all

DisableAIAutoBalance()
BELOW your SetAIDifficulty line. If you don't add it below, the custom difficulty does not take effect.

i thought there were 3 levels in the ps2 version but i'm not really sure on it. all i know is that elite is hard and normal is most likely medium. they probably could have taken out the easy setting.
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Question about better aiming

Post by ARCTroopaNate »

It feels like Elite is easy and normal is so-unbelievably-easy-it-will-blow-your-mind. :yes: I wasn't aware that there were three settings though, it thought there were only two...
Post Reply