Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

Reply
 
Thread Tools Display Modes
Old 10-18-2009, 06:51 AM   #1
WattaTweest
Trimpin' ain't easy.
 
Join Date: Sep 2009
Location: California
Class/Position: O Demoman
Gametype: Control Points
Posts Rated Helpful 0 Times
Send a message via AIM to WattaTweest Send a message via MSN to WattaTweest
Simply changing skins, or remembering the last team you were on.

Working on a game mode similar to Push, but I'd like the ball carrier to switch to a different team once they pick the ball up, so either team could attack them, and once they're killed, or drop the ball, they revert back to their original team. I'm no good at LUA, so any assistance would be greatly appreciated!
WattaTweest is offline   Reply With Quote


Old 10-18-2009, 08:23 PM   #2
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
murderball?
MonoXideAtWork is offline   Reply With Quote


Old 10-19-2009, 12:42 AM   #3
theqwert125
 
Join Date: Oct 2007
Posts Rated Helpful 0 Times
Sounds more like he wants to make a Tag gamemode, where the ball makes you it.
theqwert125 is offline   Reply With Quote


Old 10-19-2009, 12:46 AM   #4
WattaTweest
Trimpin' ain't easy.
 
Join Date: Sep 2009
Location: California
Class/Position: O Demoman
Gametype: Control Points
Posts Rated Helpful 0 Times
Send a message via AIM to WattaTweest Send a message via MSN to WattaTweest
Similar to murderball, but there are still capture points rather then the whole hold onto the ball as long as you can. The reason I want the team to change is I want teammates and enemies be able to push them with rockets/concs/pipes because once they pick up the ball, they lose all their grenades/ammo and their walk speed is reduced. It's gonna be a mainly soldier/demo/scout map.
WattaTweest is offline   Reply With Quote


Old 10-19-2009, 02:51 AM   #5
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 352 Times
Send a message via AIM to squeek.
It's possible. I'll try to write the code for it in a bit.
__________________
#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 10-19-2009, 04:05 AM   #6
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 352 Times
Send a message via AIM to squeek.
Wait, what?

The point of changing the ball carrier's team is so that people can push him? People can push him no matter what team he's on.

A little more explanation of exactly what you want the lua to do would help.

EDIT: If you're good enough to write the lua to change someones speed/remove weapons when they get the ball, then here are the functions you need to do what you want:

Code:
-- to keep track of the old team, store the value of this somewhere
player:GetTeamId()

-- to change a players team without them respawning
ApplyToPlayer( player, { AT.kChangeTeamYellow } )
You'll have to use if then checks for each possible team when switching back to the old team.

If I read into your last post incorrectly and you need help with most/all of the lua, I can help you, but I do need some sort of clarification of what it is you want.
__________________
#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

Last edited by squeek.; 10-19-2009 at 04:10 AM.
squeek. is offline   Reply With Quote


Old 10-19-2009, 07:37 AM   #7
WattaTweest
Trimpin' ain't easy.
 
Join Date: Sep 2009
Location: California
Class/Position: O Demoman
Gametype: Control Points
Posts Rated Helpful 0 Times
Send a message via AIM to WattaTweest Send a message via MSN to WattaTweest
I know 0 LUA I've read over some of the includes, and it looks like I might be able to get SOME of the basics down, but framework would be really helpful.

The basic rules, 2 teams on either side of a giant box have to run to a ball in the middle. The person who picks up the ball I'd like to change teams so they can be "pushed" so to speak by concs/grenades/rockets, but STILL take damage from them. If possible, I want them to be slowed down, but also have the damage they take from attacks reduced by about 75% (or whatever works best after playtesting)

At both sides of the box, there are capture points for opposing teams. The main objective is to push the carrier into the enemies side of the box and get them to the capture point. The reason I'd also like it to be a different team is because if you're defending, I want it to be possible to push an enemy carrier back into enemy territory.

Probably gonna get hated on a bit for this, but I basically took the idea from Red vs. Blue. They refer to it as Grifball.
WattaTweest is offline   Reply With Quote


Reply


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

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 02:41 AM.


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