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

Dentchan Icon : (26 February 2017 - 12:43 PM)
did someone just said moon hunters
Dentchan Icon : (26 February 2017 - 12:43 PM)
hey
Rumen1243 Icon : (26 February 2017 - 11:46 AM)
pls help i tunngle speak me connect to tunngle and i click play your game and say me connect your acc
armagedonxzx Icon : (26 February 2017 - 09:28 AM)
I'm would a host
armagedonxzx Icon : (26 February 2017 - 09:26 AM)
Need players for gears of war 1
Aryancctvis Icon : (26 February 2017 - 08:50 AM)
Please play don bradman cricket 14
Dean_06 Icon : (26 February 2017 - 07:50 AM)
anyone wanna play cod bo2 zombies
ricnad Icon : (26 February 2017 - 03:22 AM)
salut tout le monde j ai besoin d aide j essais pour la première fois tunngle et j essai de joindre un réseau existant je clic sur liste des reseau mais sur la page qui ouvre je n en vois aucun merci a l avance
Fornirad Icon : (26 February 2017 - 12:38 AM)
hi :D
ProGragen91 Icon : (25 February 2017 - 11:16 PM)
hi all ;)
Gameboyrules Icon : (25 February 2017 - 10:51 PM)
I can't host but me and the person trying to join can join other people games just fine what could possible be wrong
Gameboyrules Icon : (25 February 2017 - 10:50 PM)
Hello
Endert182 Icon : (25 February 2017 - 10:47 PM)
Anyone to play Moon Hunters?
reza1900 Icon : (25 February 2017 - 09:32 PM)
please join room of hawxs to play
reza1900 Icon : (25 February 2017 - 09:31 PM)
iam playing hawx now
reza1900 Icon : (25 February 2017 - 09:31 PM)
hi
granda1283 Icon : (25 February 2017 - 09:23 PM)
samfish560 may be able to play in a couple of days.
granda1283 Icon : (25 February 2017 - 09:21 PM)
ne1 play gmod fnaf remake map?
rodrigo132311 Icon : (25 February 2017 - 09:07 PM)
tunngle no me abre , alguna ayuda ?
MohameD23xxx Icon : (25 February 2017 - 08:48 PM)
broo
rodrigo132311 Icon : (25 February 2017 - 08:42 PM)
no me abre tungle
rodrigo132311 Icon : (25 February 2017 - 08:42 PM)
tunngle no me inicia no abre'' alguien me ayuda ?
rodrigo132311 Icon : (25 February 2017 - 08:37 PM)
Tunngle error no inicia como lo soluciono?
Ananda_Tsybikov Icon : (25 February 2017 - 07:03 PM)
Who want play Sniper:Ghost Warrior 2? Умею и по-русски говорить
Ananda_Tsybikov Icon : (25 February 2017 - 07:03 PM)
Hi
HomeBakes Icon : (25 February 2017 - 03:56 PM)
Привет всем,где можно скачать патч borderlands 2 1.8.0?
reza1900 Icon : (25 February 2017 - 12:53 PM)
iam playing hawx if anybody want to play send message to me
reza1900 Icon : (25 February 2017 - 12:52 PM)
cantact me for hawx
reza1900 Icon : (25 February 2017 - 12:52 PM)
who play hawx 1??
reza1900 Icon : (25 February 2017 - 12:51 PM)
hi
Resize Chat Area