Added some medic specials, minor combat fixes

This commit is contained in:
Light2
2013-09-23 18:02:31 +02:00
parent 718880dfcf
commit fbcbc26065
19 changed files with 355 additions and 37 deletions
+11
View File
@@ -0,0 +1,11 @@
import sys
def setup(core, actor, buff):
actor.playEffectObject('clienteffect/medic_stasis.cef', 'me_stasis_1')
actor.setSpeedMultiplierBase(0.2)
return
def removeBuff(core, actor, buff):
actor.setSpeedMultiplierBase(1)
return
+11
View File
@@ -0,0 +1,11 @@
import sys
def setup(core, actor, buff):
actor.playEffectObject('clienteffect/medic_stasis.cef', 'me_stasis_self_1')
actor.setSpeedMultiplierBase(0.2)
return
def removeBuff(core, actor, buff):
actor.setSpeedMultiplierBase(1)
return
+11
View File
@@ -0,0 +1,11 @@
import sys
def setup(core, actor, target, command):
command.setBuffNameTarget('me_stasis_1')
return
def preRun(core, actor, target, command):
return
def run(core, actor, target, commandString):
return
+18
View File
@@ -0,0 +1,18 @@
import sys
def setup():
return
def run(core, actor, target, commandString):
if actor.getGroupId() == 0:
return
group = core.objectService.getObject(actor.getGroupId())
for creature in group.getMemberList():
if creature.getPosture() == 14:
core.simulationService.teleport(creature, actor.getPosition(), actor.getOrientation(), actor.getParentId())
return
@@ -0,0 +1,25 @@
import sys
from services.command import CombatCommand
def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
combatSvc = core.combatService
weapon = core.objectService.getObject(actor.getWeaponId())
if not weapon:
weapon = actor.getSlottedObject('default_weapon')
command = core.commandService.getCommandByName('me_reckless_stimulation_1')
if not combatSvc.applySpecialCost(actor, weapon, CombatCommand('me_reckless_stimulation_1')):
return
actor.playEffectObject('clienteffect/medic_reckless_stimulation.cef', 'root')
actor.setAction(actor.getAction() + 1000)
return
@@ -0,0 +1,25 @@
import sys
from services.command import CombatCommand
def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
combatSvc = core.combatService
weapon = core.objectService.getObject(actor.getWeaponId())
if not weapon:
weapon = actor.getSlottedObject('default_weapon')
command = core.commandService.getCommandByName('me_reckless_stimulation_2')
if not combatSvc.applySpecialCost(actor, weapon, CombatCommand('me_reckless_stimulation_2')):
return
actor.playEffectObject('clienteffect/medic_reckless_stimulation.cef', 'root')
actor.setAction(actor.getAction() + 1500)
return
@@ -0,0 +1,25 @@
import sys
from services.command import CombatCommand
def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
combatSvc = core.combatService
weapon = core.objectService.getObject(actor.getWeaponId())
if not weapon:
weapon = actor.getSlottedObject('default_weapon')
command = core.commandService.getCommandByName('me_reckless_stimulation_3')
if not combatSvc.applySpecialCost(actor, weapon, CombatCommand('me_reckless_stimulation_3')):
return
actor.playEffectObject('clienteffect/medic_reckless_stimulation.cef', 'root')
actor.setAction(actor.getAction() + 2000)
return
@@ -0,0 +1,25 @@
import sys
from services.command import CombatCommand
def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
combatSvc = core.combatService
weapon = core.objectService.getObject(actor.getWeaponId())
if not weapon:
weapon = actor.getSlottedObject('default_weapon')
command = core.commandService.getCommandByName('me_reckless_stimulation_4')
if not combatSvc.applySpecialCost(actor, weapon, CombatCommand('me_reckless_stimulation_4')):
return
actor.playEffectObject('clienteffect/medic_reckless_stimulation.cef', 'root')
actor.setAction(actor.getAction() + 2500)
return
@@ -0,0 +1,25 @@
import sys
from services.command import CombatCommand
def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
combatSvc = core.combatService
weapon = core.objectService.getObject(actor.getWeaponId())
if not weapon:
weapon = actor.getSlottedObject('default_weapon')
command = core.commandService.getCommandByName('me_reckless_stimulation_5')
if not combatSvc.applySpecialCost(actor, weapon, CombatCommand('me_reckless_stimulation_5')):
return
actor.playEffectObject('clienteffect/medic_reckless_stimulation.cef', 'root')
actor.setAction(actor.getAction() + 3000)
return
@@ -0,0 +1,25 @@
import sys
from services.command import CombatCommand
def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
combatSvc = core.combatService
weapon = core.objectService.getObject(actor.getWeaponId())
if not weapon:
weapon = actor.getSlottedObject('default_weapon')
command = core.commandService.getCommandByName('me_reckless_stimulation_6')
if not combatSvc.applySpecialCost(actor, weapon, CombatCommand('me_reckless_stimulation_6')):
return
actor.playEffectObject('clienteffect/medic_reckless_stimulation.cef', 'root')
actor.setAction(actor.getAction() + 3500)
return
+24
View File
@@ -0,0 +1,24 @@
import sys
from services.command import CombatCommand
def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
combatSvc = core.combatService
weapon = core.objectService.getObject(actor.getWeaponId())
if not weapon:
weapon = actor.getSlottedObject('default_weapon')
command = core.commandService.getCommandByName('me_stasis_self_1')
if not combatSvc.applySpecialCost(actor, weapon, CombatCommand('me_stasis_self_1')):
return
core.buffService.addBuffToCreature(actor, 'me_stasis_self_1')
return