def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCustomName('A disabled AT-XT')
	mobileTemplate.setLevel(90)
	mobileTemplate.setDifficulty(Difficulty.ELITE)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1)
	mobileTemplate.setSocialGroup("rebel")
	mobileTemplate.setAssistRange(0)
	mobileTemplate.setStalker(False)
	mobileTemplate.setFaction("rebel")
	mobileTemplate.setFactionStatus(FactionStatus.Combatant)
	mobileTemplate.setOptionsBitmask(Options.ATTACKABLE)
	mobileTemplate.setAIEnabled(False)
	
	templates = Vector()
	templates.add('object/mobile/shared_atxt.iff')
	mobileTemplate.setTemplates(templates)
	
	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/ranged/vehicle/shared_vehicle_atst_ranged.iff', WeaponType.CARBINE, 1.0, 15, 'energy')
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)
	
	attacks = Vector()
	mobileTemplate.setDefaultAttack('gcw_atst_attack_tower')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('rebel_invasion_disabled_atxt', mobileTemplate)
	return
示例#2
0
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('gcw_city_imperial_general')
	mobileTemplate.setLevel(110)
	mobileTemplate.setHealth(1000000)
	mobileTemplate.setDifficulty(Difficulty.BOSS)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1)
	mobileTemplate.setSocialGroup("imperial")
	mobileTemplate.setAssistRange(0)
	mobileTemplate.setStalker(False)
	mobileTemplate.setFaction("imperial")
	mobileTemplate.setFactionStatus(FactionStatus.Combatant)
	mobileTemplate.setOptionsBitmask(Options.INVULNERABLE)
	mobileTemplate.setAIEnabled(False)
	
	templates = Vector()
	templates.add('object/mobile/shared_dressed_imperial_general_m.iff')
	mobileTemplate.setTemplates(templates)
	
	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/ranged/carbine/shared_carbine_e11.iff', WeaponType.CARBINE, 1.0, 15, 'energy')
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)
	
	attacks = Vector()
	mobileTemplate.setDefaultAttack('rangedShot')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('imp_invasion_general', mobileTemplate)
	return
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCustomName('A demoralized imperial soldier')
	mobileTemplate.setLevel(90)
	mobileTemplate.setDifficulty(Difficulty.ELITE)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setSocialGroup("imperial")
	mobileTemplate.setAssistRange(0)
	mobileTemplate.setStalker(False)
	mobileTemplate.setFaction("imperial")
	mobileTemplate.setFactionStatus(FactionStatus.Combatant)
	mobileTemplate.setAIEnabled(False)
	
	templates = Vector()
	templates.add('object/mobile/shared_dressed_stormtrooper_black_white.iff')
	templates.add('object/mobile/shared_dressed_stormtrooper_white_black.iff')
	templates.add('object/mobile/shared_dressed_stormtrooper_white_white.iff')
	templates.add('object/mobile/shared_dark_trooper.iff')
	mobileTemplate.setTemplates(templates)
	
	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/ranged/carbine/shared_carbine_e11.iff', WeaponType.CARBINE, 1.0, 15, 'energy')
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)
	
	attacks = Vector()
	mobileTemplate.setDefaultAttack('rangedShot')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('imp_invasion_demoralized_soldier', mobileTemplate)
	return
示例#4
0
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('gcw_city_offensive_imperial_general')
	mobileTemplate.setLevel(110)
	mobileTemplate.setHealth(1000000)
	mobileTemplate.setDifficulty(Difficulty.BOSS)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1)
	mobileTemplate.setSocialGroup("imperial")
	mobileTemplate.setAssistRange(0)
	mobileTemplate.setStalker(False)
	mobileTemplate.setFaction("imperial")
	mobileTemplate.setFactionStatus(FactionStatus.Combatant)
	mobileTemplate.setOptionsBitmask(Options.CONVERSABLE | Options.INVULNERABLE)
	mobileTemplate.setAIEnabled(False)
	
	templates = Vector()
	templates.add('object/mobile/shared_dressed_imperial_general_m.iff')
	mobileTemplate.setTemplates(templates)
	
	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/ranged/carbine/shared_carbine_e11.iff', WeaponType.CARBINE, 1.0, 15, 'energy')
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)
	
	attacks = Vector()
	mobileTemplate.setDefaultAttack('rangedShot')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('imp_offensive_invasion_general', mobileTemplate)
	return
