Fixed a Bug with Tempest rills being above ground

Added Tusken Raider Soldier
Added Tusken Raider Warrior
Added Tusken Raider Zealot
This commit is contained in:
tacef
2014-05-11 21:03:53 +02:00
parent 82d2955db4
commit aa87d6e529
6 changed files with 216 additions and 22 deletions
@@ -1,5 +1,5 @@
import sys
def addSpawnArea(core):
core.spawnService.addDynamicSpawnArea('tuskens_wild_1', 4310, -4786, 250, 'tatooine')
#core.spawnService.addDynamicSpawnArea('tuskens_wild_1', 4310, -4786, 250, 'tatooine')
return
@@ -0,0 +1,38 @@
import sys
from services.spawn import MobileTemplate
from services.spawn import WeaponTemplate
from java.util import Vector
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('tusken_raider_soldier')
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_soldier', mobileTemplate)
return
@@ -0,0 +1,38 @@
import sys
from services.spawn import MobileTemplate
from services.spawn import WeaponTemplate
from java.util import Vector
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('tusken_raider_warrior')
mobileTemplate.setLevel(6)
mobileTemplate.setMinLevel(6)
mobileTemplate.setMaxLevel(7)
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_warrior', mobileTemplate)
return
+38
View File
@@ -0,0 +1,38 @@
import sys
from services.spawn import MobileTemplate
from services.spawn import WeaponTemplate
from java.util import Vector
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
@@ -14,27 +14,27 @@ def addPlanetSpawns(core, planet):
objSvc = core.objectService
# Tempest rills
tempest_rill1 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3716), float(8), float(-4602), float(0), float(0))
tempest_rill2 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3701), float(8), float(-4649), float(0), float(0))
tempest_rill3 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3741), float(8), float(-4651), float(0), float(0))
tempest_rill4 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3668), float(8), float(-4597), float(0), float(0))
tempest_rill5 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3695), float(8), float(-4613), float(0), float(0))
tempest_rill6 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3678), float(8), float(-4613), float(0), float(0))
tempest_rill7 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3718), float(8), float(-4651), float(0), float(0))
tempest_rill8 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3737), float(8), float(-4633), float(0), float(0))
tempest_rill9 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3692), float(8), float(-4621), float(0), float(0))
tempest_rill10 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3695), float(8), float(-4646), float(0), float(0))
tempest_rill11 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3795), float(8), float(-4647), float(0), float(0))
tempest_rill12 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3716), float(8), float(-4613), float(0), float(0))
tempest_rill13 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3704), float(8), float(-4624), float(0), float(0))
tempest_rill14 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3687), float(8), float(-4600), float(0), float(0))
tempest_rill15 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3709), float(8), float(-4611), float(0), float(0))
tempest_rill16 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3725), float(8), float(-4619), float(0), float(0))
tempest_rill17 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3727), float(8), float(-4638), float(0), float(0))
tempest_rill18 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3716), float(8), float(-4622), float(0), float(0))
tempest_rill19 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3710), float(8), float(-4637), float(0), float(0))
tempest_rill20 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3698), float(8), float(-4637), float(0), float(0))
tempest_rill21 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3684), float(8), float(-4645), float(0), float(0))
tempest_rill1 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3716), float(5), float(-4602), float(0), float(0))
tempest_rill2 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3701), float(5), float(-4649), float(0), float(0))
tempest_rill3 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3741), float(5), float(-4651), float(0), float(0))
tempest_rill4 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3668), float(5), float(-4597), float(0), float(0))
tempest_rill5 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3695), float(5), float(-4613), float(0), float(0))
tempest_rill6 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3678), float(5), float(-4613), float(0), float(0))
tempest_rill7 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3718), float(5), float(-4651), float(0), float(0))
tempest_rill8 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3737), float(5), float(-4633), float(0), float(0))
tempest_rill9 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3692), float(5), float(-4621), float(0), float(0))
tempest_rill10 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3695), float(5), float(-4646), float(0), float(0))
tempest_rill11 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3795), float(5), float(-4647), float(0), float(0))
tempest_rill12 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3716), float(5), float(-4613), float(0), float(0))
tempest_rill13 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3704), float(5), float(-4624), float(0), float(0))
tempest_rill14 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3687), float(5), float(-4600), float(0), float(0))
tempest_rill15 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3709), float(5), float(-4611), float(0), float(0))
tempest_rill16 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3725), float(5), float(-4619), float(0), float(0))
tempest_rill17 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3727), float(5), float(-4638), float(0), float(0))
tempest_rill18 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3716), float(5), float(-4622), float(0), float(0))
tempest_rill19 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3710), float(5), float(-4637), float(0), float(0))
tempest_rill20 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3698), float(5), float(-4637), float(0), float(0))
tempest_rill21 = stcSvc.spawnObject('tempest_rill', 'tatooine', long(0), float(3684), float(5), float(-4645), float(0), float(0))
# Tempest rills
@@ -0,0 +1,80 @@
import sys
# Project SWG: Tusken ZElaots: Static Spawns
# (C)2014 ProjectSWG
from resources.datatables import Options
from resources.datatables import State
def addPlanetSpawns(core, planet):
stcSvc = core.staticService
objSvc = core.objectService
# Outside of Tusken camp
zealot = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4005), float(5), float(-4846), float(0), float(0))
zealot1 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4009), float(5), float(-4851), float(0), float(0))
zealot2 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4009), float(5), float(-4852), float(0), float(0))
# Outside of Tusken camp pt2
zealot3 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4051), float(5), float(-4859), float(0), float(0))
zealot4 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4050), float(5), float(-4859), float(0), float(0))
zealot5 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4050), float(5), float(-4858), float(0), float(0))
# inside camp pt1 (behind the camp)
zealot5 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4076), float(5), float(-4812), float(0), float(0))
zealot6 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4075), float(5), float(-4812), float(0), float(0))
zealot7 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4074), float(5), float(-4812), float(0), float(0))
# inside camp p2 (coming from starport)
zealot8 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(3991), float(5), float(-4794), float(0), float(0))
zealot9 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(3995), float(5), float(-4788), float(0), float(0))
zealot10 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(3993), float(5), float(-4794), float(0), float(0))
zealot11 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(3992), float(5), float(-4812), float(0), float(0))
zealot12 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(3997), float(5), float(-4812), float(0), float(0))
zealot12 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4010), float(5), float(-4811), float(0), float(0))
zealot13 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4014), float(5), float(-4811), float(0), float(0))
zealot14 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4010), float(5), float(-4795), float(0), float(0))
zealot15 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4013), float(5), float(-4793), float(0), float(0))
zealot16 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4005), float(5), float(-4783), float(0), float(0))
# inside camp pt3 (2nd from starport
zealot17 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4009), float(5), float(-4758), float(0), float(0))
zealot18 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4010), float(5), float(-4759), float(0), float(0))
zealot19 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4028), float(5), float(-4767), float(0), float(0))
zealot20 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4020), float(5), float(-4766), float(0), float(0))
zealot21 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4038), float(5), float(-4736), float(0), float(0))
zealot22 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4033), float(5), float(-4743), float(0), float(0))
zealot23 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4048), float(5), float(-4767), float(0), float(0))
zealot24 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4039), float(5), float(-4767), float(0), float(0))
zealot25 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4056), float(5), float(-4787), float(0), float(0))
zealot26 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4047), float(5), float(-4787), float(0), float(0))
zealot27 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4044), float(5), float(-4807), float(0), float(0))
zealot28 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4049), float(5), float(-4807), float(0), float(0))
zealot29 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4065), float(5), float(-4774), float(0), float(0))
zealot30 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4063), float(5), float(-4767), float(0), float(0))
zealot31 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4074), float(5), float(-4755), float(0), float(0))
zealot32 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4065), float(5), float(-4755), float(0), float(0))
zealot33 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4065), float(5), float(-4743), float(0), float(0))
zealot34 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4070), float(5), float(-4743), float(0), float(0))
zealot35 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4094), float(5), float(-4747), float(0), float(0))
zealot36 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4102), float(5), float(-4753), float(0), float(0))
zealot37 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4093), float(5), float(-4771), float(0), float(0))
zealot38 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4080), float(5), float(-4766), float(0), float(0))
zealot39 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4083), float(5), float(-4787), float(0), float(0))
zealot40 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4094), float(5), float(-4783), float(0), float(0))
zealot41 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4084), float(5), float(-4801), float(0), float(0))
# inside camp pt4 terrace of the building
zealot42 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4081), float(8), float(-4752), float(0), float(0))
zealot43 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4078), float(8), float(-4759), float(0), float(0))
zealot44 = stcSvc.spawnObject('tusken_zealot', 'tatooine', long(0), float(4086), float(8), float(-4762), float(0), float(0))
return