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

Danny_vatson Icon : (25 October 2014 - 10:20 AM)
ть
Danny_vatson Icon : (25 October 2014 - 10:19 AM)
как это исправи
Danny_vatson Icon : (25 October 2014 - 10:19 AM)
на данный момент вы не можете играть в соор режиме
Danny_vatson Icon : (25 October 2014 - 10:19 AM)
ребята подскажите
zzhollowzz Icon : (25 October 2014 - 10:13 AM)
?)
mast3r_l3g3nd Icon : (25 October 2014 - 09:28 AM)
hello :)
ObeseWhale Icon : (25 October 2014 - 12:59 AM)
Hey :)
Raz0r_l33t Icon : (25 October 2014 - 12:53 AM)
hi
xdj200 Icon : (25 October 2014 - 12:33 AM)
QUEM JOGAR Resident Evil 6 ME ADD
Bezo25 Icon : (24 October 2014 - 11:12 PM)
Hello :)
jomapisa Icon : (24 October 2014 - 11:00 PM)
ola k ase
BurekSaSirom Icon : (24 October 2014 - 10:46 PM)
?
BurekSaSirom Icon : (24 October 2014 - 10:46 PM)
i need help i cant log in says i need tunngle network adapter? what is that and do i really need that
BurekSaSirom Icon : (24 October 2014 - 10:45 PM)
i sta je to?
BurekSaSirom Icon : (24 October 2014 - 10:45 PM)
treba mi pomoc ne mogu da se ulogujem trazi mi tunngle network adapter da li to mora da se ima?
angljss Icon : (24 October 2014 - 08:22 PM)
Hola amigos
ShadowOptics Icon : (24 October 2014 - 07:59 PM)
My Tunngle says port closed even-though i forwarded the port
ShadowOptics Icon : (24 October 2014 - 07:57 PM)
Hello, i wonder if anyone can help me
chaves135 Icon : (24 October 2014 - 05:19 PM)
tiago vc é do brasil
chaves135 Icon : (24 October 2014 - 05:19 PM)
rust ip soy
KESS777 Icon : (24 October 2014 - 04:31 PM)
Кто в Borderlends 2
zvezda8 Icon : (24 October 2014 - 03:50 PM)
Posted Image
zvezda8 Icon : (24 October 2014 - 03:47 PM)
кто играет в ил-2
zvezda8 Icon : (24 October 2014 - 03:47 PM)
привет!
ikaika055 Icon : (24 October 2014 - 02:10 PM)
ДейЗ калл
ikaika055 Icon : (24 October 2014 - 02:10 PM)
Привет я ика
ikaika055 Icon : (24 October 2014 - 02:09 PM)
Hello i am ika
goodjkee Icon : (24 October 2014 - 01:01 PM)
нажимаю в игре F12 в гта 4 эпизоды а оно не говорит воркинг в чем причина
goodjkee Icon : (24 October 2014 - 01:00 PM)
помогите
Mike Harper Icon : (24 October 2014 - 12:49 PM)
Hi :). As far as i know Call of Duty: Black Ops 2 doesn't support LAN, and for this reason, it can't be played with Tunngle.
Resize Chat Area