Advertisement
Guest User

Untitled

a guest
Aug 14th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. //================================================================================================
  2. // File Name : captains_curse.gsc
  3. // Authors : ZCTxCHAOSx, Quizz and ConvictioNDR
  4. // Notes : Original written by ZCTxCHAOSx and Quizz. Modified and ported into Black Ops 3 by ConvictioNDR.
  5. //================================================================================================
  6. #using scripts\shared\flag_shared;
  7. #using scripts\zm\_zm_score;
  8. #using scripts\shared\util_shared;
  9. #using scripts\zm\_zm_utility;
  10. #using scripts\zm\_zm_audio;
  11.  
  12. function main()
  13. {
  14. activation = GetEnt("power_player","targetname");
  15. thread give_power_to_player(activation);
  16. }
  17. function give_power_to_player(trig)
  18. {
  19. trig SetCursorHint( "HINT_NOICON" );
  20. while(1)
  21. {
  22. cost = 1500;
  23. trig sethintstring("Press [{+activate}] to call upon the Captain's Curse ^3[Cost: "+cost+"]");
  24. trig waittill( "trigger", player );
  25.  
  26. if(player.score >= cost)
  27. {
  28. zm_utility::play_sound_at_pos( "purchase", player.origin );
  29. trig sethintstring("Come Back Next Round");
  30. player zm_score::minus_to_player_score(cost);
  31. player EnableInvulnerability();
  32. player SetBlur( 2.0, 1.0 );
  33. for(i=0;i<30;i++) // lasts 15 seconds
  34. {
  35. zombies = GetAiSpeciesArray("axis");
  36. for(k=0;k<zombies.size;k++)
  37. {
  38. if(Distance2D( player.origin, zombies[k].origin ) < 256)
  39. zombies[k] dodamage( zombies[k].health + 200, zombies[k].origin );
  40. }
  41. wait .5;
  42. }
  43.  
  44. player DisableInvulnerability();
  45. player SetBlur( 0.01, 1.0 );
  46. level waittill( "between_round_over" );
  47. }
  48. else
  49. {
  50. player playsound( "evt_perk_deny" );
  51. player zm_audio::create_and_play_dialog( "general", "outofmoney" );
  52. wait 1.5;
  53. }
  54. }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement