08-20-2009, 05:44 PM | #1 |
Join Date: Sep 2007
Posts Rated Helpful 0 Times
|
No self damage from rockets
I want to do no self damage from rockets. I know this is possible however here is the tricky part. I want another team's rockets to hurt and also your own grenades. Pretty much I want to be able to rj all over the place and still fight.
|
|
08-20-2009, 11:31 PM | #2 |
UI Designer
Front-End Developer Fortress Forever Staff
Join Date: May 2008
Location: Winter Park, FL
Class/Position: D Eng Gametype: CTF 9v9 Affiliations: .gr , smr Posts Rated Helpful 46 Times
|
http://forums.fortress-forever.com/s...=ff_sa_extreme
just need to add damage for grenades :P err, the download link doesnt work ><
__________________
Maps : Haste |Scrummage |Mulch_Trench Voltage | Exchange Classic | Fortsake ricecakes: I demand SGs get a buff squeek.: buy it a gym membership 'I have an eye for design' - Kube 2014 Last edited by Ricey; 08-20-2009 at 11:37 PM. |
|
08-20-2009, 11:52 PM | #3 |
Lua Team
Join Date: Mar 2007
Posts Rated Helpful 1 Times
|
Code:
function player_ondamage( player, damageinfo ) -- if no damageinfo do nothing if not damageinfo then return end local inflictor = damageinfo:GetAttacker() local weapon = damageinfo:GetInflictor():GetClassName() if damageinfo:GetDamageType() == 32 then -- no fall damage damageinfo:SetDamage(0) elseif weapon == "ff_projectile_rocket" and inflictor:GetTeamId() == player:GetTeamId() then -- no rocket damage from the same team damageinfo:SetDamage(0) end end Last edited by Sidd; 08-21-2009 at 05:33 PM. Reason: fix the sillylua :/ |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|