本文整理汇总了Python中services.spawn.MobileTemplate类的典型用法代码示例。如果您正苦于以下问题:Python MobileTemplate类的具体用法?Python MobileTemplate怎么用?Python MobileTemplate使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了MobileTemplate类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
templates = Vector()
templates.add('object/mobile/shared_womp_rat.iff')
mobileTemplate.setTemplates(templates)
mobileTemplate.setLevel(5)
attacks = Vector()
mobileTemplate.setDefaultAttack('creatureMeleeAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('womprat', mobileTemplate)
示例2: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName("mtp_recruiter_corsec_detective")
mobileTemplate.setLevel(81)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(15)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(1)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("aggro corsec")
mobileTemplate.setAssistRange(10)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(192)
templates = Vector()
templates.add("object/mobile/shared_dressed_corsec_captain_human_female_01.iff")
templates.add("object/mobile/shared_dressed_corsec_captain_human_male_01.iff")
templates.add("object/mobile/shared_dressed_corsec_captain_human_male_02.iff")
templates.add("object/mobile/shared_dressed_corsec_captain_human_male_03.iff")
templates.add("object/mobile/shared_dressed_corsec_officer_human_female_01.iff")
templates.add("object/mobile/shared_dressed_corsec_officer_human_male_01.iff")
templates.add("object/mobile/shared_dressed_corsec_detective_human_female_01.iff")
templates.add("object/mobile/shared_dressed_corsec_detective_human_male_01.iff")
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate("object/weapon/ranged/carbine/shared_carbine_cdef.iff", 1, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack("rangedShot")
mobileTemplate.setAttacks(attacks)
lootPoolNames_1 = ["Junk"]
lootPoolChances_1 = [100]
lootGroupChance_1 = 100
mobileTemplate.addToLootGroups(lootPoolNames_1, lootPoolChances_1, lootGroupChance_1)
core.spawnService.addMobileTemplate("corsec_security_specialist", mobileTemplate)
return
示例3: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName("minor_gubbur")
mobileTemplate.setLevel(22)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setMeatType("Canivore Meat")
mobileTemplate.setMeatAmount(3)
mobileTemplate.setHideType("Leathery Hide")
mobileTemplate.setHideAmount(2)
mobileTemplate.setBoneType("Animal Hide")
mobileTemplate.setBoneAmount(2)
mobileTemplate.setSocialGroup("gubbur")
mobileTemplate.setAssistRange(2)
mobileTemplate.setStalker(False)
mobileTemplate.setOptionsBitmask(Options.ATTACKABLE)
templates = Vector()
templates.add("object/mobile/shared_minor_gubbur.iff")
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate(
"object/weapon/melee/unarmed/shared_unarmed_default.iff", WeaponType.UNARMED, 1.0, 6, "kinetic"
)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
attacks.add("bm_bite_2")
attacks.add("bm_damage_poison_1")
attacks.add("bm_spit_2")
mobileTemplate.setDefaultAttack("creatureMeleeAttack")
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate("minor_gubbur", mobileTemplate)
return
示例4: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('talus_nashal_brood5a_arachne')
mobileTemplate.setLevel(45)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(12)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(6)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1.5)
mobileTemplate.setSocialGroup("brood arachne")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(192)
templates = Vector()
templates.add('object/mobile/shared_bane_back_spider.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', 6, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('creatureRangedAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('brood_v_aurek_arachne', mobileTemplate)
return
示例5: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('gualama')
mobileTemplate.setLevel(39)
mobileTemplate.setMinLevel(39)
mobileTemplate.setMaxLevel(40)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setMeatType("Wild Meat")
mobileTemplate.setMeatAmount(200)
mobileTemplate.setHideType("Wooly Hide")
mobileTemplate.setHideAmount(150)
mobileTemplate.setBoneType("Mammal Bones")
mobileTemplate.setBoneAmount(90)
mobileTemplate.setSocialGroup("gualama")
mobileTemplate.setAssistRange(0)
mobileTemplate.setStalker(False)
mobileTemplate.setOptionsBitmask(128)
templates = Vector()
templates.add('object/mobile/shared_gualama.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', WeaponType.UNARMED, 1.0, 6, 'kinetic')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('creatureMeleeAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('gualama', mobileTemplate)
return
示例6: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName("heroic_tusken_massiff")
mobileTemplate.setLevel(90)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("heroic tusken")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)
templates = Vector()
templates.add("object/mobile/shared_tusken_massif.iff")
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate(
"object/weapon/melee/unarmed/shared_unarmed_default.iff", WeaponType.UNARMED, 1.0, 6, "kinetic"
)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack("creatureMeleeAttack")
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate("heroic_tusken_massiff", mobileTemplate)
return
示例7: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('tatooine_error_prone_droid')
mobileTemplate.setLevel(6)
mobileTemplate.setMinLevel(6)
mobileTemplate.setMaxLevel(7)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(15)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(1)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("error-prone battle droid")
mobileTemplate.setAssistRange(4)
mobileTemplate.setStalker(False)
templates = Vector()
templates.add('object/mobile/shared_battle_droid.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/ranged/carbine/shared_carbine_e5.iff', 1, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('rangedshot')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('error-prone_battle_droid', mobileTemplate)
return
示例8: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('hanadak ancient')
mobileTemplate.setLevel(61)
mobileTemplate.setMinLevel(61)
mobileTemplate.setMaxLevel(61)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(5)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(6)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1.2)
mobileTemplate.setMeatType("Carnivore Meat")
mobileTemplate.setMeatAmount(40)
mobileTemplate.setHideType("Bristley Hide")
mobileTemplate.setHideAmount(40)
mobileTemplate.setBoneType("Mammal Bones")
mobileTemplate.setBoneAmount(40)
mobileTemplate.setSocialGroup("hanadak")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(False)
mobileTemplate.setOptionsBitmask(192)
templates = Vector()
templates.add('object/mobile/shared_hanadak.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', 6, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('creatureMeleeAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('hanadak_ancient', mobileTemplate)
return
示例9: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('choku_hunter')
mobileTemplate.setLevel(71)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setMeatType("Avian Meat")
mobileTemplate.setMeatAmount(10)
mobileTemplate.setBoneType("Avian Bones")
mobileTemplate.setBoneAmount(8)
mobileTemplate.setSocialGroup("choku")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
templates = Vector()
templates.add('object/mobile/shared_choku.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', WeaponType.UNARMED, 1.0, 6, 'kinetic')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
attacks.add('bm_bite_4')
attacks.add('bm_hamstring_4')
attacks.add('bm_puncture_2')
mobileTemplate.setDefaultAttack('creatureMeleeAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('choku_hunter', mobileTemplate)
return
示例10: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCustomName('Lt. Akal Colzet')
mobileTemplate.setLevel(1)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setSocialGroup("township")
mobileTemplate.setOptionsBitmask(Options.INVULNERABLE)
mobileTemplate.setFaction("imperial")
mobileTemplate.setFactionStatus(FactionStatus.OnLeave)
templates = Vector()
templates.add('object/mobile/shared_dressed_imperial_trainer_space_01.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', WeaponType.UNARMED, 1.0, 6, 'kinetic')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('creatureMeleeAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('akalcolzet', mobileTemplate)
return
示例11: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('fbase_comm_operator')
mobileTemplate.setLevel(14)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("imperial")
mobileTemplate.setAssistRange(0)
mobileTemplate.setStalker(True)
mobileTemplate.setFaction("imperial")
mobileTemplate.setFactionStatus(FactionStatus.Combatant)
templates = Vector()
templates.add('object/mobile/shared_dressed_npe_imperial_officer.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_comm_op_14', mobileTemplate)
return
示例12: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('ravenous_rasp')
mobileTemplate.setLevel(35)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(5)
mobileTemplate.setMaxSpawnDistance(10)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setMeatType("Avian Meat")
mobileTemplate.setMeatAmount(45)
mobileTemplate.setBoneType("Avian Bone")
mobileTemplate.setHideAmount(15)
mobileTemplate.setSocialGroup("voracious rasp")
mobileTemplate.setAssistRange(6)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
templates = Vector()
templates.add('object/mobile/shared_horned_rasp_hue.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', WeaponType.UNARMED, 1.0, 6, 'kinetic')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
attacks.add('bm_claw_3')
attacks.add('bm_slash_3')
attacks.add('bm_wing_buffet_3')
mobileTemplate.setDefaultAttack('creatureMeleeAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('ravenous_rasp', mobileTemplate)
return
示例13: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('dune_stalker_brawler')
mobileTemplate.setLevel(17)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("dune stalker")
mobileTemplate.setAssistRange(4)
mobileTemplate.setStalker(True)
templates = Vector()
templates.add('object/mobile/shared_dressed_tatooine_dune_stalker_brawler.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', WeaponType.UNARMED, 1.0, 6, 'kinetic')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('meleehit')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('dune_stalker_brawler', mobileTemplate)
return
示例14: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('blood_frenzied_boar_wolf')
mobileTemplate.setLevel(68)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(5)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(6)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("boar wolf")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(False)
mobileTemplate.setOptionsBitmask(192)
templates = Vector()
templates.add('object/mobile/shared_boar_wolf.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', 6, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('creatureMeleeAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('blood_frenzied_boar_wolf', mobileTemplate)
return
示例15: addTemplate
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('lesser_dewback')
mobileTemplate.setLevel(4)
mobileTemplate.setMinLevel(3)
mobileTemplate.setMaxLevel(5)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(5)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(6)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setMeatType("Reptilian Meat")
mobileTemplate.setMeatAmount(175)
mobileTemplate.setHideType("Leathery Hide")
mobileTemplate.setBoneAmount(125)
mobileTemplate.setBoneType("Animal Bones")
mobileTemplate.setHideAmount(100)
mobileTemplate.setSocialGroup("dewback")
mobileTemplate.setAssistRange(0)
mobileTemplate.setStalker(False)
templates = Vector()
templates.add('object/mobile/shared_dewback.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/unarmed/shared_unarmed_default.iff', 6, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('creatureMeleeAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('lesser_dewback', mobileTemplate)
return