Guest User

Untitled

a guest
Jan 12th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. // TITLE : basicHacks
  2. // DESCRIPTION: Spies always visible, passive spy visibility gone, enemy healthbars displayed.
  3. // CREDITS : Scripted by Flaw.
  4.  
  5. object_event_clear(Spy, ev_step, ev_step_begin);
  6. object_event_clear(Character, ev_draw, 0);
  7. object_event_add(Character, ev_draw, 0, '
  8. xoffset = view_xview[0];
  9. yoffset = view_yview[0];
  10. xsize = view_wview[0];
  11. ysize = view_hview[0];
  12.  
  13. if distance_to_point(xoffset+xsize/2,yoffset+ysize/2) > 800 exit;
  14.  
  15. var xr, yr;
  16. xr = round(x);
  17. yr = round(y);
  18.  
  19. if global.myself == -1 && cloakAlpha==1{
  20. image_alpha = 1;
  21. } else if((global.myself.object == id && cloakAlpha==1) || (global.myself.object == -1)) {
  22. image_alpha = 1;
  23. } else if (!invisible) {
  24. image_alpha = cloakAlpha;
  25. }
  26.  
  27. if cloakAlpha<0.5 {
  28. if currentWeapon.readyToStab==true{
  29. cloakAlpha=0.5;
  30. image_alpha=0.5;
  31. }
  32. }
  33.  
  34. if (id != global.myself.object.id || global.showHealthBar == 1){
  35. draw_set_alpha(1);
  36. draw_healthbar(xr-10, yr-30, xr+10, yr-25,hp*100/maxHp,c_black,c_red,c_green,0,true,true);
  37. }
  38. if(distance_to_point(mouse_x, mouse_y)<25) {
  39. draw_set_alpha(1);
  40. draw_set_halign(fa_center);
  41. draw_set_valign(fa_bottom);
  42. if(team==TEAM_RED) {
  43. draw_set_color(c_red);
  44. } else {
  45. draw_set_color(c_blue);
  46. }
  47. draw_text(xr, yr-35, player.name);
  48. }
  49.  
  50. draw_set_alpha(1);
  51. if team == TEAM_RED ubercolour = c_red;
  52. if team == TEAM_BLUE ubercolour = c_blue;
  53.  
  54. if omnomnomnom == true {
  55. draw_sprite_ext(OmnomnomnomS,omnomnomnomindex,xr,yr,image_xscale,image_yscale,image_angle,c_white,1);
  56. if ubered == 1 draw_sprite_ext(OmnomnomnomS,omnomnomnomindex,xr,yr,image_xscale,image_yscale,image_angle,ubercolour,0.7);
  57. }
  58. else if taunting == true{
  59. draw_sprite_ext(tauntsprite,tauntindex,xr,yr,image_xscale,image_yscale,image_angle,c_white,1);
  60. if ubered == 1 draw_sprite_ext(tauntsprite,tauntindex,xr,yr,image_xscale,image_yscale,image_angle,ubercolour,0.7);
  61. }
  62. else if taunting == false {
  63. if ubered == 0 draw_sprite_ext(sprite_index,floor(animationImage+animationOffset),xr,yr,image_xscale,image_yscale,image_angle,c_white,cloakAlpha);
  64. else if ubered == 1 {
  65. draw_sprite_ext(sprite_index,floor(animationImage+animationOffset),xr,yr,image_xscale,image_yscale,image_angle,c_white,1);
  66. draw_sprite_ext(sprite_index,floor(animationImage+animationOffset),xr,yr,image_xscale,image_yscale,image_angle,ubercolour,0.7);
  67. }
  68. }
  69.  
  70. if (burnDuration > 0 or burnIntensity > 0) {
  71. for(i = 0; i < numFlames * burnIntensity / maxIntensity; i += 1)
  72. {
  73. draw_sprite_ext(FlameS, alarm[5] + i + random(2), x + flameArray_x[i], y + flameArray_y[i], 1, 1, 0, c_white, burnDuration / maxDuration * 0.71);
  74. }
  75. }
  76. ');
Add Comment
Please, Sign In to add comment