1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-------------------------------------------------
-- FragHE by IiI ------------------------------
-------------------------------------------------
parse("mp_wpndmg he 40")
parse("mp_wpndmg GrenadeLauncher 30")
addhook("projectile","_projectile")
function _projectile(id,wep,x,y)
	if wep==51 then
		parse("spawnprojectile "..id.." 49 "..x.." "..y.." 90 0")
		parse("spawnprojectile "..id.." 49 "..x.." "..y.." 90 60")
		parse("spawnprojectile "..id.." 49 "..x.." "..y.." 90 120")
		parse("spawnprojectile "..id.." 49 "..x.." "..y.." 90 180")
		parse("spawnprojectile "..id.." 49 "..x.." "..y.." 90 240")
		parse("spawnprojectile "..id.." 49 "..x.." "..y.." 90 300")
	end
end
addhook("hit","_hit")
function _hit(victim,source,weapon,hpdmg,apdmg,rawdmg)
	if player(victim,"health")-hpdmg <= 0 and weapon==49 then
		parse("customkill "..source.." Grenadefrag "..victim)
		return 1
	end
end