Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getAttackDelay(Command/Technique/t, fCombat/c, mob/target){
- if("[target.ID]" in c.comboList){
- var
- comboL[] = c.comboList["[target.ID]"]
- xTendCombo = FALSE;
- if(!target.unconscious && comboL[c.comboCount["[target.ID]"]] == t.comboName){
- c.mobRef:_doEnergy(1);
- target._doEnergy(1);
- c.comboCount["[target.ID]"]++;
- if(c.comboCount["[target.ID]"] > comboL.len){
- if(prob(fightExtendCombo)){ xTendCombo = TRUE; }
- if(c.mobRef:shyouken && prob(fightShyoukenCombo) || xTendCombo){
- send("{B[c.mobRef:fCombat.comboCount["[target.ID]"] - 1]{x {Rhit combo!{x",c.mobRef)
- c.comboList.Remove("[target.ID]")
- c.comboCount.Remove("[target.ID]")
- /* SEND EM FLYING*/
- if(xTendCombo && (game.dir2text_map(game.dirRev(c.mobRef:dir)) in target.Exits(TRUE))){
- var
- sendDir = game.dirRev(c.mobRef:dir);
- noCol = TRUE;
- oldLoc = NULL;
- send("{B*{x Your [t.name] sends [target.raceColor(target.name)] flying [game.dir2text(sendDir)]!",c.mobRef)
- send("{W*{x [c.mobRef:raceColor(c.mobRef:name)] [t.name] sends [target.raceColor(target.name)] flying [game.dir2text(sendDir)]!",a_oview_extra(0,c.mobRef,target))
- send("{R*{x [c.mobRef:raceColor(c.mobRef:name)] [t.name] sends you flying [game.dir2text(sendDir)]!",target)
- for(var/i=rand(2,5),i>0,i--){
- oldLoc=target.loc;
- target.Move(get_step(target,sendDir), sendDir, 0, 0, TRUE)
- if(oldLoc==target.loc){
- send(buildMap(target,SMAP_LEFT,SMAP_RIGHT,SMAP_TOP,SMAP_BOT),target);
- noCol = FALSE;
- c.mobRef:fCombat.doDamage(target,5,10,"collision damage",NULL)
- break;
- } else { continue }
- }
- if(noCol){ send(buildMap(target,SMAP_LEFT,SMAP_RIGHT,SMAP_TOP,SMAP_BOT),target); }
- }
- /* SEND EM FLYING*/
- var/canZanz = FALSE;
- if(c.mobRef:techniques.Find(/Command/Technique/zanzoken) && c.mobRef:loc != target.loc){ canZanz = TRUE; }
- c.mobRef:fCombat.buildCombo(target,canZanz);
- target.stunTime = (world.time + 40);
- }else{
- target.stunTime = world.time
- }
- }
- return world.time;
- }else{
- if(t.breakCombo){
- target.stunTime = world.time + 31
- c.comboList.Remove("[target.ID]")
- c.comboCount.Remove("[target.ID]")
- }
- return (world.time + t.delay);
- }
- }
- return (world.time + t.delay);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement