当前位置: 首页>>代码示例>>Python>>正文


Python MobileTemplate.setMaxSpawnDistance方法代码示例

本文整理汇总了Python中services.spawn.MobileTemplate.setMaxSpawnDistance方法的典型用法代码示例。如果您正苦于以下问题:Python MobileTemplate.setMaxSpawnDistance方法的具体用法?Python MobileTemplate.setMaxSpawnDistance怎么用?Python MobileTemplate.setMaxSpawnDistance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在services.spawn.MobileTemplate的用法示例。


在下文中一共展示了MobileTemplate.setMaxSpawnDistance方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('bloodseeker_mite_drone')
	mobileTemplate.setLevel(64)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setSocialGroup("bloodseeker")
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_bloodseeker_mite.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_bolster_armor_4')
	attacks.add('bm_enfeeble_4')
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('bloodseeker_mite_drone', mobileTemplate)
	return
开发者ID:Demannu,项目名称:NGECore2,代码行数:36,代码来源:bloodseeker_mite_drone.py

示例2: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [as 别名]
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
开发者ID:hendenburg,项目名称:NGECore2,代码行数:35,代码来源:tusken_massiff.py

示例3: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [as 别名]
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
开发者ID:Adoyser,项目名称:NGECore2,代码行数:35,代码来源:brood_v_aurek_arachne.py

示例4: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('giant_decay_mite_soldier')
	mobileTemplate.setLevel(15)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1.5)
	mobileTemplate.setMeatType("Insect Meat")
	mobileTemplate.setMeatAmount(18)
	mobileTemplate.setSocialGroup("decay mite")
	mobileTemplate.setAssistRange(4)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_bark_mite_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()
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('giant_decay_mite_soldier', mobileTemplate)
	return
开发者ID:MrDinnertime,项目名称:NGECore2,代码行数:35,代码来源:giant_decay_mite_soldier.py

示例5: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [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
开发者ID:eweshi,项目名称:NGECore2,代码行数:36,代码来源:error_prone_battle_droids.py

示例6: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [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
开发者ID:Adoyser,项目名称:NGECore2,代码行数:36,代码来源:ace_imp_bombardier_74.py

示例7: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [as 别名]
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
开发者ID:MrDinnertime,项目名称:NGECore2,代码行数:32,代码来源:dune_stalker_brawler.py

示例8: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [as 别名]
def addTemplate(core):
    mobileTemplate = MobileTemplate()

    mobileTemplate.setCreatureName("hirsch_sif")
    mobileTemplate.setLevel(57)
    mobileTemplate.setDifficulty(Difficulty.NORMAL)

    mobileTemplate.setMinSpawnDistance(4)
    mobileTemplate.setMaxSpawnDistance(8)
    mobileTemplate.setDeathblow(True)
    mobileTemplate.setScale(1)
    mobileTemplate.setSocialGroup("sif")
    mobileTemplate.setAssistRange(6)
    mobileTemplate.setStalker(True)
    mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
    mobileTemplate.setOptionsBitmask(128)

    templates = Vector()
    templates.add("object/mobile/shared_dressed_hirsch_sif.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("hirsch_sif", mobileTemplate)
    return
开发者ID:Demannu,项目名称:NGECore2,代码行数:36,代码来源:hirsch_sif.py

示例9: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('swirl_prong_impaler')
	mobileTemplate.setLevel(71)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setSocialGroup("swirl prong")
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setOptionsBitmask(Options.ATTACKABLE)
	mobileTemplate.setStalker(False)
	
	templates = Vector()
	templates.add('object/mobile/shared_swirl_prong.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_charge_4')
	attacks.add('bm_defensive_4')
	attacks.add('bm_slash_4')
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('swirl_prong_impaler', mobileTemplate)
	return
开发者ID:Avasia,项目名称:NGECore2,代码行数:36,代码来源:swirl_prong_impaler.py

示例10: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('bordok_foal')
	mobileTemplate.setLevel(63)
	mobileTemplate.setMinLevel(63)
	mobileTemplate.setMaxLevel(63)
	mobileTemplate.setDifficulty(0)
	mobileTemplate.setAttackRange(5)
	mobileTemplate.setAttackSpeed(1.0)
	mobileTemplate.setWeaponType(6)
	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(.5)
	mobileTemplate.setSocialGroup("bordok")
	mobileTemplate.setAssistRange(0)
	mobileTemplate.setStalker(False)
	
	templates = Vector()
	templates.add('object/mobile/shared_bordok.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('bordok_foal', mobileTemplate)
	return
开发者ID:Chris1533,项目名称:NGECore2,代码行数:36,代码来源:bordok_foal.py

示例11: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [as 别名]
def addTemplate(core):
    mobileTemplate = MobileTemplate()

    mobileTemplate.setCreatureName("imperial_army_captain")
    mobileTemplate.setLevel(21)
    mobileTemplate.setDifficulty(Difficulty.NORMAL)

    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(FactionStatus.Combatant)

    templates = Vector()
    templates.add("object/mobile/shared_dressed_imperial_captain_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_army_captain", mobileTemplate)
    return
开发者ID:GaiamarkGames,项目名称:NGECore2,代码行数:36,代码来源:imp_army_captain.py

示例12: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('fbase_sand_trooper_extreme')
	mobileTemplate.setLevel(89)
	mobileTemplate.setDifficulty(Difficulty.ELITE)

	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(FactionStatus.Combatant)
	
	templates = Vector()
	templates.add('object/mobile/shared_dressed_stormtrooper_sandtrooper_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('grizzled_elite_sandtrooper', mobileTemplate)
	return
开发者ID:Daneti,项目名称:NGECore2,代码行数:34,代码来源:grizzled_elite_scout_trooper.py

示例13: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('crackdown_imperial_medic_hard')
	mobileTemplate.setLevel(33)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)

	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_imperial_medic1_human_male_01.iff')
	templates.add('object/mobile/shared_dressed_imperial_medic3_human_male_01.iff')
	templates.add('object/mobile/shared_dressed_stormtrooper_medic_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_surgeon_33', mobileTemplate)
	return
开发者ID:MrDinnertime,项目名称:NGECore2,代码行数:36,代码来源:imp_surgeon_33.py

示例14: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [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
开发者ID:Adoyser,项目名称:NGECore2,代码行数:37,代码来源:queen_merek_harvester.py

示例15: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMaxSpawnDistance [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('giant_crystal_snake')			
	mobileTemplate.setLevel(68)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Carnivore Meat")
	mobileTemplate.setMeatAmount(7)
	mobileTemplate.setHideType("Scaley Hide")
	mobileTemplate.setHideAmount(4)
	mobileTemplate.setSocialGroup("crystal snake")
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_giant_crystal_snake.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('giant_crystal_snake', mobileTemplate)
	return
开发者ID:MrDinnertime,项目名称:NGECore2,代码行数:37,代码来源:giant_crystal_snake.py


注:本文中的services.spawn.MobileTemplate.setMaxSpawnDistance方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。