Home   Help Search Login Register  

Author Topic: how do i randomize multi-player?  (Read 4564 times)

0 Members and 1 Guest are viewing this topic.

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:how do i randomize multi-player?
« Reply #15 on: 29 Aug 2002, 21:15:00 »
When I do it, I just use booleans.

I set it false at the start of the script.  Then I set it true at the end of the servers section, with the clients waiting for the boolean to become true.

Offline CapMorgan

  • Members
  • *
  • OFP fan
    • Cazadores de monte
Re:how do i randomize multi-player?
« Reply #16 on: 31 Aug 2002, 09:12:45 »
well, this can be late, but just in case.
This works under 146 and 175, i use it in almost all of my MP missions. (hope you don't mind spanish. tiempo = time, clima = overcast, niebla = fog)
This' ll make ramdom weather, fog and overcast.
I also have a script with random objetives for MP missions, just tell me if you need em. Hope this helps you out.
Don't fotget to put the "server" Logic.

?!(local Server): goto "cliente"
tiempo = random 23
clima = random 1
niebla = random 1
publicvariable "tiempo"
publicvariable "clima"
publicvariable "niebla"

#cliente
~5
skiptime tiempo
0 setovercast clima
0 setfog niebla
setViewDistance 1000

exit

PS: I use a fade of 6 sec. to make the changes "invisible"
« Last Edit: 31 Aug 2002, 09:14:28 by CapMorgan »

tai mai shu

  • Guest
Re:how do i randomize multi-player?
« Reply #17 on: 31 Aug 2002, 23:31:29 »
hot damn capn morgan!!!!!  plz send me that stuff if ouve got it.  if you want, just e-mail me at taimaishu1103@hotmail.com

thanks man.

Offline CapMorgan

  • Members
  • *
  • OFP fan
    • Cazadores de monte
Re:how do i randomize multi-player?
« Reply #18 on: 01 Sep 2002, 01:11:25 »
You can download this example mission
http://www.cazadoresdemonte.com.ar/misiones/misiones_MP/Cap_COOP_10_La%20mansion%20v1.0.Cain.zip

In there you have almost all my random scripts for MP missions. All working.
If you need any help just post here. I'm following the topic.
Salute!!

tai mai shu

  • Guest
Re:how do i randomize multi-player?
« Reply #19 on: 01 Sep 2002, 05:45:15 »
hey thanks man.

Atslav

  • Guest
Re:how do i randomize multi-player?
« Reply #20 on: 30 Jan 2005, 16:23:36 »
The Link seems to be down... Can you send the mission with random objectives to this address Atslav@hotmail.com???

Rocko Bonaparte

  • Guest
Re:how do i randomize multi-player?
« Reply #21 on: 30 Jan 2005, 19:13:03 »
theoretically it should work  :-\

unfortunately it seems not to do so if the variable value on the client is already assigned (like fogLevel=-1).
looks like the publicvariable command sometimes(?) does NOT overwrite existing values on clients !

anyone else with such observations ?

I have had similar trouble, yes.  I've been trying to randomly position units (in a special way) on the server.  I thought this would place the correctly on all machines--it doesn't.  I then tried to use public variables to transmit the new positions.  It was a real pain and failed in the end.  I'm still not very sure what it was I was doing wrong, but I developed a compromise that has been working well.