1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function cod_hit(v,s,h,wpn) if player(s,"exists") then if cod_extrad[s]==1 then local dmg = h * 1.4 if player(v,"health") - dmg > 0 then parse('sethealth '..v..' '..player(v,"health") - dmg) 				cod_msg2(s,3,'Hit player for: '..dmg..'') return 1 			end elseif cod_dangerclose[s]==1 then 					local dmg = h * 1.75 			if player(v,"health") - dmg > 0 then 				if weapon == 51 or weapon == 73 or weapon == 77 or weapon == 89 then 	parse('sethealth '..v..' ' ..player(v,"health") - dmg) 			cod_damagetaken[v] = cod_damagetaken[v] + dmg 			Unbreakable(v) 			return 1 				end 			end else cod_damagetaken[v] = cod_damagetaken[v] + h Unbreakable(v) end end end
Im also using SQ's achievements script which plays around with hit hook but I set everything to return 1 if cod_extrad[s]==1 so that shouldnt be a problem as well.
EDIT: Should I even bother adding these two perks? If a command is parsed every time a bullet hits another players does this have the possibility to seriously slow down the server?
edited 1×, last 21.12.17 07:23:52 pm