making a CTF gamemode

Topics regarding Scripting with Reality Factory
Post Reply
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA

making a CTF gamemode

Post by darksmaster923 »

how would i go about making a CTF gamemode? gimme some cmds, and ideas
Herp derp.
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post 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.
Pain is only psychological.
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA

Post 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.
Herp derp.
User avatar
zany_001
Posts: 1047
Joined: Fri Mar 02, 2007 8:36 am
Location: Aotearoa

Post by zany_001 »

should have it that u have to bring the flag back to your base.
Once I was sad, and I stopped being sad and was awesome instead.
True story.
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA

Post by darksmaster923 »

thats the main problem. how can i do it for pawns
Herp derp.
User avatar
scott
Posts: 1151
Joined: Tue Jul 05, 2005 1:59 am
Location: United Kingdom

Post by scott »

why dont u have it so its a weapon slot, and on collision and you have the flag it removes it
*GD*
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA

Post by darksmaster923 »

good idea. thnx scott
Herp derp.
User avatar
zany_001
Posts: 1047
Joined: Fri Mar 02, 2007 8:36 am
Location: Aotearoa

Post by zany_001 »

make sure it cant take a different weapons slot tho
Once I was sad, and I stopped being sad and was awesome instead.
True story.
Post Reply