03-05-2009, 02:54 PM | #1 |
Join Date: Feb 2009
Gametype: Capture the Flag Posts Rated Helpful 0 Times
|
Lua for new gamemode
I was wondering if it would be possible to make a lua for a gamemode like bombing run in Unreal Championship. Maybe you could use something from the murderball lua and capture the flag? I would also like to be able to make a "Bomb Gun" that is the only weapon you can have out while you have the bomb, and you can passes and what not to other players on your team. This would also allow you to shoot the bomb through the bomb target from a distance but you would get fewer points. So any help is appreciated.
|
|
03-05-2009, 03:10 PM | #2 |
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
|
One limitation in specific:
Currently, after an object is tossed, we cannot keep track of who tossed it (team or player) So the only way I can see to do your goals is to have it trigger when the object passes through it and award points to the opposite team, but you can't specify a specific player AFAIK. |
|
03-05-2009, 03:21 PM | #3 |
Join Date: Feb 2009
Gametype: Capture the Flag Posts Rated Helpful 0 Times
|
Well it really wouldn't matter who threw it. Just what team did because only red could score on blue and vicew versa. and besides you are going for team points to win the game, not individual points. So it is possible then. Could someone help me out with this then because I think it would be a great new style of gaming for ff players looking for something new.
|
|
03-05-2009, 04:20 PM | #4 |
D&A Member
Wiki Team Fortress Forever Staff Join Date: Apr 2007
Posts Rated Helpful 31 Times
|
Actually, balls and flags don't currently work with triggers. You may be able to get the ball's position, and compare it to a certain range of coordinates to see if it's in your target zone. Keeping track of who had the ball last could be easily done.
Adding a new weapon is out of the scop of the lua system. However you could take the player's ammo away to keep him from shooting. |
|
03-05-2009, 10:21 PM | #5 |
Join Date: Feb 2009
Gametype: Capture the Flag Posts Rated Helpful 0 Times
|
what if i were to use a white neutral flag as the ball and just use a cap point for each and change the amount of points u recieve for a cap? and what about being able to throw the flag into int to cap point. could that be done?
|
|
03-06-2009, 12:13 AM | #6 |
D&A Member
Wiki Team Fortress Forever Staff Join Date: Apr 2007
Posts Rated Helpful 31 Times
|
That would be just like push or waterpolo. It would be very easy to make a map like that.
Throwing the ball into the cap is an iffy proposition, as I explained above. We want to make that work properly in future. |
|
03-06-2009, 03:13 PM | #7 |
Join Date: Feb 2009
Gametype: Capture the Flag Posts Rated Helpful 0 Times
|
So then it would be possible to make this happen? I was wondering what you were talking about with entities not working with goals because waterpolo is the perfect example of what im looking for only I want it based as a bomb and thrown into a bomb target. I'm also sure that we could play around and find some way to make the throwing thing work. Aren't there some maps that teleport the flag back to its spawning point if it lands in a func_hurt? because I'm sure that we could change that into something similar for the throwing the bomb. As far as the "bomb gun" goes, I think that your idea of taking away ammo is good.... I just think that they should get it back after they no longer posses the bomb and can only have the crowbar out as well as not being able to pick up more ammo. Would there be a way to allow the rpg or napalm cannon to fire the bomb or something like that?
|
|
03-06-2009, 08:01 PM | #8 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
Triggers cannot detect info_ff_scripts falling into them (used for flags, balls, any item that is picked up). You could potentially get around this using bomb_entity:GetOrigin() and comparing it to the origin of a "goal" entity, but it won't be 100% accurate.
You cannot attach throw to a weapon's attack. You can remove all weapons while they have the bomb and give the weapons back after they throw the bomb. You can change the throw speed of the bomb.
__________________
#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 |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|