Quick Request: Flag
Moderators: MR.D, Moderators
Quick Request: Flag
I'm starting work on an lua Gamemode gadget: capture the flag. Nothing special, just good ol' ctf. Whilst I have gained some lua coding skills recently, I have not a clue how to model or texture.
I would like to request a simple flag model with a base, similar to what's in unreal tournament. The flag should be teamcolored, with no extra symbols or designs (well, if you put the Spring logo on it, that'd be fine). The base can be fairly detailed, since you won't have more than 16 flags in a single game.
If you feel up to it, please script both flag and base as two units: the flag attached to the base, and the flag itself. All I really need in the script is some sort of waving animation sequence on the flag that's proportional to wind speed and direction. Everything else, I can probably code myself. The flag and base unit should have at least two pieces defined: the flag+pole and the base.
As for the widget itself, I feel fairly confident that I can make the gamemode work. If afterwards, someone would like to either show me how to or write code for defining custom flag parameters (color, symbol, etc.), that'd be great.
I would like to request a simple flag model with a base, similar to what's in unreal tournament. The flag should be teamcolored, with no extra symbols or designs (well, if you put the Spring logo on it, that'd be fine). The base can be fairly detailed, since you won't have more than 16 flags in a single game.
If you feel up to it, please script both flag and base as two units: the flag attached to the base, and the flag itself. All I really need in the script is some sort of waving animation sequence on the flag that's proportional to wind speed and direction. Everything else, I can probably code myself. The flag and base unit should have at least two pieces defined: the flag+pole and the base.
As for the widget itself, I feel fairly confident that I can make the gamemode work. If afterwards, someone would like to either show me how to or write code for defining custom flag parameters (color, symbol, etc.), that'd be great.
Re: Quick Request: Flag
Great idea. More gamemodes would definitely be good!
That phantom mode thing that Basic pointed out from Supreme Commander would be a nice addition too..
That phantom mode thing that Basic pointed out from Supreme Commander would be a nice addition too..
Re: Quick Request: Flag
HAH!
It's definitely possible to add a call-out to cob that lets you control how your unit grabs the flag, etc. I'm just not sure how I would go about attaching the flag, which would be a unit, to the carrier at a specific point on the model (unless there's some way to control the attachment point using lua, which I didn't see in the wiki). This applies because I want my gadget to be compatible with existing mods without having to change scripts or unit models.
My current plan is to have the flag be positioned at the same coordinates as the current position of the flag carrier. This way, my gadget can be immediately adapted to any mod, simply by defining which units in the mod can be flag carriers.
It's definitely possible to add a call-out to cob that lets you control how your unit grabs the flag, etc. I'm just not sure how I would go about attaching the flag, which would be a unit, to the carrier at a specific point on the model (unless there's some way to control the attachment point using lua, which I didn't see in the wiki). This applies because I want my gadget to be compatible with existing mods without having to change scripts or unit models.
My current plan is to have the flag be positioned at the same coordinates as the current position of the flag carrier. This way, my gadget can be immediately adapted to any mod, simply by defining which units in the mod can be flag carriers.
Re: Quick Request: Flag
If that looks daft, which on some units it might do, could you just put a floating, flashing flag icon above the flag carrier?
Re: Quick Request: Flag
I'll make you a flag, but tell me a bit how it should look, teamcolor?, a flag that looks like it's moving and bit or just straight?
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59
Re: Quick Request: Flag
Of course, it wouldn't necessarily need to be a flag. A flag could look kinda silly - could be some sort of energon ball or something along those lines...
- Guessmyname
- Posts: 3301
- Joined: 28 Apr 2005, 21:07
Re: Quick Request: Flag
"MWAHAHAHA! I HAVE CAPTURED YOUR BALLS!"Warlord Zsinj wrote:could be some sort of energon ball or something along those lines...
Yes, I can see that working perfectly

Re: Quick Request: Flag
lul
I had debated between having a flag being carried, or just having a flag icon displayed.
Now that I think of it, since it's less work for me, and easier for you to customize it, I'll go with having an icon display instead.
In any case, the flag+base unit would still be insanely useful.
I had debated between having a flag being carried, or just having a flag icon displayed.
Now that I think of it, since it's less work for me, and easier for you to customize it, I'll go with having an icon display instead.
In any case, the flag+base unit would still be insanely useful.
Re: Quick Request: Flag
as long as the flag carrier blinks and flashes, I'm fine with an icon.
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59
Re: Quick Request: Flag
What sort of CTF is it? - Is it first person to say, hold the flag for 15 minutes total or bring enemy flag A to friendly base point B?
I'd also think a king of the hill type game mode would be excellent, say, ensure your units are holding the designated area for X minutes total (that is, only your units exist within the target zone for your clock to activate)
I'd also think a king of the hill type game mode would be excellent, say, ensure your units are holding the designated area for X minutes total (that is, only your units exist within the target zone for your clock to activate)
Re: Quick Request: Flag
evo rts has this, sortof.
Re: Quick Request: Flag
My plan is taking the flag to your own flag in your base.
But lulz, this is getting more complicated than I anticipated. Anyways, the plan is to use position detection calls to determine flag position, scoring. Then, once a predefined option for the max # of scores is reached by any team, everyone on the losing team is killed, and the game is over.
Of course, all of this requires I make a respawn script first, which is what I think I'm going to do first. It should keep track of lives.
Also, I believe king of the hill would be slightly easier to code...hmm.
Don't expect this to be done soon though, I'm still a busy man during the summer.
But lulz, this is getting more complicated than I anticipated. Anyways, the plan is to use position detection calls to determine flag position, scoring. Then, once a predefined option for the max # of scores is reached by any team, everyone on the losing team is killed, and the game is over.
Of course, all of this requires I make a respawn script first, which is what I think I'm going to do first. It should keep track of lives.
Also, I believe king of the hill would be slightly easier to code...hmm.
Don't expect this to be done soon though, I'm still a busy man during the summer.
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59
Re: Quick Request: Flag
King of the hill would probably be the easiest, followed by 'person who holds the flag for the longest'. You'd probably make it like, if a unit drives over the flag, it picks it up, and your timer starts. As soon as that unit dies, the flag is dropped at that location, and the timer stops. I'd probably ban commanders from picking up the flag.
You could add interesting quirk rules, such as, the flag cannot be brought within x range of a friendly commander (which makes it tougher to just stick it in your base etc).
You could add interesting quirk rules, such as, the flag cannot be brought within x range of a friendly commander (which makes it tougher to just stick it in your base etc).
Re: Quick Request: Flag
This is win. This will bring game concept to a much higher level!
If not a mod on is own it could also been used as a bonus in other mods.
Ofcource the flag should be a pretty babe and not a icon.
i love to see a fighter fight its way trough anti air to capture the babe
If not a mod on is own it could also been used as a bonus in other mods.
Ofcource the flag should be a pretty babe and not a icon.
i love to see a fighter fight its way trough anti air to capture the babe
Re: Quick Request: Flag
I'm assuming the only way to end the game is to kill all the units from teams other than the winning one?
Re: Quick Request: Flag
Well on comm ends you kill the commander and everything else explodes. You could just make everything explode.
Re: Quick Request: Flag
True, but I think it'd be neat if we could have an lua synced ctrl command that allows me to control game end.
Re: Quick Request: Flag
Especially if the winning team could bounce around victoriously and the losers hang their heads in shame :)
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59
Re: Quick Request: Flag
It is also helpful to review the position of all the players after the game for a post-game debriefing (For learning purposes, bragging purposes or general lulz).