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

Doumi08 Icon : (25 August 2016 - 11:59 PM)
hello! on ne peut pas jouer à COD black ops 2?
Ghostxdead Icon : (25 August 2016 - 09:45 PM)
any play far cry 3
mak_alpha1 Icon : (25 August 2016 - 09:29 PM)
moi aussi
B4D4SS_Killz Icon : (25 August 2016 - 09:21 PM)
ji swi la
Naruto_1337 Icon : (25 August 2016 - 05:56 PM)
Привет!
Brioche Icon : (25 August 2016 - 01:13 PM)
you can easily remove them for 1€/month ;) that's cheaper than an icecream and it helps us pay for the service cost, ideally if enough supported Tunngle there would be no advertising at all and we plan to remove some in the future if things go better, atm it's either this or we all go home
nodss089 Icon : (25 August 2016 - 12:31 PM)
respect the rules of communication!
nodss089 Icon : (25 August 2016 - 12:28 PM)
giva a **** to tunngle sponsors and spamming rederects
nodss089 Icon : (25 August 2016 - 12:28 PM)
hey
TheDarkChaos Icon : (25 August 2016 - 06:41 AM)
anyone own senran kagura
GoKuGamer_Br123 Icon : (25 August 2016 - 06:05 AM)
ola
StrykeR1901 Icon : (25 August 2016 - 12:05 AM)
sm
Truppensturm Icon : (24 August 2016 - 08:43 PM)
hallo an alle
mak_alpha1 Icon : (24 August 2016 - 07:22 PM)
any cs go players
mak_alpha1 Icon : (24 August 2016 - 07:21 PM)
any cs go
tolehy Icon : (24 August 2016 - 02:41 PM)
how are you
tolehy Icon : (24 August 2016 - 02:41 PM)
hello
sebin_fernandez Icon : (24 August 2016 - 01:29 PM)
hi admin, hook me in
ObeseWhale Icon : (24 August 2016 - 12:26 PM)
Hello :)
Athenian Icon : (24 August 2016 - 09:01 AM)
@all Hola :thumbsup:
Shadowskillerr Icon : (24 August 2016 - 12:05 AM)
brbr
baxiusz Icon : (23 August 2016 - 07:37 PM)
if so, add me on steam : baxius (juliuxs2)
baxiusz Icon : (23 August 2016 - 07:31 PM)
Anyone here for some Hearts of Iron 4 co op?
zlajex38 Icon : (23 August 2016 - 07:07 PM)
i sada kada sam resetovo pass nemogu dase ulogujem
zlajex38 Icon : (23 August 2016 - 07:07 PM)
nekada sam davno koristio ovaj program ali mi to vise neide za rukom jer sam zaboravio pass
zlajex38 Icon : (23 August 2016 - 07:06 PM)
pozz
zlajex38 Icon : (23 August 2016 - 07:05 PM)
govorili neko srpski
UNDER_GREY Icon : (22 August 2016 - 11:22 PM)
zAdRoT228__777__, кроме того, что вы указали, в комнате с этой игрой должны быть другие игроки, кроме вас. Так же у вас должна быть такая же версия игры, как и у большинства других игроков. И в конце у вас должны быть созданы правила исключений для исполняемых файлов игры в антивирусе и брандмауэре виндовс.
GerryHunter Icon : (22 August 2016 - 10:32 PM)
hello,does anybody know how to send game request?
zAdRoT228__7... Icon : (22 August 2016 - 10:17 PM)
привет , помогите , я новичок в этой программе я делал всё по инструкции , на сайте , я установил игру , установил эту программу , зарегался , нажал правой кнопкой мыши на играть , в настройках выбрал игру , в игре включил show lan , а серверов нет
Resize Chat Area