I know I can disable friendly fire with mp_killteambuildings but I don't want to damage it by myself.
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
--FRIENDLY FIRE ON TURRET addhook("objectdamage","turretDamageFriendly") function turretDamageFriendly(oid,damage,player) 	if damage > 0 then 	--if damage is higher than 0 		if object(oid,"type") == 7 then 	--if dyn. object id is 7 (turret) 			if player(id,"team") == 2 then 	--if it is CT player damaging 				return 1 --don't damage building 			end 		end 	end end