Page 1 of 1
making a CTF gamemode
Posted: Wed Apr 25, 2007 5:43 am
by darksmaster923
how would i go about making a CTF gamemode? gimme some cmds, and ideas
Posted: Wed Apr 25, 2007 8:57 am
by Juutis
I don't think it's too hard to make. Basically you just have to play with triggers. You could have a trigger or attribute for each team, indicating if they have stolen the flag. You would activate it when a member of a team comes near the enemy flag and disable when the guy carrying it dies. Then you could check if the flag carrier comes near his own flag and the flag isn't stolen (= trigger for one team is true and for the other team is false).
You could do the actual checking with many ways. You could have a scriptpoint at each flag, and make the soldier pawns check if they are near it, or add a model that activates the trigger, or use a pawn to check if there is someone nearby. I personally would add pawns with a flag model. Then if a guy is near them I would attach the flag to the guy and check if the flag is taken to the other flag.
Posted: Thu Apr 26, 2007 1:07 am
by darksmaster923
i do have one workaround but it seems too simple. if a pawn or player collides with it team gets point, the flag disapears for a moment then reappears.
Posted: Thu Apr 26, 2007 1:09 am
by zany_001
should have it that u have to bring the flag back to your base.
Posted: Thu Apr 26, 2007 1:22 am
by darksmaster923
thats the main problem. how can i do it for pawns
Posted: Thu Apr 26, 2007 1:24 am
by scott
why dont u have it so its a weapon slot, and on collision and you have the flag it removes it
Posted: Thu Apr 26, 2007 1:26 am
by darksmaster923
good idea. thnx scott
Posted: Thu Apr 26, 2007 2:58 am
by zany_001
make sure it cant take a different weapons slot tho