Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

Reply
 
Thread Tools Display Modes
Old 07-24-2008, 11:32 PM   #1
GeoKill----->
Community Member
Server Owner
Beta Tester
Forum Moderator
 
GeoKill----->'s Avatar
 
Join Date: Mar 2007
Location: Hawthorne, California
Class/Position: Soldier/Spy/Scout
Gametype: AvD
Affiliations: :e0:Eternal Order Leader
Posts Rated Helpful 12 Times
Ball Carrier and Allies

So Ruta mention how people are supposed to go after the ball carrier in Murderball but people were not doing that. So it got me thinking.

Is it possible to make Teams that don't have the ball into allies and once the ball is drop then they are not allied no more?
__________________

:e0: Will live on Forever
Support FF:
GeoKill-----> is offline   Reply With Quote


Old 07-26-2008, 04:43 AM   #2
Tsukasa
 
Join Date: Sep 2007
Class/Position: O
Gametype: CTF
Affiliations: mimic-
Posts Rated Helpful 0 Times
Sure, have two teams.

Tsukasa is offline   Reply With Quote


Old 07-26-2008, 04:51 AM   #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
I'm sure you could hot-swap the Lua code for Hunted? (Red and Blue allies).

The thing is, infighting among the other three teams, accidental kills, etc. are part of the fun of murderball.

I know the objective icon can point towards an entity, but can it point towards a player in realtime? That might be nice for murderball.

Of course, one could also make the point that that might break the whole gameplay aspect of it. You're already roughly aware of where the ball is, so... yeah.
__________________
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 07-26-2008, 05:40 AM   #4
GeoKill----->
Community Member
Server Owner
Beta Tester
Forum Moderator
 
GeoKill----->'s Avatar
 
Join Date: Mar 2007
Location: Hawthorne, California
Class/Position: Soldier/Spy/Scout
Gametype: AvD
Affiliations: :e0:Eternal Order Leader
Posts Rated Helpful 12 Times
but how will it work so they don't become allies once the ball is dropped?

Also this will be tested, if it doesn't work or takes away the fun out of the map then I would revert it back.
__________________

:e0: Will live on Forever
Support FF:
GeoKill-----> is offline   Reply With Quote


Old 07-26-2008, 05:56 AM   #5
Rutabeggar
D&A Member
 
Rutabeggar's Avatar
 
Join Date: Jun 2007
Posts Rated Helpful 0 Times
I enjoy the chaos of murderball as much as anyone, but as Geo said, getting fragged mid-field while running to attack the team with the ball is just a buzz kill...

I was thinking something along the lines of when a team touches a ball, the ball acts as a trigger and the hot-swap happens as described above (if green touched the ball, blue, red, and yellow would be allies), place entities at the entrances to every base, i.e. the front doors, the cave, the bats, that turns the hot-swap off and that would allow for the "accidental" kills that happen when bum rushing but would make working with the other teams viable, the ball drop would return everyone back to enemies until it's picked up again...not sure if .lua can work that way...just an idea for Nuk3m.

Also, people wouldn't use snipers to pick off people in the mid field...would just shoot at each other.

1. Ball is in middle, everyone is still on opposing teams.
2. Ball gets picked up by green, .lua forces red, blue, and yellow to the same "team" while in mid-field
3. Players from red, blue, and yellow cross the thresholds of the green base, which has an entity trigger that turns off the previous .lua script
4. Chaos ensues in green base...ball is dropped
5. Ball returns to middle which triggers everything back to normal again until ball is picked up again.
6. Ball is picked up by blue, wash, rinse, repeat.

Last edited by Rutabeggar; 07-26-2008 at 06:12 AM.
Rutabeggar is offline   Reply With Quote


Old 07-26-2008, 06:05 AM   #6
Tsukasa
 
Join Date: Sep 2007
Class/Position: O
Gametype: CTF
Affiliations: mimic-
Posts Rated Helpful 0 Times
On a more serious note, I don't think its currently possible. Forcing a team switch respawns you I believe.
Tsukasa is offline   Reply With Quote


