How should i use DamageTeam & DamageTeamType? What is the interaction between those two. There are present damageTeamTypes from like assistant, friendly, enemy, what entity they are refering? Friendly towards what? a player? And how come the aggressive flag comes into play How many DamageTeams there are? There is also something like hostileDamageTeam
I believe everything is relative towards the player. I believe the teams are such that you don't damage(usually) those on your team.
based on my experience with these i believe it works like this. Damage teams are theoretically infinite, i have found use of 0 through 3 in default files. Arbitrary assignment. Types are all relative to player, entities cannot hurt other entities they share a type and team number with. Unsure about aggressive and hostileDamageTeam. There is a TeamType 'environment' which hits all friendly and assistant and no enemies.
Precision is of uttermost importance here. Did you mean following: entites with { damageTeamType : environment, damageTeam: X } can hit {damageTeam: any Y, damageTeamType: firendly or assistant } ??