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

Error Code 76E Icon : (31 March 2015 - 03:25 PM)
Error Code 76E Icon : (31 March 2015 - 03:24 PM)
Loading comment...
georgii-1998 Icon : (31 March 2015 - 12:32 PM)
ребят кто нибудь знаете arma 3 почему у меня при запуске ошибка вот No entry bin\ config.bin/CfgDifficulties/Recruit/Flags.UltraAI.
UNDER_GREY Icon : (31 March 2015 - 08:48 AM)
Plaksa69, ну попробуйте еще раз
Plaksa69 Icon : (31 March 2015 - 08:31 AM)
[# 10193] Мы столкнулись с проблемой обработки вашего запроса входа в систему. Пожалуйста, попробуйте еще раз.
Plaksa69 Icon : (31 March 2015 - 08:31 AM)
ребят как исправить ошибку
UNDER_GREY Icon : (31 March 2015 - 08:18 AM)
Barselon, там же где и обычно
UNDER_GREY Icon : (31 March 2015 - 08:17 AM)
Doza4ok, на каком этапе не получается создать?
Doza4ok Icon : (31 March 2015 - 08:00 AM)
Вроде всё делаю , но не получается:(
Doza4ok Icon : (31 March 2015 - 07:57 AM)
Подскажите, не могу создать частную сеть
Doza4ok Icon : (31 March 2015 - 07:57 AM)
Ребят
Barselon Icon : (30 March 2015 - 10:03 PM)
народ, а кто знает где сохраняются настройки Lord of the Rings. War in the North если играть через Tunngle?
LodbergDK Icon : (30 March 2015 - 08:10 PM)
tis
CANEK2142 Icon : (30 March 2015 - 07:45 PM)
есть КТО?
wladislav wot Icon : (30 March 2015 - 07:14 PM)
кто тхочет поиграть в dying light оп сети
wladislav wot Icon : (30 March 2015 - 07:13 PM)
всем привет
illumenat Icon : (30 March 2015 - 06:48 PM)
хочу с другом поиграть как это сделать?
illumenat Icon : (30 March 2015 - 06:48 PM)
помогите с героями 3 HD
illumenat Icon : (30 March 2015 - 06:47 PM)
всем привет
UNDER_GREY Icon : (30 March 2015 - 05:41 PM)
meywmeyw, ну дак подтвердите вашу учётную запись через почту
meywmeyw Icon : (30 March 2015 - 05:17 PM)
ребят,такая проблемка,выдаёт ошибку 4-107,пишет типо не авторизировал через почту,на сайте заходит нормально,но в сам тангл зайти не могу,выдаёт ту ошибку
ObeseWhale Icon : (30 March 2015 - 12:51 PM)
You can leave it blank if your not sure :)
mir fahad Icon : (30 March 2015 - 12:30 PM)
what to write in command line parameters?
mir fahad Icon : (30 March 2015 - 12:30 PM)
I need help
UNDER_GREY Icon : (30 March 2015 - 11:24 AM)
какую ошибку выдает?
UNDER_GREY Icon : (30 March 2015 - 11:24 AM)
875875875, ?
875875875 Icon : (30 March 2015 - 11:23 AM)
ребята у меня до сих пор просит авторизоватса как
ObeseWhale Icon : (30 March 2015 - 10:20 AM)
Hey ingres :)
ingres Icon : (30 March 2015 - 10:01 AM)
hi all
ObeseWhale Icon : (30 March 2015 - 04:42 AM)
Hey :)
Resize Chat Area