Remember Me


Forgotten Password?

Tunngle Community: KK's Helicopter Crash Sites Script (Saintly) - Tunngle Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

KK's Helicopter Crash Sites Script (Saintly) Rate Topic: -----

#1 User is offline   Killzone_Kid Icon

  • Group: Members
  • Posts: 187
  • Joined: 17-August 12

Posted 19 September 2012 - 18:11

<?php

//path to arma2oaserver.RPT

$RPT_file = "D:\Program Files (x86)\Bohemia Interactive\ArmA 2\Saintly\arma2oaserver.RPT";

echo '<pre>';

if ($handle = fopen($RPT_file, "r")) {

    while (($buffer = fgets($handle)) !== false){
        
		if (preg_match ('/crashed helicopter/',$buffer)){
		
			echo $buffer;
		}
    }
	
    fclose($handle);
}

echo '</pre>';

?>


This script will show the time and coordinates of the helicopter crash site spawns. This is for Saintly but may work for other builds too.

Change the path to arma2oaserver.RPT file to match your setup, save the code as crash_sites.php, put it in /inetpub/wwwroot directory and run it from http://yourserverip/crash_sites.php

Enjoy.
0

#2 User is offline   Killzone_Kid Icon

  • Group: Members
  • Posts: 187
  • Joined: 17-August 12

Posted 21 September 2012 - 19:22

Well here is even better way of showing heli wrecks!

1. Find your dayz_server.pbo
2. unpack it with cpbo.exe
3. open server_functions.sqf for edit (should be in /init folder)
4. add (in red)

spawn_heliCrash = {
private["_mark_wrecked","_position","_veh","_num","_config","_itemType","_itemChance","_weights","_index","_iArray"];

waitUntil{!isNil "BIS_fnc_selectRandom"};
if (isDedicated) then {
_position = [getMarkerPos "center",0,4000,10,0,2000,0] call BIS_fnc_findSafePos;
diag_log("DEBUG: Spawning a crashed helicopter at " + str(_position));

_mark_wrecked = createMarker ["Wreck at "+str(_position),_position];
_mark_wrecked setMarkerType "waypoint";
_mark_wrecked setMarkerPos (_position);
_mark_wrecked setMarkerColor "ColorRed";
_mark_wrecked setMarkerText " ";


_veh = createVehicle ["UH1Wreck_DZ",_position, [], 0, "CAN_COLLIDE"];
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_veh];
_veh setVariable ["ObjectID",1,true];
dayzFire = [_veh,2,time,false,false];
publicVariable "dayzFire";
if (isServer) then {
nul=dayzFire spawn BIS_Effects_Burn;
};

5. repack dayz_server.pbo
6. start the server
7. profit


What this does is it adds markers on the map for heli wrecks every time they are generated. So anyone with a map will see this: http://cloud.steampo...782235C3F42F2A/

which makes having map suddenly pretty useful :)

This post has been edited by Killzone_Kid: 21 September 2012 - 23:06

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Toggle chat Chat

la1fer Icon : (23 March 2017 - 10:31 PM)
сервера не ищет
la1fer Icon : (23 March 2017 - 10:30 PM)
как играть в нфс
raffi98989898 Icon : (23 March 2017 - 10:13 PM)
can someone help me?
Tailed_Beast Icon : (23 March 2017 - 09:51 PM)
Hi, @ all. I've tried to get a static ip from my ISP but its to costly (for now). I was wondering... If I purchase the Premium/Lifetime bundle, does the feature: 'Static Virtaul IP' means I won't need to get a static IP?
BMWU12 Icon : (23 March 2017 - 01:34 PM)
Hi! friends. It's been a nice experience playing via Tunngle. But I have a problem, I am not able to log in when I am using Internet from "Dongal", it is working fine with wifi internet but I don't have wifi, I came to know about this when I tried to log in using my friends wifi. Can anybody help me to sort the problem. The internet is working without problem. But I don't know why I can't connect to tunngle network using Dongal!
tsao01 Icon : (23 March 2017 - 10:27 AM)
How to play Far Cry 4 throw Tunngle ?
sergss_333 Icon : (22 March 2017 - 06:48 AM)
Всем доброго дня, кто подскажет где могу найти файл MP Fix? заранее спасибо
gtabhaiya12 Icon : (21 March 2017 - 07:51 PM)
gta iv anyone?
ProMiki2001 Icon : (21 March 2017 - 02:06 PM)
hay J have question who play me to Dawn of war solustrom hm ?
Mike Harper Icon : (21 March 2017 - 11:36 AM)
Hey :). I play COD4 multiplayer :)
KRETHOS Icon : (21 March 2017 - 10:55 AM)
do you hawe somebody usually game cod for multi by cod 4?
KRETHOS Icon : (21 March 2017 - 10:54 AM)
hi all
ObeseWhale Icon : (21 March 2017 - 02:04 AM)
If you are having trouble with an account you can send an email to support[at]tunngle.net from the email address you registered the account to :)
Coltmp Icon : (20 March 2017 - 08:37 PM)
I need hell to recober mu life time acaont
Coltmp Icon : (20 March 2017 - 06:36 PM)
well it no boddy home I gest
Coltmp Icon : (20 March 2017 - 06:34 PM)
Biroche helpme in go to bot nat worck ples if ?????
Coltmp Icon : (20 March 2017 - 06:33 PM)
the acaont it from 2012 so long time
Coltmp Icon : (20 March 2017 - 06:32 PM)
I need help recober Life Time membership if I got my IDso so
MohandBen Icon : (20 March 2017 - 05:13 PM)
Hi, I need Steam_Api.dll for DarkSouls2 the original one. The Topic is here
Aquazus Icon : (20 March 2017 - 04:03 PM)
Hi anyone want to play black ops zombies ?
flashflow Icon : (20 March 2017 - 02:53 PM)
hi there. having trouble to mount an image for battle for middle earth 2 - rotwk. please feel free to help: https://www.tunngle....84#entry1613984
Mike Harper Icon : (20 March 2017 - 02:08 PM)
Hi :). What kind of problem? Can you share screenshot?
Homex5 Icon : (20 March 2017 - 09:23 AM)
dose anybody know how to fix an instalation broblem?
Homex5 Icon : (20 March 2017 - 09:22 AM)
hi
StonerSnoopy Icon : (20 March 2017 - 06:51 AM)
Or Dying Light v1.11.2?
StonerSnoopy Icon : (20 March 2017 - 06:50 AM)
Whos got Necropolis??
Qunop Icon : (19 March 2017 - 10:15 AM)
Can you play HOI4 on tunngle?
AraM Icon : (19 March 2017 - 04:52 AM)
Someone wants to play any RTS game like: StarCraft:Brood War, Age of Empires 2 HD or Company of Heroes?
AraM Icon : (19 March 2017 - 04:18 AM)
Marcebet: Esta es la Wikia de Tunngle de WarCraft 3: Frozen throne , puede que te sirva: Network:Warcraft_III:_The_Frozen_Throne
AraM Icon : (19 March 2017 - 04:17 AM)
Buenas EDMAKA, la cara amarilla si puede afectar, depende de si puedes "ver" las partidas o no.
Resize Chat Area