Merge remote-tracking branch 'upstream/develop'

into skynet-iads-plugin
This commit is contained in:
David Pierron
2020-10-26 18:05:07 +01:00
parent 33fa719e8d
commit e0319a4047
160 changed files with 6125 additions and 5838 deletions

View File

@@ -8,21 +8,18 @@ from dcs.unit import Vehicle
class GroupGenerator():
def __init__(self, game, ground_object, faction = None):
def __init__(self, game, ground_object, faction = None): # faction is not mandatory because some subclasses do not use it
self.game = game
self.go = ground_object
self.position = ground_object.position
self.heading = random.randint(0, 359)
groupNamePrefix = self.getGroupNamePrefix(faction)
self.vg = unitgroup.VehicleGroup(self.game.next_group_id(), groupNamePrefix + self.go.group_identifier)
self.faction = faction
self.vg = unitgroup.VehicleGroup(self.game.next_group_id(), self.groupNamePrefix + self.go.group_identifier)
wp = self.vg.add_waypoint(self.position, PointAction.OffRoad, 0)
wp.ETA_locked = True
def getGroupNamePrefix(self, faction):
if not faction:
return ""
@property
def groupNamePrefix(self):
return ""
def generate(self):