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

sina7a Icon : (28 September 2016 - 06:51 PM)
می تونی کمکم کنی
sina7a Icon : (28 September 2016 - 06:51 PM)
dadash hasti
sina7a Icon : (28 September 2016 - 06:50 PM)
bazi egra namishe
sina7a Icon : (28 September 2016 - 06:50 PM)
man komak mikham
sina7a Icon : (28 September 2016 - 06:50 PM)
hasti
Mike Harper Icon : (28 September 2016 - 06:27 PM)
Hey mate :). I'm from Bangladesh. Nice to meet to u too ^^
MagicianMind Icon : (28 September 2016 - 06:20 PM)
Hi frome thailand nice to meet you guy
JqhlLePoisson Icon : (28 September 2016 - 03:32 PM)
yo les fdp
madis254 Icon : (28 September 2016 - 02:26 PM)
i typed u again
7med_2099 Icon : (28 September 2016 - 01:56 PM)
gg
Mike Harper Icon : (28 September 2016 - 12:47 PM)
Hello madis254 :). I replied to your private message :). Check it out :)
madis254 Icon : (28 September 2016 - 12:06 PM)
how to i get it whit the newest update? i have tryed but it wants me to activate uplay code
madis254 Icon : (28 September 2016 - 12:05 PM)
guys.. can anyone help me whit rainbow six siege?
Mike Harper Icon : (28 September 2016 - 06:26 AM)
Hello mates :). @Everyone
@diegobmadrid, You can check this wiki: Network:Call_of_Duty:_World_at_War_Coop :)
diegobmadrid Icon : (28 September 2016 - 03:32 AM)
Can u tell me how play Cod waw in tun with much peopke?
diegobmadrid Icon : (28 September 2016 - 03:32 AM)
Hi
Sergio Busquets Icon : (27 September 2016 - 10:24 PM)
Hi
Mike Harper Icon : (27 September 2016 - 07:00 AM)
Hello there :)
ZalaNozara Icon : (27 September 2016 - 04:03 AM)
Hi is anyone there?
zakion Icon : (26 September 2016 - 03:14 PM)
guys does someone play dota 1 here ?
max11223344 Icon : (26 September 2016 - 11:07 AM)
salam
abusherlock Icon : (26 September 2016 - 09:49 AM)
some one hemlp me with setting up FEAR 3 co op for skidrow version
HersonMendoza Icon : (26 September 2016 - 05:45 AM)
:thumbsup: :thumbsup: :whistling:
HersonMendoza Icon : (26 September 2016 - 05:45 AM)
zwaper hernandes
HersonMendoza Icon : (26 September 2016 - 05:43 AM)
que onda
ObeseWhale Icon : (26 September 2016 - 02:01 AM)
I replied to your thread Marvin ;)
MarvinTheMage Icon : (26 September 2016 - 01:30 AM)
guys the activation link wont work what can i do
ahmed-maher Icon : (25 September 2016 - 07:22 PM)
hii uchihabeast
Brioche Icon : (25 September 2016 - 06:40 PM)
you can check the request new network thread ;)
UchihaBeast Icon : (25 September 2016 - 05:50 PM)
Anyone ?
Resize Chat Area