Quick Request: Flag

Quick Request: Flag

Share and discuss visual creations and creation practices like texturing, modelling and musing on the meaning of life.

Moderators: MR.D, Moderators

User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Quick Request: Flag

Post by REVENGE »

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.
User avatar
Crayfish
Posts: 481
Joined: 12 Feb 2008, 12:39

Re: Quick Request: Flag

Post by Crayfish »

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..
User avatar
Machiosabre
Posts: 1474
Joined: 25 Dec 2005, 22:56

Re: Quick Request: Flag

Post by Machiosabre »

*dramatization
Image
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Quick Request: Flag

Post by REVENGE »

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.
User avatar
Crayfish
Posts: 481
Joined: 12 Feb 2008, 12:39

Re: Quick Request: Flag

Post by Crayfish »

If that looks daft, which on some units it might do, could you just put a floating, flashing flag icon above the flag carrier?
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: Quick Request: Flag

Post by Hoi »

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?
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Re: Quick Request: Flag

Post by Warlord Zsinj »

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...
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Re: Quick Request: Flag

Post by Guessmyname »

Warlord Zsinj wrote:could be some sort of energon ball or something along those lines...
"MWAHAHAHA! I HAVE CAPTURED YOUR BALLS!"

Yes, I can see that working perfectly :P
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Quick Request: Flag

Post by REVENGE »

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.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Quick Request: Flag

Post by imbaczek »

as long as the flag carrier blinks and flashes, I'm fine with an icon.
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Re: Quick Request: Flag

Post by Warlord Zsinj »

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)
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Quick Request: Flag

Post by imbaczek »

evo rts has this, sortof.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Quick Request: Flag

Post by REVENGE »

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.
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Re: Quick Request: Flag

Post by Warlord Zsinj »

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).
daan 79

Re: Quick Request: Flag

Post by daan 79 »

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
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Quick Request: Flag

Post by REVENGE »

I'm assuming the only way to end the game is to kill all the units from teams other than the winning one?
User avatar
Crayfish
Posts: 481
Joined: 12 Feb 2008, 12:39

Re: Quick Request: Flag

Post by Crayfish »

Well on comm ends you kill the commander and everything else explodes. You could just make everything explode.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Quick Request: Flag

Post by REVENGE »

True, but I think it'd be neat if we could have an lua synced ctrl command that allows me to control game end.
User avatar
Crayfish
Posts: 481
Joined: 12 Feb 2008, 12:39

Re: Quick Request: Flag

Post by Crayfish »

Especially if the winning team could bounce around victoriously and the losers hang their heads in shame :)
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Re: Quick Request: Flag

Post by Warlord Zsinj »

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).
Post Reply

Return to “Art & Modelling”