Home   Help Search Login Register  

Author Topic: More than 2 sides in C&H  (Read 1250 times)

0 Members and 1 Guest are viewing this topic.

HK

  • Guest
More than 2 sides in C&H
« on: 21 Mar 2003, 12:57:43 »
What would i ned to set the flags to in order for me to use more than 2 sides in a C&H map, i have east, west and guerrila, do i need to set the flags side to civilian? ??? I tried this bit no joy, maybe i am naming it incorrectly?

I.E this setflagside civilian << is that correct for civi's?
In a 2 side setup you typically use: this setflagside resistance

Anyone out there help?

Cheers HK

HK

  • Guest
Re:More than 2 sides in C&H
« Reply #1 on: 21 Mar 2003, 13:11:20 »
Also, does this look correct or are Resistance troops called something other than GUER when it comes to naming their side? I opened the mission when i placed a Resistance troop and his side was "GUER"

Here is the capture script i altered:

_flag = _this select 0
_side = _this select 1

?(_side == WEST): goto "West"
?(_side == EAST): goto "East"
?(_side == GUER): goto "Guerrila"
exit

#West
?!(local Server): goto "Westclient"
WestScore = WestScore + 1
WestArray = WestArray + [_flag]
EastArray = EastArray - [_flag]
GuerrilaArray = GuerrilaArray - [_flag]
PublicVariable "WestScore"
#Westclient
(flagOwner _flag) setflagowner objNull
_flag setflagowner objNull
~0.2
_flag setflagtexture "usa_vlajka.pac"
_flag setflagside WEST
goto "end"

#East
?!(local Server): goto "Eastclient"
EastScore = EastScore + 1
EastArray = EastArray + [_flag]
WestArray = WestArray - [_flag]
GuerrilaArray = GuerrilaArray - [_flag]
PublicVariable "EastScore"
#Eastclient
(flagOwner _flag) setflagowner objNull
_flag setflagowner objNull
~0.2
_flag setflagtexture "rus_vlajka.pac"
_flag setflagside EAST
goto "end"

#Guerrila
?!(local Server): goto "Guerrilaclient"
GuerrilaScore = GuerrilaScore + 1
GuerrilaArray = GuerrilarArray + [_flag]
EastArray = EastArray - [_flag]
WestArray = WestArray - [_flag]
PublicVariable "GuerrilaScore"
#Guerrilaclient
(flagOwner _flag) setflagowner objNull
_flag setflagowner objNull
~0.2
_flag setflagtexture "fia_vlajka.pac"
_flag setflagside GUER
goto "end"

#end
?(local Server): [_flag, _side] exec "control.sqs"
~1.5
hint format["West: %1\nEast: %2\nGuerrila: %3", WestScore, EastScore, GuerrilaScore]
Exit


is this correct anyone?

HK

  • Guest
Re:More than 2 sides in C&H
« Reply #2 on: 21 Mar 2003, 17:34:25 »
Don't all rush in and help me out then!! Can this even be done, help!!!!!!!!

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:More than 2 sides in C&H
« Reply #3 on: 22 Mar 2003, 01:59:50 »
Hmm.. I'm sure as hell no expert (I've never made a CTF in my life, let alone a 3 or 4 way one ;)) but I think you're looking for the word resistance.

As far as in OFP script is concerned, that's the word you need to use when referring the side command...