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

  • Advanced Tunngler
  • PipPipPipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 17-August 12
  • Tunngle Username: Killzone_Kid
Reputation: 32
Average

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

  • Advanced Tunngler
  • PipPipPipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 17-August 12
  • Tunngle Username: Killzone_Kid
Reputation: 32
Average

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

UnknownGamerFR Icon : (03 August 2015 - 01:00 AM)
C'EST DE LA MERDE !
Amin031 Icon : (02 August 2015 - 10:00 PM)
haletoon : )
Amin031 Icon : (02 August 2015 - 10:00 PM)
salam
xoXMaxXox Icon : (02 August 2015 - 08:27 PM)
как активировать уточную запись?
aboolfazl Icon : (02 August 2015 - 03:51 PM)
کسی هست
aboolfazl Icon : (02 August 2015 - 03:49 PM)
لام من یه ایرانی هستم
tezugane95 Icon : (02 August 2015 - 03:40 PM)
Play Attila tw ?
alienelite Icon : (02 August 2015 - 03:37 PM)
how to delete account?
DrDrunkenLob... Icon : (02 August 2015 - 12:32 PM)
test
hajifsayshi Icon : (02 August 2015 - 12:22 PM)
Anyone else having difficulties connecting to different people?
Mike Harper Icon : (02 August 2015 - 10:33 AM)
Hello :). I haven't personally used Tunngle on Win10. But i read that members are having adapter related issues in Windows 10.
The next Tunngle version should improve the situation from Tunngle's side.
But still Windows needs to fix some stuffs too (like adapter priority not saving) ;).
Phoenix199205 Icon : (02 August 2015 - 10:18 AM)
Hi guys, hows compatible Tunngle now with Windows 10 home?
dengsm Icon : (02 August 2015 - 07:48 AM)
ok
Mike Harper Icon : (02 August 2015 - 06:09 AM)
Hallo Dandy88 :). Tunngle is made in Germany. So all admins are Deutscher (except 1 admin) ;) :D.
Dandy88 Icon : (01 August 2015 - 10:16 PM)
German Admin here?
Snaxx45 Icon : (01 August 2015 - 05:38 PM)
hey guys im new to this..can anyone tell me how i can play with other ppl on the guild 2 renniasance online using this program? thx!
Mike Harper Icon : (01 August 2015 - 05:16 PM)
@skataclient2, your account doesn't have a "Tunngle Nickname". Seems like your account is broken. You should close this account and open a new one ;).
skataclient2 Icon : (01 August 2015 - 02:35 PM)
Hello, i am getting error 4-106 when i try to login on the client, logging on site works fine, does anybody know what to do? (changed pass,reset pass and reinstalled already)
zombizius Icon : (01 August 2015 - 12:16 PM)
ayuda
zombizius Icon : (01 August 2015 - 12:16 PM)
como ago para que aparezca tunngle en el panel de control?
Baby_Jesus Icon : (01 August 2015 - 04:08 AM)
baby j-c in the house ya ll
Baby_Jesus Icon : (01 August 2015 - 04:08 AM)
sup ******
soyleyenda12 Icon : (31 July 2015 - 04:17 PM)
porfabor
soyleyenda12 Icon : (31 July 2015 - 04:15 PM)
hola alguien quiere jugar a worms 4 mayhem
e4g Icon : (31 July 2015 - 03:26 PM)
haha
Burhaan Icon : (31 July 2015 - 12:15 PM)
could not reach the tunngle master server
Burhaan Icon : (31 July 2015 - 12:11 PM)
что делать?
Burhaan Icon : (31 July 2015 - 12:10 PM)
У меня проблема 4-104
Burhaan Icon : (31 July 2015 - 12:10 PM)
Привет
Vantastic86 Icon : (31 July 2015 - 11:58 AM)
Hi, my tunngle cannot change the adapter priority, I upgraded to windows 10 yesterday. I tried all the solutions tunngle gave me. any help?
Resize Chat Area