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

Kingstonkrik Icon : (29 November 2014 - 04:53 AM)
кто сдесь?
Kingstonkrik Icon : (29 November 2014 - 04:48 AM)
этпздц
ObeseWhale Icon : (29 November 2014 - 01:50 AM)
@Redeye. You can find some info on the Account wiki page ;)
sqetch.games Icon : (29 November 2014 - 12:03 AM)
тут кто есть ?
sqetch.games Icon : (29 November 2014 - 12:02 AM)
Ребята, у меня проблема, можете помочь ?
Redeye. Icon : (28 November 2014 - 09:53 PM)
how can i delete my account ?
Redeye. Icon : (28 November 2014 - 09:51 PM)
i want to delete my account and do a new one ... how should i do that ?
Redeye. Icon : (28 November 2014 - 09:51 PM)
hello
Bloody___war... Icon : (28 November 2014 - 09:05 PM)
dsfdsfd
Zorander_rus Icon : (28 November 2014 - 08:26 PM)
Russian go to amerika Anigilation
Luciole STK Icon : (28 November 2014 - 07:22 PM)
Yeaah.... Motherwucka!!!!!
MDL STK 1 Icon : (28 November 2014 - 07:20 PM)
YO BITCHEZ! ARDENT SKY 8 SOON
Adnanqamar Icon : (28 November 2014 - 06:39 PM)
we both are using routers
Adnanqamar Icon : (28 November 2014 - 06:38 PM)
I want to connect with my friend Mohazamkhantk
But i see red cross near his name and he also sees red cross near my name.
KirillGubin Icon : (28 November 2014 - 06:31 PM)
аххахаха
Nico Bartz Icon : (28 November 2014 - 01:29 PM)
moin leude
Mike Harper Icon : (28 November 2014 - 01:24 PM)
Hello :). You mean how to join a game? If yes, then you can check this wiki to get general instructions about Tunngle: Tunngle#How_To_Play :).
lyleterence123 Icon : (28 November 2014 - 01:15 PM)
hi there how to join? :rolleyes:
Mike Harper Icon : (28 November 2014 - 12:58 PM)
Привет kaka_sraka :)! Я хорошо :)
Видеть Русский Форум для больше русские - http://www.tunngle.n...m/1821-russian/ :).
(Those are the very few Russian words i know :D)
kaka_sraka Icon : (28 November 2014 - 12:09 PM)
че как дела
kaka_sraka Icon : (28 November 2014 - 12:09 PM)
ку русские
Mike Harper Icon : (28 November 2014 - 08:48 AM)
Hey, mate :). Welcome to Tunngle :).
For instructions on getting stated to play games with Tunngle, you can check this wiki: Tunngle#How_To_Play :).
Ars.Inflames Icon : (28 November 2014 - 08:40 AM)
so, some one help me :(
Ars.Inflames Icon : (28 November 2014 - 08:40 AM)
hero III might and magic
Ars.Inflames Icon : (28 November 2014 - 08:40 AM)
i want to connect with my friends
Ars.Inflames Icon : (28 November 2014 - 08:39 AM)
im newbie
Ars.Inflames Icon : (28 November 2014 - 08:39 AM)
hi everybody
Mike Harper Icon : (28 November 2014 - 07:12 AM)
Hi, mates :).
H3Py Icon : (27 November 2014 - 11:26 PM)
Hy m'a friend
Franki534534534 Icon : (27 November 2014 - 08:26 PM)
Hello
Resize Chat Area