12-16-2007, 06:06 PM | #2 |
Join Date: Mar 2007
Posts Rated Helpful 5 Times
|
request: ability to have invincibility+quad damage.
|
|
12-16-2007, 06:15 PM | #3 |
[AE] 0112 Ihmhi *SJB
Wiki Team
Fortress Forever Staff |
Nigh-invincibility is already pretty well covered with the concmap script... on stino's conc_course I have never died as demo from my pipes.
Now all we need is quad. Quad in FF 1.2! Hear hear!
__________________
Anime: The Thread: Reloaded The one and only anime thread on these here forums. Select the pistol, and then, select your horse. |
|
12-16-2007, 06:46 PM | #4 |
Nutcracker
|
You have it already. This is from ff_hold and you need to edit it a bit, but I guess you can do that. Invincibility works the same way, just set the damage to 0.
But, you can't change the push force of an explosion. Code:
----------------------------------------------------------------------------- -- Damage event - Add Quad Damage ----------------------------------------------------------------------------- function player_ondamage( player, damageInfo ) -- If the flagholder isn't on the hold area do nothing if not REGENERATING_ENABLED then return end -- Entity that is attacking local attacker = damageInfo:GetAttacker() -- If no attacker do nothing if not attacker then return end -- If attacker is a player if IsPlayer(attacker) then local playerAttacker = CastToPlayer(attacker) -- If player isn't carrying the flag do nothing if not playerAttacker:HasItem("flag") then return end -- If player is damaging self do nothing if player:GetId() == playerAttacker:GetId() then return end -- If all conditions are true, increase player's damage to 400% - Quad Damage damageInfo:SetDamage(damageInfo:GetDamage() * DAMAGE_BONUS) end -- If attacker is a sentry gun or dispenser local playerAttacker = nil if IsSentrygun(attacker) then playerAttacker = CastToSentrygun(attacker) elseif IsDispenser(attacker) then playerAttacker = CastToDispenser(attacker) else return end -- If owner isn't carrying the flag do nothing if not playerAttacker:GetOwner():HasItem("flag") then return end -- If owner is damaging self do nothing if player:GetId() == playerAttacker:GetOwner():GetId() then return end -- If all conditions are true, increase sentry gun's or dispenser's damage to 400% - Quad Damage damageInfo:SetDamage(damageInfo:GetDamage() * DAMAGE_BONUS) end |
|
12-16-2007, 06:48 PM | #5 |
Join Date: Mar 2007
Posts Rated Helpful 5 Times
|
damageInfo:SetDamage(damageInfo:GetDamage() * 4)
thats all you need pretty much, but you can't do both at the same time. |
|
12-21-2007, 12:35 PM | #6 |
Join Date: Mar 2007
Posts Rated Helpful 0 Times
|
dont do it at the same time then?
DAMAGETAKEN['ID'] = damageInfo:GetDamage() ADDSHEDULE ... 0.001 sec? the shedule: damageInfo:SetDamage(DAMAGETAKEN['ID']*4) just a guess |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|