mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
first working version of the skynetiads plugin
This commit is contained in:
@@ -8,16 +8,23 @@ from dcs.unit import Vehicle
|
||||
|
||||
class GroupGenerator():
|
||||
|
||||
def __init__(self, game, ground_object):
|
||||
def __init__(self, game, ground_object, faction = None):
|
||||
self.game = game
|
||||
self.go = ground_object
|
||||
self.position = ground_object.position
|
||||
self.heading = random.randint(0, 359)
|
||||
self.vg = unitgroup.VehicleGroup(self.game.next_group_id(), self.go.group_identifier)
|
||||
groupNamePrefix = self.getGroupNamePrefix(faction)
|
||||
self.vg = unitgroup.VehicleGroup(self.game.next_group_id(), 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 ""
|
||||
|
||||
return ""
|
||||
|
||||
def generate(self):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user