Is class behavior hard coded?

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
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Is class behavior hard coded?

Post by wishihadaname »

Theoretically speaking, is it possible to create custom unit class behavior sets? For example, the scout is the only unit class that uses sniper nodes. Give any unit the designation of scout and it will try to be a sniper. On the flipside, engineer is the only unit class that repairs building given it has a fussion cutter. Giving a fussion cutter to a soldier does not make it repair buildings. These preset behaviors are starting to be a problem for me because I somewhat re-made the classes in my current mod. The Engineer is responsible for repairs, fighting with a shotgun, giving out extra ammo, dropping auto-turrents, and dropping deployable cover. Two of the five functions are based on the scout (the deployable cover is just an auto-turret firing an enlarged droideka shield) and the other functions are based on the engineer. I was wondering if there was any way to combine the properties of those two class behaviors so that the AI would make the most of this class.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Is class behavior hard coded?

Post by DarthD.U.C.K. »

these unittypes are hardcoded, i dont think you can mix them. if you would put two unittype commands in the odf the later would override the first.
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: Is class behavior hard coded?

Post by CressAlbane »

I'm not sure if I understand the meaning, but could you place sniper nodes and designate the weapon you want the AI to use there as a sniper rfile?
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Is class behavior hard coded?

Post by THEWULFMAN »

CressAlbane wrote:I'm not sure if I understand the meaning, but could you place sniper nodes and designate the weapon you want the AI to use there as a sniper rfile?

The way that works is the weapon with the longest range gets used by the AI when its opponent is in the range of that weapon. The sniper nodes tell the AI to stop there and wait for a target.
Post Reply