1 /// @description EVASION C
2 sprite_index = asset_get_index(string(_my_spr_special));
3 if sprite_index != "tbd" {
8 audio_play_sound(snd_melee_sword_attack,10,false);
12 if(sprite_index == spr_model_punch or sprite_index == spr_alentejano_punch){
13 if(image_index > 4 and image_index < 7){
14 var _to_hit = collision_point(x+18*image_xscale,y,obj_player,true,true);
16 if(_to_hit._state == HERO.ATTACK){
17 var _efx = choose(effect_create_above(ef_ring,x,y,0,c_white), effect_create_above(ef_ellipse,x,y,0,c_white) );
18 _to_hit._hsp = -image_xscale * 10;
20 }else if(_to_hit._state != HERO.HIT and _to_hit._state != HERO.DEAD and _to_hit._state != HERO.ROLL){
21 _to_hit._state = HERO.HIT;
22 _to_hit._hsp = -_to_hit.image_xscale * 8;
33 // samurai style - model attack 3
34 if(sprite_index == spr_samurai_attack_2){
35 if(image_index > 1 and image_index < 10){
36 var _to_hit = collision_point(x+30*image_xscale,y,obj_player,true,true);
38 if(_to_hit._state == HERO.ATTACK){
39 audio_play_sound(snd_sword_w_sword_00,10,false);
40 var _efx = choose(effect_create_above(ef_ring,x,y,0,c_white), effect_create_above(ef_ellipse,x,y,0,c_white) );
41 _hsp = -image_xscale * 15;
43 }else if(_to_hit._state != HERO.HIT and _to_hit._state != HERO.DEAD and _to_hit._state != HERO.ROLL){
44 _to_hit._state = HERO.HIT;
46 part_particles_burst(global._ps_blood,_to_hit.x,_to_hit.y,ps_blood);
57 if(sprite_index == spr_model_attack_2 or sprite_index == spr_pirate_hook_atk){
58 if(image_index > 1 and image_index < 5){
59 var _to_hit = collision_point(x+20*image_xscale,y,obj_player,true,true);
61 if(_to_hit._state == HERO.ATTACK){
62 var _efx = choose(effect_create_above(ef_ring,x,y,0,c_white), effect_create_above(ef_ellipse,x,y,0,c_white) );
63 _hsp = -image_xscale * 15;
65 }else if(_to_hit._state != HERO.HIT and _to_hit._state != HERO.DEAD and _to_hit._state != HERO.ROLL){
66 _to_hit._state = HERO.HIT;