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

UNDER_GREY Icon : (05 May 2016 - 06:54 PM)
Nikolai_38rus, скриншот вашего никнейма в комнате тангл покажите, я не понимаю о каком блоке вы ведёте речь.
Nikolai_38rus Icon : (05 May 2016 - 04:09 PM)
ну из за меня зайти не могут в комнату
UNDER_GREY Icon : (05 May 2016 - 02:14 PM)
Nikolai_38rus, в смысле блок, вы о чем?
UNDER_GREY Icon : (05 May 2016 - 02:14 PM)
Nikolai_38rus Icon : (05 May 2016 - 01:51 PM)
почему я в комнате блок? скажет кто нибудь?
Enytox Icon : (05 May 2016 - 01:07 PM)
fort open it
Enytox Icon : (05 May 2016 - 01:07 PM)
hello, can i have the port of game ?
Kreed.2000 Icon : (05 May 2016 - 12:34 PM)
как играть в варкрафт3?
UNDER_GREY Icon : (05 May 2016 - 11:13 AM)
Nikolai_38rus Icon : (05 May 2016 - 11:09 AM)
парни куда в тунгле нажать? чтоб играть
lehaTITAN Icon : (05 May 2016 - 09:21 AM)
щЯ
lehaTITAN Icon : (05 May 2016 - 09:21 AM)
oz
UNDER_GREY Icon : (05 May 2016 - 09:19 AM)
lehaTITAN, всё прекрасно подключается. Проверьте не блокируют ли соединение тангл ваш антивирус и брандмауэр виндовс.
lehaTITAN Icon : (05 May 2016 - 09:18 AM)
плиз
lehaTITAN Icon : (05 May 2016 - 09:15 AM)
пацаны помогите по чему в тунгле не за ходит пишет (невозможно соединиться с главным сервером TUNGLE.(1) ПЛИЗ
H3AT_gravity Icon : (05 May 2016 - 08:03 AM)
hi
InfectedLabRat Icon : (05 May 2016 - 06:41 AM)
Hi there. What mods are needed for me to join you guys tomorrow in training?
juanpapro Icon : (05 May 2016 - 05:57 AM)
tks anyone?
juanpapro Icon : (05 May 2016 - 05:57 AM)
some one pls, can tell me what version do I need to join the arma iii multiplayer with tunggle, I have the arma3 52 version is that the right one
juanpapro Icon : (05 May 2016 - 05:55 AM)
hello pls
ObeseWhale Icon : (05 May 2016 - 12:05 AM)
Hey :)
wapeons Icon : (04 May 2016 - 11:55 PM)
anyone there?
wapeons Icon : (04 May 2016 - 11:55 PM)
hello
UNDER_GREY Icon : (04 May 2016 - 09:53 PM)
ILikeEcchi, ответил на форуме.
ILikeEcchi Icon : (04 May 2016 - 09:30 PM)
кто поможет в Sins Оf A Solar Empire: Rebellion У меня с другом версия 1.82.5006 когда мы пытаемся играть по сети пишет "DLS: string not found" что делать?
Stasbarskij Icon : (04 May 2016 - 08:04 PM)
кто в донт старве тугезе
vovan112013 Icon : (04 May 2016 - 04:26 PM)
кто в героев 5 хочет сыграть ?
UNDER_GREY Icon : (04 May 2016 - 12:07 PM)
Ivan123321-999, что именно происходит при попытке подключится к сети?
ОБН.: Сейчас зашел в сеть Saints Row 2, вы там сидите.
Ivan123321-999 Icon : (04 May 2016 - 12:04 PM)
Не могу зайти в сеть в Saints Row 2 Помогите!!
IBRAHIMPRO-FBI Icon : (03 May 2016 - 09:52 PM)
Free DLC Battlefield 4 Dragon's Teeth & Battlefield Hardline Robbery
https://www.origin.c...es/on-the-house
Resize Chat Area