02-10-2015, 07:17 AM | #1 |
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 |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|