View Single Post
Old 02-10-2015, 04:43 PM   #2
R00Kie
Kawaii! ルーキー
Lua Team
Wiki Team
Fortress Forever Staff
 
R00Kie's Avatar
 
Join Date: Jan 2008
Location: Nowhere, Kansas
Class/Position: Random
Gametype: CTF
Affiliations: BiG, Kawaii!, MustacheBrigade, GoodFellas
Posts Rated Helpful 82 Times
Code:
function player_ondamage(player, damageinfo) 
	if not damageinfo then return end
	local weapon = damageinfo:GetInflictor():GetClassName()

	if player:GetTeamId() == SEEKERS then
		if weapon == "ff_weapon_knife" or weapon == "ff_projectile_dart" then
			return
		else
			damageinfo:SetDamage(0)
		end
	end
end
__________________
Released: [ Island ] [ Rookie ] [ Limbo ] [ Sonic ] [ Tomb ] [ Skydive2 ] [ Bunkerwars ]
Beta: [ Argon ] [ Reflection ] [ Urbantag ]
Lua: [ game_rules ]
R00Kie is offline   Reply With Quote


1 members found this post helpful.