The ODFs have a parameter called UnitType which affects the AI behaviour. Does anyone know if there's any documentation or thread which compares how the different UnitType options behave? So far, I've only found bits and pieces about some of them.
Edit: I actually have some more specific questions related to this. Which UnitType options will slice into vehicles with a fusion cutter (if it affects this behaviour at all)? Does UnitType affect mines and detpacks?
UnitType ODF parameter
Moderator: Moderators
-
- Corporal
- Posts: 151
- Joined: Thu Jan 24, 2019 11:02 pm
- Projects :: No Mod project currently
- xbox live or psn: No gamertag set
-
- Jedi
- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: UnitType ODF parameter
I think the engineer's unit type will slice into stuff. I also think it affects whether they want to place a mine or not. I think the standard trooper unittype makes it more keen to try to doge your fire too? I don't really know. I did some digging on this in the forums a while ago.
-
- Corporal
- Posts: 151
- Joined: Thu Jan 24, 2019 11:02 pm
- Projects :: No Mod project currently
- xbox live or psn: No gamertag set
Re: UnitType ODF parameter
Done some digging of my own, and I'm dumping all the information I've found for future reference. I haven't tested any of this. A lot of the stuff people have written about UnitType starts with "I think..." "If I remember..." etc. Or it's something that I've only seen posted once. So I'm writing claim before the things which don't have much evidence, and linking all the sources (links in italics).
This is all about AI behaviour unless stated otherwise. ie. It doesn't apply to human players.
Hint Nodes
UnitType ODF parameter
Trooper
Bonus: The ODF parameter AISizeType will change what path a unit follows ie. When people are making maps, they can (and usually do) add filters to the AI pathing so that it only affects a specific AISizeType. It's not relevant to the UnitType parameter; it's just something else to be aware of.
Psych0Fred Docs: AI related docs folder.
All links:
Updated: 10/12/2021
This is all about AI behaviour unless stated otherwise. ie. It doesn't apply to human players.
- Psych0Fred Doc: Description of several hint nodes. (Missing VehicleCover). This has all the information that isn't listed below.
- Claim: This is completely broken.
- Documentation suggests that it is supposed to be used to make flyers land. This is also the assumption made in most of the threads I've seen.
- Claim: This hint node tells jet troopers where to land. (note: I don't believe this claim but I haven't tested it.)
- Claim: Only affects the Scout UnitType. (Source 2: http://www.secretsociety.com/forum/down ... 0Nodes.txt) (Source 3: ZeroEditor_guide doc) (note: Probably the most verified claim. There are docs to back this up, but they don't explicitly mention the UnitType ODF parameter.)
- Claim: Only used with the Conquest AI goal. (Source 2: viewtopic.php?p=527015#p527015) (note: Both sources come from the same person.) (contradiction: One of the docs recommends defensive AI goals with this node.)
- Claim: Forces units to switch to their longest range weapon.
- Tutorial: viewtopic.php?p=345696#p345696 (Includes a description of VehicleCover.)
- Claim: Node represents where the unit is standing when it throws the mine, not where the mine will land.
- Claim: This affects most dispensers, and works for every UnitType.
- I keep finding references to a suicidal detpack problem with this hint node.
Trooper
- Claim: Won't use the health and ammo dispenser at all. (From a test.)
- Doesn't do repairs. (Verified.)
- Claim: Doesn't slice into vehicles. (From a test.)
- Claim: Units with the Trooper UnitType will more aggressively push objectives than ones with the Assault UnitType.
- Assumption: Does something extra with the rocket launcher. (reason: The ODF parameter doc. See below.)
- Claim: Won't use the health and ammo dispenser at all. (From a test.)
- Doesn't do repairs. (Verified.)
- Claim: Doesn't slice into vehicles. (From a test.)
- Claim: More likely to take cover. ie. Potentially more responsive to the Cover hint node.
- Assumption: Does something extra with the rocket launcher. (reason: The ODF parameter doc. See below.)
- Claim: Won't use the health and ammo dispenser at all. (From a test.)
- Doesn't do repairs. (Verified.)
- Claim: Doesn't slice into vehicles. (From a test.)
- Claim: The only UnitType that will use the Snipe hint node. (Very likely, see above.)
- Claim: Won't use the health and ammo dispenser at all. (From a test.)
- Doesn't do repairs. (Verified.)
- Claim: Doesn't slice into vehicles. (From a test.)
- Activates the PilotRepairScale parameter in space vehicles. ie. Space vehicles won't self-repair unless they are being flown by a unit with the Pilot UnitType. (Source 2: viewtopic.php?p=529867#p529867) (note: Claim verified. Unique to Pilot. It also works like this for human players.)
- Will actively seek other players so it can dispense health and ammo. (Claim verified.)
- One of the only UnitType values that uses the fusion cutter to do repairs. (Source 2: viewtopic.php?p=527015#p527015) (Claim verified.) It may only do repairs under certain AI goals. (See source 2.)
- Slices into vehicles with the fusion cutter. (Verified.)
- Will actively seek other players so it can dispense health and ammo. (Verified.)
- One of the only UnitType values that uses the fusion cutter to do repairs. (Verified.)
- Slices into vehicles with the fusion cutter. (Verified.)
- 3 of the officers use this UnitType, and I haven't come across a reason why. Also note that the Bothan Spy doesn't use this UnitType.
- I don't know how this behaves differently to Pilot on land maps. So why are they both used?
- Will actively seek other players so it can dispense health and ammo. (Verified.)
- One of the only UnitType values that uses the fusion cutter to do repairs. (Verified.)
- Slices into vehicles with the fusion cutter. (Verified.)
- Will actively seek other players so it can dispense health and ammo. (Verified.)
- One of the only UnitType values that uses the fusion cutter to do repairs. (Verified.)
- Slices into vehicles with the fusion cutter. (Verified.)
- I've seen a few threads which mention this:
It's taken from Psych0Fred's ODF parameters doc. Under the Soldier class, if you scroll down to the bottom of it's parameters you will eventually find that list. The document isn't laid out very well and I didn't trust this information at first. But I've tested 2 things based on this extract so far and they've both been true. 1) Repair, Anti-Armor and Special are real values of UnitType. 2) The Special UnitType will do repairs with the fusion cutter and the Anti-Armor won't. So it looks like this really is a list of the different UnitType values. I still don't know why it's not placed under UnitType in the doc; it's a messy doc.
Code: Select all
Scout Anti-Armor rocket Assault rocket Repair Support repair Pilot Trooper Special - repair
Bonus: The ODF parameter AISizeType will change what path a unit follows ie. When people are making maps, they can (and usually do) add filters to the AI pathing so that it only affects a specific AISizeType. It's not relevant to the UnitType parameter; it's just something else to be aware of.
Psych0Fred Docs: AI related docs folder.
All links:
Hidden/Spoiler:
Last edited by Sporadia on Fri Dec 10, 2021 12:28 am, edited 9 times in total.
-
- Jedi
- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: UnitType ODF parameter
Much appreciated research!
-
- Corporal
- Posts: 151
- Joined: Thu Jan 24, 2019 11:02 pm
- Projects :: No Mod project currently
- xbox live or psn: No gamertag set
Re: UnitType ODF parameter
I've taken a look at this to see if these are real UnitType values:
Code: Select all
Scout
Anti-Armor rocket
Assault rocket
Repair
Support repair
Pilot
Trooper
Special - repair
See Test:
Hidden/Spoiler:
I tested every UnitType to see if it could repair space vehicles. The only one which could was the Pilot.
I've also extended test 1 to see how the other UnitType values behave.
See Test:
Hidden/Spoiler:
Last edited by Sporadia on Thu Dec 09, 2021 11:53 pm, edited 1 time in total.
-
- Jedi
- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: UnitType ODF parameter
so whats the difference between "assault rocket" and "assault"?
-
- Corporal
- Posts: 151
- Joined: Thu Jan 24, 2019 11:02 pm
- Projects :: No Mod project currently
- xbox live or psn: No gamertag set
Re: UnitType ODF parameter
Question:
"assault rocket" doesn't work. At this point I think the word rocket is pointing out that the AI does something special with the rocket launcher for Assualt and Anti-Armor. Same as the word repair in support repair. Edit: But since it doesn't say pilot repair I'm not sure it's that reliable.
Answer:MileHighGuy wrote: ↑Thu Dec 09, 2021 11:52 pmso whats the difference between "assault rocket" and "assault"?
Code: Select all
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\EntitySoldier.cpp(11349)
Unrecognized UnitType "assault rocket" in soldier "tes_inf_cisguy"
Last edited by Sporadia on Fri Dec 10, 2021 12:40 am, edited 1 time in total.
-
- Jedi
- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: UnitType ODF parameter
okay, interesting!
EDIT: I wonder if you could decipher the full list of unit types by looking for their strings in the decompiled game exe?
EDIT: I wonder if you could decipher the full list of unit types by looking for their strings in the decompiled game exe?