Home   Help Search Login Register  

Author Topic: ViewDistasnce/Terrain script for mp  (Read 1522 times)

0 Members and 1 Guest are viewing this topic.

Rysumm

  • Guest
ViewDistasnce/Terrain script for mp
« on: 04 Jun 2004, 06:10:56 »
Hi,
 I am new to creating mp missions and have never scripted before. I do have the ofp cooleditor 3.0, which is very useful. My delima is trying to change the mp mission terrain detail and viewdistance. When I save from the editor the terrain and distance change to default.

I have read the other post on this topic but have know idea what script to use for this. I have tried using a trigger for the viewdistance, I read a thread that explained using atrigger to change the distance. The condition was 'benchmark <=1000' and activation was 'setviewdistance 2000'. That didn't work.  I need help bad. I am running version 1.91 but only because I can't find a no cd crack for 1.96.

Thanks to anyone who can help.

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:ViewDistasnce/Terrain script for mp
« Reply #1 on: 04 Jun 2004, 13:02:44 »
I just tried this 2 ways:
first in the init.sqs
? benchmark > 2000: setviewdistance 2000
? benchmark > 2000: setterraingrid 6.25

and it worked like that, but when I setterraingrid 3.125 my game crashed, my benchmark is 3333

also you can make  triggers
axis a  0
axis b  0
activation none
condition     benchmark > 2000
on activation     setviewdistance 2000

axis a  0
axis b  0
activation none
condition     benchmark > 2000
on activation     setterraingrid 6.25

jst be careful where you set the benchmark, because even though I was able to load viewdistance 2000, terraingrid 6.25, my framerates were BAD!

I read somewhere the default viewdistance for MP is 750, don't know if there is a default terraingrid.

Hope this helps

Rysumm

  • Guest
Re:ViewDistasnce/Terrain script for mp
« Reply #2 on: 04 Jun 2004, 15:21:28 »
Thanks so much for your reply, I'll give this a try. Oh one other question. This is totally a newbie question. When youi refer to the int.sqs is that my mission.sqs in my users fodler.

Rysumm

  • Guest
Re:ViewDistasnce/Terrain script for mp
« Reply #3 on: 05 Jun 2004, 04:41:01 »
Ok, case closed trigggers worked great. I wonder if using a script instead of triggers would help with pc lag? Thanks for the help I greatly appreciate it.  

DurbanPoison

  • Guest
Re:ViewDistasnce/Terrain script for mp
« Reply #4 on: 05 Jun 2004, 11:44:23 »
As far as i know - setting terraingrid to 50 would be default.
(I just create a trigger called "Init" and place the code in that :P)
Hope that helps.

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:ViewDistasnce/Terrain script for mp
« Reply #5 on: 05 Jun 2004, 14:14:50 »
glad you got it to work with triggers.  As for the init.sqs, that is a seperate file in your mission folder where the mission.sqm file is.  Example:
c:\codemasters\operationflashpoint\users\yourname\missions\missionname
  In that folder every mission will have the file:
mission.sqm
create an init.sqs file in that folder
also if you need respawn, you gotta have a description.ext file there too
there are many fine tutes to help with all these extra files you need.

Scripts will enhance performance over triggers IN CERTAIN CIRCUMSTANCES but if done wrong they will also greatly hurt performance.  The init.sqs I showed you above is only run once, but the triggers are only tripped once also so in this instance there is no difference