1
2
3
4
5
6
2
3
4
5
6
addhook("objectkill","npckill") function npckill(id,ply) if object(id,"type") == 5 then parse("sv_sound2 "..ply.." \"p-song/turret_disabled_1.wav\"") end end
addhook("objectkill","npckill") function npckill(id,ply) if object(id,"type") == 5 then parse("sv_sound2 "..ply.." \"p-song/turret_disabled_1.wav\"") end end
function convert(p) 	return math.floor(p/32) end addhook("objectkill","npckill") function npckill(id,ply) 	if object(id,"type") == 30 then -- NPC? 		if entity(convert(object(id,"x")),convert(object(id,"y")),"int1") == 5 then 			parse("sv_sound2 "..ply.." /fun/thats_the_way.wav") 		end 	end end