Hey guys..i need some help..i made a team flagfight..sorta..where you take the flag in the middle back to your scoring area..but if the flag is taken, and the flagowner dies..and someone picks the flag off the body..it wont show the flag taken text and he cant score it. Also..if the flag is taken and the flagowner dies..and the flag RETURNS to the post..and another player from that side takes the flag again...he cant score it.
heres the info...
When east/west player get within 2 feet of flag it changes to opposite side
position[]={5855.553711,89.379776,8615.811523};
a=5.000000;
b=5.000000;
activationBy="WEST";
repeating=1;
age="UNKNOWN";
text="flagchange E";
expActiv="flag1 setflagtexture ""ETACLAN.jpg""; flag1 setflagside East";
class Effects
position[]={5855.442871,89.386017,8615.958008};
a=5.000000;
b=5.000000;
activationBy="EAST";
repeating=1;
age="UNKNOWN";
text="flagchange w";
expActiv="flag1 setflagtexture ""ETACLAN.jpg""; flag1 setflagside west";
class Effects
This is the trigger over the flag scoring area that calls the capture.sqs script
position[]={5831.085938,99.967964,8895.675781};
a=5.000000;
b=5.000000;
activationBy="EAST";
repeating=1;
age="UNKNOWN";
text="east flag switch";
name="FlagswitchE";
expCond="(flagowner flag1) in thislist";
expActiv="[east] exec ""capture.sqs""";
class Effects
sound="Wcapture";
position[]={5996.326172,82.066711,8374.207031};
a=5.000000;
b=5.000000;
activationBy="ANY";
repeating=1;
age="UNKNOWN";
text="West Flag Switch";
name="flagswitchW";
expCond="(flagowner flag1) in thislist";
expActiv="[west] exec ""capture.sqs""";
sound="Ecapture";
Init
position[]={5840.090332,99.241562,8843.229492};
a=0.000000;
b=0.000000;
age="UNKNOWN";
text="Init";
expCond="true";
expActiv="wscore=0; escore=0; ownerW=objNull; ownerE=objNull; wflagtaken=false; Eflagtaken=false; timend=0";
sound="intro";
This trigger detects the flag taken and puts up the text
position[]={5878.331055,91.058128,8617.316406};
a=0.000000;
b=0.000000;
repeating=1;
age="UNKNOWN";
text="flagtaken";
expCond="not isnull flagowner flag1";
expActiv="titletext[format[""%1 has the Flag!"", name flagowner flag1], ""plain down""]; flagtaken=true";
sound="Wcapture";
This is the return system but it doesnt seem to work at all?!
position[]={5871.062500,95.867355,8648.938477};
a=0.000000;
b=0.000000;
repeating=1;
age="UNKNOWN";
text="returned west";
expCond="(isnull flagowner flag1) and wflagtaken";
expActiv="wflagtaken=false; titletext[format[""%1 Just Got Fucked In The Ass!"", name(Flagowner flag1)], ""plain down""];";
position[]={5875.404785,96.346031,8647.407227};
a=0.000000;
b=0.000000;
repeating=1;
age="UNKNOWN";
text="returned east";
expCond="(isnull flagowner flag1) and Eflagtaken";
expActiv="eflagtaken=false; titletext[format[""%1 Just Got Fucked In The Ass"", name (flagowner flag1)], ""plain down""]";
class Effects
and this is the capture.sqs file
_side = _this select 0
?!(local Server): goto "client"
?(_side == WEST): WestScore = WestScore + 1; PublicVariable "WestScore"
?(_side == EAST): EastScore = EastScore + 1; PublicVariable "EastScore"
#client
?(_side == WEST): goto "wclient"
?(_side == EAST): goto "eclient"
#wclient
wscore=wscore+1
titleText [format["%1 has captured the East flag!", name (flagowner flag1)], "PLAIN DOWN"]
flag1 setFlagOwner objNull
(flagOwner flag1) setFlagOwner objNull
goto "end"
#eclient
escore=escore+1
titleText [format["%1 has captured the West flag!", name (flagowner flag1)], "PLAIN DOWN"]
flag1 setFlagOwner objNull
(flagOwner flag1) setFlagOwner objNull
goto "end"
#end
~10
titleText [format["West: %1 East: %2", WScore, EScore], "PLAIN DOWN"]
exit
-Props to OFPEC...you guys do a great job!
spliff