Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-10-2015, 06:17 AM   #1
[TALOS]Smoke
 
Join Date: Jul 2012
Location: Killeen, Tx, USA
Class/Position: Demo Defense
Gametype: Capture the Flag
Affiliations: [TALOS]
Posts Rated Helpful 3 Times
help with a hide and seek lua function

I'm working on a map and need a lua function that makes the seekers receive no damage other than from the tranq and/or knife. I have this so far...

function player_ondamage( player, damageinfo )

if player:GetTeamId() == SEEKERS then
if ( weapon == "ff_weapon_knife" ) then
damageinfo:SetDamage(1);

else

damageinfo:ScaleDamage(0)

end

return
end
end
[TALOS]Smoke is offline   Reply With Quote


 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:42 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.