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

perceptionhound Icon : (25 May 2017 - 04:33 PM)
FreeZii я итальянец, но говорю по русски)
Dominique_9235 Icon : (25 May 2017 - 11:21 AM)
I play cod waw
Dominique_9235 Icon : (25 May 2017 - 11:21 AM)
hi
FreZii Icon : (25 May 2017 - 07:28 AM)
Есть русские?
worldwar2chainz Icon : (25 May 2017 - 03:50 AM)
anyone play left 4 dead 2?
kuraja Icon : (24 May 2017 - 06:26 PM)
СРАКА
sproginoff Icon : (24 May 2017 - 03:24 PM)
im trying to play saints row 2 with a friend but it wont let us join either of our games?
KarlAntoni20 Icon : (23 May 2017 - 08:49 PM)
yo guys does anyone else play COD WAW here?
Plazanta Icon : (23 May 2017 - 08:25 PM)
memed
abdulrhman-2211 Icon : (23 May 2017 - 03:50 PM)
EROR 4-104
mikail1978 Icon : (23 May 2017 - 02:56 PM)
:thumbdown:
mikail1978 Icon : (23 May 2017 - 02:56 PM)
:cursing: :cursing:
GreenPoolGRE... Icon : (23 May 2017 - 02:43 PM)
TheInferno_HD, ++++
GreenPoolGRE... Icon : (23 May 2017 - 02:42 PM)
Why i cant register?
TheInferno_HD Icon : (23 May 2017 - 11:02 AM)
when I login into tunngle it keeps saying connecting then it gets error cant connect to master server
TheInferno_HD Icon : (23 May 2017 - 11:01 AM)
I have a problem can someone help me
TheInferno_HD Icon : (23 May 2017 - 11:01 AM)
hey
konganh666 Icon : (23 May 2017 - 06:38 AM)
is there anyone still playing mhfu
konganh666 Icon : (23 May 2017 - 06:38 AM)
hello
Mike Harper Icon : (23 May 2017 - 05:40 AM)
Check out the topic you created :) I posted links in the reply there :)
Mike Harper Icon : (23 May 2017 - 05:40 AM)
Hi Dragon21s :)
Dragon21s Icon : (23 May 2017 - 03:45 AM)
Hey, how to play hoi4 in tunngle? :/
ObeseWhale Icon : (23 May 2017 - 01:57 AM)
You can try the solutions on the Error:4-102 wiki page :)
ObeseWhale Icon : (23 May 2017 - 01:57 AM)
Hey :)
abdulrhman-2211 Icon : (22 May 2017 - 09:52 PM)
tunngle tell me when i open it error 4-102 could not find tunngle service.
abdulrhman-2211 Icon : (22 May 2017 - 09:52 PM)
i need help
joakim645 Icon : (22 May 2017 - 09:52 AM)
http://www.mediafire...-PatchSetup.exe ***** Lol. download and istall
Unknown Sold... Icon : (22 May 2017 - 09:47 AM)
Problem , my cod waw is old version i cants play zombies with others what should i do?
Doritoman8955 Icon : (22 May 2017 - 06:06 AM)
alguien me dise porque ami amigo le sale una cruz rojaa
ObeseWhale Icon : (22 May 2017 - 02:12 AM)
Does Farming Simulator have a LAN mode? :)
Resize Chat Area