Fortress Forever

Go Back   Fortress Forever > Editing > Mapping

Reply
 
Thread Tools Display Modes
Old 12-16-2007, 05:59 PM   #1
4est
Fortress Forever Staff
 
4est's Avatar
 
Join Date: Mar 2007
Location: OK
Posts Rated Helpful 0 Times
Send a message via Yahoo to 4est
[REQUEST] Pipejump and Rjump maps

[REQUEST] Pipejump and Rjump maps
__________________
Welcome to ZOMBOCOM!
Support FF:
4est is offline   Reply With Quote


Old 12-16-2007, 06:06 PM   #2
nodnarb
 
Join Date: Mar 2007
Posts Rated Helpful 5 Times
request: ability to have invincibility+quad damage.
nodnarb is offline   Reply With Quote


Old 12-16-2007, 06:15 PM   #3
Ihmhi
[AE] 0112 Ihmhi *SJB
Wiki Team
Fortress Forever Staff
 
Ihmhi's Avatar
 
Join Date: Mar 2007
Location: Newark, NJ, United States
Class/Position: A little bit o' everythin'
Gametype: Also a little bit o' everythin'
Affiliations: [AE] Asseater, *SJB Straight Jacket Brigade
Posts Rated Helpful 3 Times
Send a message via AIM to Ihmhi Send a message via MSN to Ihmhi Send a message via Yahoo to Ihmhi
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!
__________________
Support FF:
Anime: The Thread: Reloaded
The one and only anime thread on these here forums.

Select the pistol, and then, select your horse.
Ihmhi is offline   Reply With Quote


Old 12-16-2007, 06:46 PM   #4
A1win
Nutcracker
 
A1win's Avatar
 
Join Date: Sep 2007
Location: Kuopio, Finland
Posts Rated Helpful 0 Times
Send a message via MSN to A1win
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
A1win is offline   Reply With Quote


Old 12-16-2007, 06:48 PM   #5
nodnarb
 
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.
nodnarb is offline   Reply With Quote


Old 12-21-2007, 12:35 PM   #6
stino
 
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
stino is offline   Reply With Quote


Reply


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

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 01:25 AM.


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