Old 07-26-2008, 06:27 AM   #7
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 350 Times
Send a message via AIM to squeek.
Quote:
Originally Posted by Tsukasa
On a more serious note, I don't think its currently possible. Forcing a team switch respawns you I believe.
Only if you also apply the respawn flag. It's very possible (see conc tag, but, uh, you can't yet; anyway, it's possible).

Also, setting and removing allies is possible.
__________________
#FF.Pickup Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington
squeek. is offline   Reply With Quote


Old 07-26-2008, 06:43 AM   #8
GeoKill----->
Community Member
Server Owner
Beta Tester
Forum Moderator
 
GeoKill----->'s Avatar
 
Join Date: Mar 2007
Location: Hawthorne, California
Class/Position: Soldier/Spy/Scout
Gametype: AvD
Affiliations: :e0:Eternal Order Leader
Posts Rated Helpful 12 Times
conc tag eh?
__________________

:e0: Will live on Forever
Support FF:
GeoKill-----> is offline   Reply With Quote


Old 07-26-2008, 06:56 AM   #9
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 350 Times
Send a message via AIM to squeek.
This should work, although it is untested.

When ball is picked up:
Code:
local carrying_team = GetTeam( player:getTeamId() )
SetAlliesAgainstCarrier( carrying_team )
When ball is dropped/returns:
Code:
ClearAllAllies()
And the functions that do the stuff:
Code:
function SetAlliesAgainstCarrier( carrying_team )
  -- 2 is blue, 3 is red, 4 is yellow, 5 is green
  for i=2,5
    local team = GetTeam( i )
    if team ~= carrying_team then
      for j=2,5
        local ally_team = GetTeam( j )
        if ally_team ~= carrying_team then
          team:SetAllies( ally_team:GetTeamId() )
        end
      end
    end
  end
end
Code:
function ClearAllAllies()
  -- 2 is blue, 3 is red, 4 is yellow, 5 is green
  for i=2,5
    local team = GetTeam( i )
    team:ClearAllies()
  end
end
I'm still not sure if it's possible to SetAllies outside the startup() function, but if it is... the above code should work.
__________________
#FF.Pickup Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington
squeek. is offline   Reply With Quote


Old 07-26-2008, 06:57 AM   #10
GeoKill----->
Community Member
Server Owner
Beta Tester
Forum Moderator
 
GeoKill----->'s Avatar
 
Join Date: Mar 2007
Location: Hawthorne, California
Class/Position: Soldier/Spy/Scout
Gametype: AvD
Affiliations: :e0:Eternal Order Leader
Posts Rated Helpful 12 Times
I'll test it out tnx
__________________

:e0: Will live on Forever
Support FF:
GeoKill-----> is offline   Reply With Quote


Old 07-26-2008, 11:11 AM   #11
Nezumi
Retired FF Staff
 
Nezumi's Avatar
 
Join Date: Mar 2007
Location: The Peoples Republic of Harmfull Free Radicals.
Class/Position: Soldier, O
Gametype: Doubble Mode
Affiliations: Cassiotone Nation
Posts Rated Helpful 1 Times
It might work better if teams that don't have possesion do like half damage to eachother.

...should that be possible.
__________________
TG: pretty much you have no idea how much i fuckin own at this game.
TG: i bested no less than three flaming tornados and broke a huge wizard.
Nezumi is offline   Reply With Quote


Old 07-26-2008, 12:10 PM   #12
pF
no war but class war
Fortress Forever Staff
 
pF's Avatar
 
Join Date: Oct 2007
Location: big bad berlin
Class/Position: Soldier / Scout
Gametype: ctf
Affiliations: [w~k!]
Posts Rated Helpful 3 Times
This might be useful for Peon's FFNL footy league ..
__________________
Support FF:

Gay And Lesbian Fiction | Teen Books | Bath Products
pF is offline   Reply With Quote