示例#5
0
def addTemplate(core):
    mobileTemplate = MobileTemplate()

    mobileTemplate.setCreatureName('A demoralized rebel soldier')
    mobileTemplate.setLevel(90)
    mobileTemplate.setDifficulty(Difficulty.ELITE)

    mobileTemplate.setMinSpawnDistance(4)
    mobileTemplate.setMaxSpawnDistance(8)
    mobileTemplate.setDeathblow(True)
    mobileTemplate.setSocialGroup("rebel")
    mobileTemplate.setAssistRange(0)
    mobileTemplate.setStalker(True)
    mobileTemplate.setFaction("rebel")
    mobileTemplate.setFactionStatus(FactionStatus.Combatant)
    mobileTemplate.setAIEnabled(False)

    templates = Vector()
    templates.add(
        'object/mobile/shared_dressed_rebel_commando_human_female_01.iff')
    templates.add(
        'object/mobile/shared_dressed_rebel_commando_human_male_01.iff')
    templates.add(
        'object/mobile/shared_dressed_rebel_commando_moncal_male_01.iff')
    templates.add(
        'object/mobile/shared_dressed_rebel_commando_rodian_male_01.iff')
    templates.add(
        'object/mobile/shared_dressed_rebel_commando_twilek_female_01.iff')
    templates.add(
        'object/mobile/shared_dressed_rebel_commando_zabrak_female_01.iff')
    mobileTemplate.setTemplates(templates)

    weaponTemplates = Vector()
    weapontemplate = WeaponTemplate(
        'object/weapon/ranged/carbine/shared_carbine_e5.iff',
        WeaponType.CARBINE, 1.0, 15, 'energy')
    weaponTemplates.add(weapontemplate)
    mobileTemplate.setWeaponTemplateVector(weaponTemplates)

    attacks = Vector()
    mobileTemplate.setDefaultAttack('rangedShot')
    mobileTemplate.setAttacks(attacks)

    core.spawnService.addMobileTemplate('rebel_invasion_demoralized_soldier',
                                        mobileTemplate)
    return
示例#6
0
def addTemplate(core):
    mobileTemplate = MobileTemplate()

    mobileTemplate.setCustomName('A disabled AT-ST')
    mobileTemplate.setLevel(90)
    mobileTemplate.setDifficulty(Difficulty.ELITE)

    mobileTemplate.setMinSpawnDistance(4)
    mobileTemplate.setMaxSpawnDistance(8)
    mobileTemplate.setDeathblow(True)
    mobileTemplate.setScale(1)
    mobileTemplate.setSocialGroup("imperial")
    mobileTemplate.setAssistRange(0)
    mobileTemplate.setStalker(False)
    mobileTemplate.setFaction("imperial")
    mobileTemplate.setFactionStatus(FactionStatus.Combatant)
    mobileTemplate.setOptionsBitmask(Options.ATTACKABLE)
    mobileTemplate.setAIEnabled(False)

    templates = Vector()
    templates.add('object/mobile/shared_atst.iff')
    mobileTemplate.setTemplates(templates)

    weaponTemplates = Vector(
    )  # object/weapon/ranged/turret/shared_turret_heat.iff  object/weapon/ranged/vehicle/shared_vehicle_atst_ranged.iff
    weapontemplate = WeaponTemplate(
        'object/weapon/ranged/vehicle/shared_vehicle_atst_ranged.iff',
        WeaponType.CARBINE, 2.0, 55, 'energy')
    #weapontemplate = WeaponTemplate('object/weapon/ranged/rifle/shared_rifle_t21.iff', WeaponType.RIFLE, 1.0, 24, 'energy')
    weaponTemplates.add(weapontemplate)
    mobileTemplate.setWeaponTemplateVector(weaponTemplates)

    attacks = Vector()
    mobileTemplate.setDefaultAttack(
        'gcw_atst_attack_tower')  #gcw_atst_attack_tower #rangedShot
    mobileTemplate.setAttacks(attacks)

    core.spawnService.addMobileTemplate('imp_invasion_disabled_atst',
                                        mobileTemplate)
    return
