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

Gaz7 Icon : (27 August 2014 - 11:52 PM)
I find it! sorry
Gaz7 Icon : (27 August 2014 - 11:44 PM)
How do I download tunngle?
HelpBot Icon : (27 August 2014 - 10:27 PM)
I can't help you with Downloadlinks, because discussing this is not allowed! Read the Instructions again or create a new Topic here: http://www.tunngle.n...nts-row-series/
Genjie7 Icon : (27 August 2014 - 10:24 PM)
what is wrong...
Genjie7 Icon : (27 August 2014 - 10:23 PM)
is this link to my download the proper version . patch? Edit by HelpBot: Link Removed. please read the Rules!
Genjie7 Icon : (27 August 2014 - 10:23 PM)
or not.... it says u must downlo9ad the lastest patch from the steam server....
HelpBot Icon : (27 August 2014 - 10:22 PM)
Ask in the Network if someone is hosting
Genjie7 Icon : (27 August 2014 - 10:22 PM)
nvm works now xD
Genjie7 Icon : (27 August 2014 - 10:20 PM)
i mean find game* not any game
Genjie7 Icon : (27 August 2014 - 10:20 PM)
it shows : No games found, when i go to Co-op > LAN > any game
Genjie7 Icon : (27 August 2014 - 10:19 PM)
it doesnt work
HelpBot Icon : (27 August 2014 - 10:14 PM)
Genjie7 Icon : (27 August 2014 - 10:14 PM)
:(
Genjie7 Icon : (27 August 2014 - 10:12 PM)
i just installed tuggle and installled saint rows 4... now what? ;/ i wana play online
Genjie7 Icon : (27 August 2014 - 10:11 PM)
some1 help me pls
HelpBot Icon : (27 August 2014 - 10:11 PM)
@Farquad4: Have you downloaded Tunngle from tunngle.net?
Jayman Gaming Icon : (27 August 2014 - 08:51 PM)
Suscribe on youtube Jayman Craft
Jayman Gaming Icon : (27 August 2014 - 08:51 PM)
yo
Farquad4 Icon : (27 August 2014 - 08:27 PM)
it gave me spyware
Dara97 Icon : (27 August 2014 - 08:23 PM)
how do i play games online?
Dara97 Icon : (27 August 2014 - 08:23 PM)
hi
ALOIYD Icon : (27 August 2014 - 07:50 PM)
@Karalenas it's better and simpler than hamachi
officialgmania Icon : (27 August 2014 - 07:45 PM)
is it possible to play Battle Royale on tunngle?
officialgmania Icon : (27 August 2014 - 07:44 PM)
Guys
Karalenas Icon : (27 August 2014 - 07:37 PM)
Hey guys can i use Tunngle like a hamachi? couse hamachi is a ****** ****
onelos1 Icon : (27 August 2014 - 07:22 PM)
hey
Toni060XD Icon : (27 August 2014 - 07:12 PM)
caca
onelos1 Icon : (27 August 2014 - 07:09 PM)
I have 4.5.1.4
Desolator03 Icon : (27 August 2014 - 07:08 PM)
у кого-то есть установка tunngle 4.5.1.3?
onelos1 Icon : (27 August 2014 - 07:08 PM)
Huawei hg 658
Resize Chat Area