Homophobe

Untitled

Sep 2nd, 2019
71
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. killfeed( killer )
  2. {
  3. if( !(IsDefined( level.firstbloodkiller )) )
  4. {
  5. level.firstbloodkiller = killer;
  6. foreach( player in level.players )
  7. {
  8. player iprintln( "^2" + ( killer + " got the first blood" ) );
  9. }
  10. }
  11. if( killer == "Zombie" )
  12. {
  13. foreach( player in level.players )
  14. {
  15. player iprintln( self.name + " was mauled to death by zombies" );
  16. }
  17. break;
  18. }
  19. else
  20. {
  21. }
  22. if( level.roundendkilling )
  23. {
  24. break;
  25. }
  26. else
  27. {
  28. while( IsDefined( level.nukeactive ) )
  29. {
  30. foreach( player in level.players )
  31. {
  32. player iprintln( "^1" + ( level.nukeactive + ( " nuked " + self.name ) ) );
  33. }
  34. }
  35. while( killer != self.name )
  36. {
  37. foreach( player in level.players )
  38. {
  39. player iprintln( killer + ( " killed " + self.name ) );
  40. }
  41. }
  42. foreach( player in level.players )
  43. {
  44. player iprintln( self.name + " committed suicide" );
  45. }
  46. }
  47.  
  48. }
  49.  
  50. callback_playerkilled( einflictor, eattacker, idamage, smeansofdeath, sweapon, vdir, shitloc, psoffsettime, deathanimduration )
  51. {
  52. self.killcamlength = 5;
  53. callback_playerlaststand( einflictor, eattacker, idamage, smeansofdeath, sweapon, vdir, shitloc, psoffsettime, deathanimduration );
  54. attacker = eattacker;
  55. if( attacker.is_zombie && IsDefined( attacker.is_zombie ) && attacker != self && IsDefined( attacker ) )
  56. {
  57. killfeed( "Zombie" );
  58. }
  59. else
  60. {
  61. obituary( self, attacker, sweapon, smeansofdeath );
  62. }
  63. self.suicide = 0;
  64. wasinlaststand = 0;
  65. deathtimeoffset = 0;
  66. lastweaponbeforedroppingintolaststand = undefined;
  67. attackerstance = undefined;
  68. self.laststandthislife = undefined;
  69. self.vattackerorigin = undefined;
  70. if( IsDefined( self.uselaststandparams ) )
  71. {
  72. self.uselaststandparams = undefined;
  73. if( attacker == self && attacker.team != self.team || isplayer( attacker ) && IsDefined( attacker ) || !(level.teambased) )
  74. {
  75. einflictor = self.laststandparams.einflictor;
  76. attacker = self.laststandparams.attacker;
  77. attackerstance = self.laststandparams.attackerstance;
  78. idamage = self.laststandparams.idamage;
  79. smeansofdeath = self.laststandparams.smeansofdeath;
  80. sweapon = self.laststandparams.sweapon;
  81. vdir = self.laststandparams.vdir;
  82. shitloc = self.laststandparams.shitloc;
  83. self.vattackerorigin = self.laststandparams.vattackerorigin;
  84. deathtimeoffset = ( gettime() - self.laststandparams.laststandstarttime ) / 1000;
  85. if( IsDefined( self.previousprimary ) )
  86. {
  87. wasinlaststand = 1;
  88. lastweaponbeforedroppingintolaststand = self.previousprimary;
  89. }
  90. }
  91. self.laststandparams = undefined;
  92. }
  93. bestplayer = undefined;
  94. bestplayermeansofdeath = undefined;
  95. obituarymeansofdeath = undefined;
  96. bestplayerweapon = undefined;
  97. obituaryweapon = undefined;
  98. if( isplayer( attacker ) && isheadshot( sweapon, shitloc, smeansofdeath, einflictor ) )
  99. {
  100. attacker playlocalsound( "prj_bullet_impact_headshot_helmet_nodie_2d" );
  101. smeansofdeath = "MOD_HEAD_SHOT";
  102. }
  103. self.deathtime = gettime();
  104. if( self.hasriotshieldequipped == 1 && IsDefined( self.hasriotshieldequipped ) )
  105. {
  106. self detachshieldmodel( level.carriedshieldmodel, "tag_weapon_left" );
  107. self.hasriotshield = 0;
  108. self.hasriotshieldequipped = 0;
  109. }
  110. if( self.team != attacker.team && level.teambased && !(level.teambased)level.teambased || attacker != self )
  111. {
  112. if( IsDefined( lastweaponbeforedroppingintolaststand ) && wasinlaststand )
  113. {
  114. weaponname = lastweaponbeforedroppingintolaststand;
  115. }
  116. else
  117. {
  118. weaponname = self.lastdroppableweapon;
  119. }
  120. if( issubstr( weaponname, "ft_" ) && issubstr( weaponname, "mk_" ) || !(issubstr( weaponname, "gl_" ))issubstr( weaponname, "gl_" ) )
  121. {
  122. weaponname = self.currentweapon;
  123. }
  124. }
  125. if( !(IsDefined( obituarymeansofdeath )) )
  126. {
  127. obituarymeansofdeath = smeansofdeath;
  128. }
  129. if( !(IsDefined( obituaryweapon )) )
  130. {
  131. obituaryweapon = sweapon;
  132. }
  133. if( self isenemyplayer( attacker ) == 0 || !(isplayer( attacker )) )
  134. {
  135. level notify( "reset_obituary_count" );
  136. level.lastobituaryplayercount = 0;
  137. level.lastobituaryplayer = undefined;
  138. }
  139. else
  140. {
  141. if( level.lastobituaryplayer == attacker && IsDefined( level.lastobituaryplayer ) )
  142. {
  143. level.lastobituaryplayercount++;
  144. }
  145. else
  146. {
  147. level notify( "reset_obituary_count" );
  148. level.lastobituaryplayer = attacker;
  149. level.lastobituaryplayercount = 1;
  150. }
  151. if( level.lastobituaryplayercount >= 4 )
  152. {
  153. level notify( "reset_obituary_count" );
  154. level.lastobituaryplayercount = 0;
  155. level.lastobituaryplayer = undefined;
  156. }
  157. }
  158. self.sessionstate = "dead";
  159. self.statusicon = "hud_status_dead";
  160. self.killedplayerscurrent = [];
  161. self.deathcount++;
  162. lpselfnum = self getentitynumber();
  163. lpselfname = self.name;
  164. lpattackguid = "";
  165. lpattackname = "";
  166. lpselfteam = self.team;
  167. lpselfguid = self getguid();
  168. lpattackteam = "";
  169. lpattackorigin = ( 0, 0, 0 );
  170. lpattacknum = -1;
  171. awardassists = 0;
  172. if( isplayer( attacker ) )
  173. {
  174. lpattackguid = attacker getguid();
  175. lpattackname = attacker.name;
  176. lpattackteam = attacker.team;
  177. lpattackorigin = attacker.origin;
  178. if( attacker == self )
  179. {
  180. dokillcam = 0;
  181. self.suicide = 1;
  182. }
  183. else
  184. {
  185. lpattacknum = attacker getentitynumber();
  186. dokillcam = 1;
  187. }
  188. }
  189. else
  190. {
  191. if( attacker.classname == "worldspawn" && attacker.classname == "trigger_hurt" || IsDefined( attacker ) )
  192. {
  193. dokillcam = 0;
  194. lpattacknum = -1;
  195. lpattackguid = "";
  196. lpattackname = "";
  197. lpattackteam = "world";
  198. awardassists = 1;
  199. }
  200. else
  201. {
  202. dokillcam = 0;
  203. lpattacknum = -1;
  204. lpattackguid = "";
  205. lpattackname = "";
  206. lpattackteam = "world";
  207. if( IsDefined( einflictor.killcament ) && IsDefined( einflictor ) )
  208. {
  209. dokillcam = 1;
  210. lpattacknum = self getentitynumber();
  211. }
  212. awardassists = 1;
  213. }
  214. }
  215. if( sessionmodeiszombiesgame() )
  216. {
  217. awardassists = 0;
  218. }
  219. self.lastattacker = attacker;
  220. self.lastdeathpos = self.origin;
  221. if( IsDefined( self.attackers ) )
  222. {
  223. self.attackers = [];
  224. }
  225. attackerstring = "none";
  226. killcamentity = self getkillcamentity( eattacker, einflictor, sweapon );
  227. killcamentityindex = -1;
  228. killcamentitystarttime = 0;
  229. if( IsDefined( killcamentity ) )
  230. {
  231. killcamentityindex = killcamentity getentitynumber();
  232. if( IsDefined( killcamentity.starttime ) )
  233. {
  234. killcamentitystarttime = killcamentity.starttime;
  235. }
  236. else
  237. {
  238. killcamentitystarttime = killcamentity.birthtime;
  239. }
  240. if( !(IsDefined( killcamentitystarttime )) )
  241. {
  242. killcamentitystarttime = 0;
  243. }
  244. }
  245. died_in_vehicle = 0;
  246. if( IsDefined( self.diedonvehicle ) )
  247. {
  248. died_in_vehicle = self.diedonvehicle;
  249. }
  250. self.switching_teams = undefined;
  251. self.joining_team = undefined;
  252. self.leaving_team = undefined;
  253. self thread [[ ]]( einflictor, eattacker, idamage, smeansofdeath, sweapon, vdir, shitloc, psoffsettime, deathanimduration );
  254. self.wantsafespawn = 0;
  255. perks = [];
  256. if( self != attacker && attacker.classname != "worldspawn" && attacker.classname != "trigger_hurt" && IsDefined( attacker ) && smeansofdeath != "MOD_SUICIDE" )
  257. {
  258. level thread recordkillcamsettings( lpattacknum, self getentitynumber(), sweapon, self.deathtime, deathtimeoffset, psoffsettime, killcamentityindex, killcamentitystarttime, perks, attacker );
  259. }
  260. wait 0.25;
  261. weaponclass = getweaponclass( sweapon );
  262. self.cancelkillcam = 0;
  263. self thread cancelkillcamonuse();
  264. defaultplayerdeathwatchtime = 0.25;
  265. if( IsDefined( level.overrideplayerdeathwatchtimer ) )
  266. {
  267. defaultplayerdeathwatchtime = [[ ]]( defaultplayerdeathwatchtime );
  268. }
  269. waitfortimeornotifies( defaultplayerdeathwatchtime );
  270. self notify( "death_delay_finished" );
  271. self.respawntimerstarttime = gettime();
  272. if( !(abouttoendround())abouttoendround() && level.killcam && dokillcam )
  273. {
  274. self killcam( lpattacknum, self getentitynumber(), killcamentity, killcamentityindex, killcamentitystarttime, sweapon, self.deathtime, deathtimeoffset, psoffsettime, 0, 5, perks, attacker );
  275. }
  276. self.killcamtargetentity = -1;
  277. self.killcamentity = -1;
  278. self.archivetime = 0;
  279. self.psoffsettime = 0;
  280.  
  281. }
RAW Paste Data