示例#7
0
def addTemplate(core):
    mobileTemplate = MobileTemplate()

    mobileTemplate.setCustomName('A demoralized imperial soldier')
    mobileTemplate.setLevel(90)
    mobileTemplate.setDifficulty(Difficulty.ELITE)

    mobileTemplate.setMinSpawnDistance(4)
    mobileTemplate.setMaxSpawnDistance(8)
    mobileTemplate.setDeathblow(True)
    mobileTemplate.setSocialGroup("imperial")
    mobileTemplate.setAssistRange(0)
    mobileTemplate.setStalker(False)
    mobileTemplate.setFaction("imperial")
    mobileTemplate.setFactionStatus(FactionStatus.Combatant)
    mobileTemplate.setAIEnabled(False)

    templates = Vector()
    templates.add('object/mobile/shared_dressed_stormtrooper_black_white.iff')
    templates.add('object/mobile/shared_dressed_stormtrooper_white_black.iff')
    templates.add('object/mobile/shared_dressed_stormtrooper_white_white.iff')
    templates.add('object/mobile/shared_dark_trooper.iff')
    mobileTemplate.setTemplates(templates)

    weaponTemplates = Vector()
    weapontemplate = WeaponTemplate(
        'object/weapon/ranged/carbine/shared_carbine_e11.iff',
        WeaponType.CARBINE, 1.0, 15, 'energy')
    weaponTemplates.add(weapontemplate)
    mobileTemplate.setWeaponTemplateVector(weaponTemplates)

    attacks = Vector()
    mobileTemplate.setDefaultAttack('rangedShot')
    mobileTemplate.setAttacks(attacks)

    core.spawnService.addMobileTemplate('imp_invasion_demoralized_soldier',
                                        mobileTemplate)
    return
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('A demoralized rebel soldier')
	mobileTemplate.setLevel(90)
	mobileTemplate.setDifficulty(Difficulty.ELITE)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setSocialGroup("rebel")
	mobileTemplate.setAssistRange(0)
	mobileTemplate.setStalker(True)
	mobileTemplate.setFaction("rebel")
	mobileTemplate.setFactionStatus(FactionStatus.Combatant)
	mobileTemplate.setAIEnabled(False)
	
	templates = Vector()
	templates.add('object/mobile/shared_dressed_rebel_commando_human_female_01.iff')
	templates.add('object/mobile/shared_dressed_rebel_commando_human_male_01.iff')
	templates.add('object/mobile/shared_dressed_rebel_commando_moncal_male_01.iff')
	templates.add('object/mobile/shared_dressed_rebel_commando_rodian_male_01.iff')
	templates.add('object/mobile/shared_dressed_rebel_commando_twilek_female_01.iff')
	templates.add('object/mobile/shared_dressed_rebel_commando_zabrak_female_01.iff')			
	mobileTemplate.setTemplates(templates)
	
	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/ranged/carbine/shared_carbine_e5.iff', WeaponType.CARBINE, 1.0, 15, 'energy')
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)
	
	attacks = Vector()
	mobileTemplate.setDefaultAttack('rangedShot')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('rebel_invasion_demoralized_soldier', mobileTemplate)
	return