本文整理汇总了Python中services.spawn.MobileTemplate.setAttackRange方法的典型用法代码示例。如果您正苦于以下问题:Python MobileTemplate.setAttackRange方法的具体用法?Python MobileTemplate.setAttackRange怎么用?Python MobileTemplate.setAttackRange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类services.spawn.MobileTemplate
的用法示例。
在下文中一共展示了MobileTemplate.setAttackRange方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('desert_demon_marksman')
mobileTemplate.setLevel(13)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(12)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(0)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("desert demon")
mobileTemplate.setAssistRange(4)
mobileTemplate.setStalker(True)
templates = Vector()
templates.add('object/mobile/shared_dressed_tatooine_desert_demon_marksman.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/ranged/rifle/shared_rifle_cdef.iff', 0, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('rangedshotrifle')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('desert_demon_marksman', mobileTemplate)
return
示例2: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
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
示例3: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('tusken_berserker')
mobileTemplate.setLevel(31)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(12)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(0)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(True)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("tusken raider")
mobileTemplate.setAssistRange(6)
mobileTemplate.setStalker(True)
templates = Vector()
templates.add('object/mobile/shared_tusken_raider.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/ranged/rifle/shared_rifle_tusken_generic.iff', 0, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('rangedShotrifle')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('tusken_berserker', mobileTemplate)
return
示例4: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('tusken_raider_zealot')
mobileTemplate.setLevel(5)
mobileTemplate.setMinLevel(5)
mobileTemplate.setMaxLevel(6)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(12)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(0)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
templates = Vector()
templates.add('object/mobile/shared_tusken_raider.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/ranged/rifle/shared_rifle_tusken_generic.iff', 0, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('creatureRangedAttack')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('tusken_zealot', mobileTemplate)
return
示例5: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('crackdown_stormtrooper_bombardier_hard')
mobileTemplate.setLevel(74)
mobileTemplate.setDifficulty(1)
mobileTemplate.setAttackRange(15)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(1)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("imperial")
mobileTemplate.setAssistRange(0)
mobileTemplate.setStalker(False)
mobileTemplate.setFaction("imperial")
mobileTemplate.setFactionStatus(1)
templates = Vector()
templates.add('object/mobile/shared_dressed_stormtrooper_bombardier_m.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/ranged/carbine/shared_carbine_e11.iff', 1, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('rangedShot')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('imp_bombardier_74', mobileTemplate)
return
示例6: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('queen_merek_harvester')
mobileTemplate.setLevel(64)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(12)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(6)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1.2)
mobileTemplate.setHideType("Leathery Hide")
mobileTemplate.setHideAmount(50)
mobileTemplate.setSocialGroup("merek")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(False)
mobileTemplate.setOptionsBitmask(192)
templates = Vector()
templates.add('object/mobile/shared_merek.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('queen_merek_harvester', mobileTemplate)
return
示例7: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('nightsister_rancor')
mobileTemplate.setLevel(80)
mobileTemplate.setDifficulty(1)
mobileTemplate.setAttackRange(6)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(4)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(6)
mobileTemplate.setDeathblow(True)
mobileTemplate.setSocialGroup('nightsister')
mobileTemplate.setAssistRange(12)
mobileTemplate.setRespawnTime(300)
mobileTemplate.setOptionsBitmask(192)
templates = Vector()
templates.add('object/mobile/shared_rancor.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('nightsister_rancor', mobileTemplate)
示例8: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('heroic_tusken_mse_droid')
mobileTemplate.setLevel(90)
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)
mobileTemplate.setSocialGroup("heroic mos espa citizien")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(128)
templates = Vector()
templates.add('object/mobile/shared_mouse_droid.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('meleeHit')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('heroic_tusken_mse_droid', mobileTemplate)
return
示例9: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('corellia_ragtag_tomi_jinsin')
mobileTemplate.setLevel(15)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(12)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(1)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("ragtag gang")
mobileTemplate.setAssistRange(4)
mobileTemplate.setStalker(True)
mobileTemplate.setOptionsBitmask(128)
templates = Vector()
templates.add('object/mobile/shared_dressed_corellia_tomi_jinsin.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)
core.spawnService.addMobileTemplate('tomi_jinsin', mobileTemplate)
return
示例10: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('fragile_kreetle')
mobileTemplate.setLevel(2)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(5)
mobileTemplate.setWeaponType(6)
mobileTemplate.setAttackSpeed(1.0)
templates = Vector()
templates.add('object/mobile/shared_kreetle.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('carrion_kreetle', mobileTemplate)
return
示例11: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('eow_force_sensitive_crypt_crawler')
mobileTemplate.setLevel(90)
mobileTemplate.setMinLevel(60)
mobileTemplate.setMaxLevel(70)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(6)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(7)
mobileTemplate.setMinSpawnDistance(3)
mobileTemplate.setMaxSpawnDistance(5)
mobileTemplate.setDeathblow(False)
mobileTemplate.setSocialGroup('remnants of kun')
mobileTemplate.setRespawnTime(300)
templates = Vector()
templates.add('object/mobile/shared_dressed_force_sensitive_crypt_crawler.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/melee/polearm/shared_lance_staff_wood_s1.iff', 7, 1.0)
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('meleehit')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('force_sensitive_crypt_crawler', mobileTemplate)
示例12: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('elite_desert_razorback')
mobileTemplate.setLevel(23)
mobileTemplate.setDifficulty(1)
mobileTemplate.setAttackRange(5)
mobileTemplate.setWeaponType(6)
mobileTemplate.setAttackSpeed(1.0)
templates = Vector()
templates.add('object/mobile/shared_zucca_boar.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('razorclaw', mobileTemplate)
return
示例13: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('c_syren_3_arrworr')
mobileTemplate.setLevel(55)
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.setSocialGroup("kashyyyk")
mobileTemplate.setAssistRange(12)
mobileTemplate.setStalker(False)
templates = Vector()
templates.add('object/mobile/shared_c_syren_3_trandoshan_boss.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('arrworr', mobileTemplate)
return
示例14: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('bantha')
mobileTemplate.setLevel(14)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(5)
mobileTemplate.setWeaponType(6)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setMilkType('Wild Milk')
mobileTemplate.setMilkAmount(250)
mobileTemplate.setHideType('Wooly Hide')
mobileTemplate.setHideAmount(325)
mobileTemplate.setMeatType('Herbivore Meat')
mobileTemplate.setMeatAmount(450)
mobileTemplate.setBoneType('Animal Bones')
mobileTemplate.setBoneAmount(250)
templates = Vector()
templates.add('object/mobile/shared_bantha_hue.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('bantha', mobileTemplate)
return
示例15: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setAttackRange [as 别名]
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('desert_swooper_leader')
mobileTemplate.setLevel(3)
mobileTemplate.setDifficulty(0)
mobileTemplate.setAttackRange(12)
mobileTemplate.setAttackSpeed(1.0)
mobileTemplate.setWeaponType(1)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("swoop")
mobileTemplate.setAssistRange(4)
mobileTemplate.setStalker(False)
mobileTemplate.setOptionsBitmask(192)
templates = Vector()
templates.add('object/mobile/shared_dressed_tatooine_desert_swooper_leader.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)
core.spawnService.addMobileTemplate('desert_swooper_leader', mobileTemplate)
return