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

ppxArmy Icon : (21 July 2017 - 12:18 AM)
paying dying light
mohamed441033 Icon : (20 July 2017 - 10:46 PM)
hiiiiiiiiiiiiiiiiiiiiiiiiiii
mohamed441033 Icon : (20 July 2017 - 10:38 PM)
heeeeeeeeeeeeeeeeelp
mohamed441033 Icon : (20 July 2017 - 10:37 PM)
i am from egypt how i fix 4_104
mohamed441033 Icon : (20 July 2017 - 10:36 PM)
hi
Mike Harper Icon : (20 July 2017 - 06:00 PM)
And to close your account, you can use this link: https://www.tunngle.net/account/close
Mike Harper Icon : (20 July 2017 - 06:00 PM)
Welcome to Tunngle and sorry to hear you're leaving us.
If you have any problem, then please post so we can help u fix it :)
Mike Harper Icon : (20 July 2017 - 05:59 PM)
Hey mate :)
MitchCarter90 Icon : (20 July 2017 - 05:52 PM)
How can I delete my account?
Mahfaeraak_M00 Icon : (20 July 2017 - 03:20 PM)
Anyone can help? I just port-forwarded, but my smiley face is still yellow...
Mike Harper Icon : (20 July 2017 - 02:31 PM)
What problem do you have, mate?
INU5 Icon : (20 July 2017 - 11:19 AM)
im having a big problem
Brioche Icon : (20 July 2017 - 10:41 AM)
you can try to download our offline installer (see forum downloads)
Lumix-Vertex Icon : (19 July 2017 - 11:03 PM)
it wont let me download it. it says file its corrupted what do i do
Prester644 Icon : (19 July 2017 - 04:50 PM)
Use toilet paper.
Chabayta Icon : (19 July 2017 - 11:22 AM)
hello can u help to fix why zombies doesnt work if host mode is not activated
Chabayta Icon : (19 July 2017 - 11:20 AM)
can anyone help me why black ops zombies work only when i am host, i cant play with my friends if all of us are hosts and for all of us zombies doesnt work if host mode is not activated
Mike Harper Icon : (19 July 2017 - 09:47 AM)
You can just join the network start playing :).
If you need guide, here it is: Network:Dying_Light :)
Mike Harper Icon : (19 July 2017 - 09:47 AM)
Many players are playing Dying Light :).
Around 100+ people are in the network right now :)
Mike Harper Icon : (19 July 2017 - 09:46 AM)
Hi mate :), Welcome to Tunngle :)
ScottRyder Icon : (19 July 2017 - 05:41 AM)
anyone playing dying light?
ScottRyder Icon : (19 July 2017 - 05:41 AM)
hi....
ObeseWhale Icon : (19 July 2017 - 01:11 AM)
You might be looking at Basic Plus :)
ObeseWhale Icon : (19 July 2017 - 01:11 AM)
Basic is still and always will be 100% free
pifft83 Icon : (18 July 2017 - 11:11 PM)
when did they change the free basic to 0.99 dollars?
TgrGrim Icon : (18 July 2017 - 09:16 PM)
how to get the app id?
Muji445 Icon : (18 July 2017 - 03:47 PM)
without harming my save data and DLCs
Muji445 Icon : (18 July 2017 - 03:46 PM)
how can i update my version of borderlands 2
Muji445 Icon : (18 July 2017 - 03:46 PM)
HALP ME PLZ
costas_melas Icon : (18 July 2017 - 02:47 PM)
i can connect to other peoples game except my friends, any help ?
Resize Chat Area