mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
20 lines
506 B
Python
20 lines
506 B
Python
import random
|
|
|
|
from dcs.vehicles import AirDefence
|
|
from game import db
|
|
from gen.sam.group_generator import GroupGenerator
|
|
|
|
|
|
class GenericSamGroupGenerator(GroupGenerator):
|
|
"""
|
|
This is the base for all SAM group generators
|
|
"""
|
|
|
|
@property
|
|
def groupNamePrefix(self):
|
|
# prefix the SAM site for use with the Skynet IADS plugin
|
|
if self.faction == self.game.player_name: # this is the player faction
|
|
return "BLUE SAM "
|
|
else:
|
|
return "RED SAM "
|