09-17-2007, 08:21 PM | #1 |
Joystick Junkie
D&A Member
|
A few questions concerning lua
Alright, here's the deal:
In my soccer map (Azzuri), The teams are the Azzuri (The Italian national soccer team) and the French national soccer team. So, whenever one team scores, I want a team specific sound to be played. Also, I want to make two other teams for the goalies. How do I make them friendly with their respective teams, and how do I keep them from leaving the goal post area? My other question, is how to keep the players from crossing the middle of the field, until 5 seconds have passed, and to display a timer counting down until they can pass, and thus try to get the ball. If anyone could help me out with these, that would be great.
__________________
I like chocolate milk. |
|
09-17-2007, 09:08 PM | #2 |
Join Date: Sep 2007
Posts Rated Helpful 0 Times
|
To make the other guys allies you'd have to do:
team:SetAllies( Team.kRed ) For keeping the goaly in the goal box, my suggestion would be to use trigger_ff_clip and code it that way. To move them back, you can just respawn them using: ApplyToPlayer( player, {AT.kRespawnPlayers}) |
|
09-17-2007, 09:38 PM | #3 |
Join Date: May 2007
Posts Rated Helpful 0 Times
|
Didn't "Pigskin" or something do that thing with the invisible wall to keep them at distance for the opener? Clip brush would work for the goalie.
In my map Super_Soccer_Concer_r I created trigger_hurts which increased damage the further the goalie went out... allowing the goalie to leave. I also put it in for Goalie Kicks... Since the ball couldn't be kicked I made a launch ramp with a push to kick the ball upfield and the goalie to his death. The goalies were HWs and the players were Medics and Scouts... it was very fun!!!... but back to your topic. Can any of the "Tools" textures be created into func_train or moveable walls? Clip or Invisible? That would solve your wall problem. Another idea is a func_push to keep them at bay and I'm almost positive you can toggle those on and off with a logic_timer or whatever. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|