Old 07-26-2008, 08:09 PM   #13
GeoKill----->
Community Member
Server Owner
Beta Tester
Forum Moderator
 
GeoKill----->'s Avatar
 
Join Date: Mar 2007
Location: Hawthorne, California
Class/Position: Soldier/Spy/Scout
Gametype: AvD
Affiliations: :e0:Eternal Order Leader
Posts Rated Helpful 12 Times
Well Squeek's code was bug or something not sure but Jester helped me out last night. The Lua works and tested this out with around 11 people. People were a bit confused at first but after a while they got the hang of it. Tnx you guys
__________________

:e0: Will live on Forever
Support FF:
GeoKill-----> is offline   Reply With Quote


Old 07-27-2008, 03:27 AM   #14
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 350 Times
Send a message via AIM to squeek.
Mind posting Jester's code for fun?
__________________
#FF.Pickup Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington
squeek. is offline   Reply With Quote


Old 07-27-2008, 04:48 AM   #15
Jester
Fortress Forever Staff
 
Jester's Avatar
 
Join Date: Sep 2007
Class/Position: O: Scout
Affiliations: {NFO} - New Family Order
Posts Rated Helpful 0 Times
You just forgot "do's" with your "for's" (if->then for->do) and your SetAlliesAgainstCarrier needed to take in the team ID not the team.

http://pastebin.com/m60cc4233
Theres the snippets of the lua.
Jester is offline   Reply With Quote


Old 07-27-2008, 05:22 AM   #16
pF
no war but class war
Fortress Forever Staff
 
pF's Avatar
 
Join Date: Oct 2007
Location: big bad berlin
Class/Position: Soldier / Scout
Gametype: ctf
Affiliations: [w~k!]
Posts Rated Helpful 3 Times
Jester = beast.
__________________
Support FF:

Gay And Lesbian Fiction | Teen Books | Bath Products
pF is offline   Reply With Quote


Old 07-27-2008, 11:20 AM   #17
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 350 Times
Send a message via AIM to squeek.
Quote:
Originally Posted by Jester
You just forgot "do's" with your "for's" (if->then for->do) and your SetAlliesAgainstCarrier needed to take in the team ID not the team.

http://pastebin.com/m60cc4233
Theres the snippets of the lua.
Ah, thanks for sorting that.
__________________
#FF.Pickup Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington
squeek. is offline   Reply With Quote


Old 08-15-2008, 06:01 PM   #18
MonoXideAtWork
Pub Allstar!
Beta Tester
 
Join Date: Aug 2008
Class/Position: under en kvinna
Gametype: Capture the Flag
Affiliations: Eternal Order, Must be h4x, Mono's happy funtime.
Posts Rated Helpful 0 Times
I had a chance to play this last night with Killtron, and while being confused at first, I think it adds a very much needed team element to the map! We had the closest team scores I had ever seen in a pub with something like 48 50 76 7. Not bad at all for a game that is usually red against the world. I was on yellow (76 points) whoooooo.
MonoXideAtWork is offline   Reply With Quote


Old 08-15-2008, 09:42 PM   #19
Hammock
D&A Member
 
Join Date: Sep 2007
Posts Rated Helpful 13 Times
Will the objective icon show where the ball carrier is? That would suck. Half the battle of O is locating the ball carrier in the base. Would definately suck the fun out of the game if everyone knew exactly where to enter and spam the enemy base.
Hammock is offline   Reply With Quote


Old 08-15-2008, 09:49 PM   #20
GeoKill----->
Community Member
Server Owner
Beta Tester
Forum Moderator
 
GeoKill----->'s Avatar
 
Join Date: Mar 2007
Location: Hawthorne, California
Class/Position: Soldier/Spy/Scout
Gametype: AvD
Affiliations: :e0:Eternal Order Leader
Posts Rated Helpful 12 Times
I really doubt the icon would be used in this map
__________________

:e0: Will live on Forever
Support FF:
GeoKill-----> 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 06:05 AM.


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