Detpack question

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
nobody3
Rebel Sergeant
Rebel Sergeant
Posts: 188
Joined: Wed Jun 15, 2011 8:30 am

Detpack question

Post by nobody3 »

Would it be possible to make AI use detpack against infantry? And if it is possible, would it also be possible to make the AI throw them ? thanks

And second question(I dont wanna spam your forum with new topics)
Are there any other ways to make AI smarter/stronger/deadlier by editing odf? I know of making them more accurate/giving them more health and increasing weapon damage.

To be more specific I'm trying to make engineer bots more deadly(than they already are lol) so I'm editing shotgun odf.

What I'd want to do is make them fire shotguns without delays, I found this

Code: Select all

BarrageMin
BarrageMax
BarrageDelay
that does what I want (i think so at least) but I didn't find this in weapon odf of shotgun, any ideas?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Detpack question

Post by Fiodis »

I've seen the stock AI place detpacks at their feet, wait two seconds, then blow them up. So they do use them, albeit a little incorrectly. Throwing isn't exactly what detpacks were meant for, so I doubt you can teach the AI to do that.
nobody3 wrote:I didn't find this in weapon odf of shotgun, any ideas?
Add it in yourself?
nobody3
Rebel Sergeant
Rebel Sergeant
Posts: 188
Joined: Wed Jun 15, 2011 8:30 am

Re: Detpack question

Post by nobody3 »

what if I changed velocity or max pressed time or something else? and I know that rarely they use it but cant I make them use it more? maybe as much as thermal detonators?

and about that adding thing I'm not sure because I'm only hex editing (I'm doing changes to dedicated server on ps2 with it) and so far changing values worked pretty well, I even managed to allow Ai to spawn only as engineers(Its not difficult on pc with mod tools I know)

anyway do you think if I overwritten a already set value from shotgun odf with barrage thing it may work?
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Detpack question

Post by Noobasaurus »

I'm pretty sure you can make the AI better, I think it may be this:

Code: Select all

AIBubbleSizeMultiplier	= "0.6"
Increase that maybe. (Found in the .odf files of guns) I also am fairly sure that the AI difficulty can be edited via lua, along with other AI aspects.
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Re: Detpack question

Post by Nedarb7 »

Maybe if he was using the mod tool but:
nobody3 wrote:nd about that adding thing I'm not sure because I'm only hex editing (I'm doing changes to dedicated server on ps2 with it)
nobody3
Rebel Sergeant
Rebel Sergeant
Posts: 188
Joined: Wed Jun 15, 2011 8:30 am

Re: Detpack question

Post by nobody3 »

I know of that already as I said in my first post (making them more accurate)
also what is AutoAimSize?
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: Detpack question

Post by Dakota »

Noobasaurus wrote:I'm pretty sure you can make the AI better, I think it may be this:

Code: Select all

AIBubbleSizeMultiplier	= "0.6"
Increase that maybe. (Found in the .odf files of guns) I also am fairly sure that the AI difficulty can be edited via lua, along with other AI aspects.
That would make their aim worse, decrease it instead.


auto aim size basically does the same thing but with a different aim system, as far as i know. The bubblesizemultiplier is used for "aiusebubbles" or something like that, its found in the sniper rifle odf i know.



Note: I once set the AIBubbleSizeMultipliers on all guns to between 0 and .25 (depending on gun) for all guns and used it on a dedicated server i had made, people were rage quitting the whole day.
nobody3
Rebel Sergeant
Rebel Sergeant
Posts: 188
Joined: Wed Jun 15, 2011 8:30 am

Re: Detpack question

Post by nobody3 »

Haha I've set it up for shotgun and sniper so far because I can't find it in other weapon's odf's did you use mod tools to do that thing for all weapons?
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Detpack question

Post by Noobasaurus »

Yeah, you just open the .odf file of the gun you want and add it in under

Code: Select all

[Properties]
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: Detpack question

Post by Dakota »

nobody3 wrote:Haha I've set it up for shotgun and sniper so far because I can't find it in other weapon's odf's did you use mod tools to do that thing for all weapons?

indeed i did, i simply spent an hour or two using copy and paste
Post Reply