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

Gustavo_Game... Icon : (22 October 2014 - 10:22 PM)
augem tem o ip de serve de rust pirata de 19 dec 2013
sendygood Icon : (22 October 2014 - 09:40 PM)
hoola soy nuevo en tungle
thalamer88 Icon : (22 October 2014 - 09:39 PM)
i have restart my compter
K-Bom Icon : (22 October 2014 - 09:23 PM)
hello
K-Bom Icon : (22 October 2014 - 09:09 PM)
any body here
K-Bom Icon : (22 October 2014 - 09:09 PM)
?????
K-Bom Icon : (22 October 2014 - 09:08 PM)
hey
DutyCalls Icon : (22 October 2014 - 08:59 PM)
can anyone provide me with a link to the crysis 1 version that can be played through tunngle? my origin version and the ssm patch don't work. also, i think it's amazing how people reject friend invitations when there is almost nobody playing the game and they won't even give you information on how to join them...
Snake_Killer Icon : (22 October 2014 - 08:57 PM)
needs restart ?
Meshuggah BG Icon : (22 October 2014 - 08:41 PM)
thalamer88, have you restarted your PC after the installation of Tunngle?
AlexPnz Icon : (22 October 2014 - 08:39 PM)
Подскажите как???
AlexPnz Icon : (22 October 2014 - 08:39 PM)
Ребят что то мы с друганом не как не можем словиться в игре
thalamer88 Icon : (22 October 2014 - 08:08 PM)
can you help me maybe?
thalamer88 Icon : (22 October 2014 - 08:08 PM)
hey
Ramkumar3 Icon : (22 October 2014 - 08:07 PM)
hi guys
thalamer88 Icon : (22 October 2014 - 07:45 PM)
any1 ?
thalamer88 Icon : (22 October 2014 - 07:35 PM)
"4-109 coundnt initailize the tunngle network adaper"
thalamer88 Icon : (22 October 2014 - 07:33 PM)
hey there! can some1 help me with my tunngle? i cant connect to tunngle server. i have try to reboot tunngle and i dont use any firewall.. giving me error 1-109.
Goat87 Icon : (22 October 2014 - 06:58 PM)
hi all
JIMMYH79 Icon : (22 October 2014 - 06:28 PM)
hi
Muhammad Tariq Icon : (22 October 2014 - 06:27 PM)
hi
Mike Harper Icon : (22 October 2014 - 06:27 PM)
@H3RK: Hey buddy :). That's great :thumbsup:!
Mike Harper Icon : (22 October 2014 - 06:26 PM)
Hello mates :)!
Royalgamer06 Icon : (22 October 2014 - 06:11 PM)
Hello guys
hugstar82 Icon : (22 October 2014 - 05:52 PM)
hello
_209_ Icon : (22 October 2014 - 04:34 PM)
what is yor name
_209_ Icon : (22 October 2014 - 04:33 PM)
Hello
_209_ Icon : (22 October 2014 - 04:33 PM)
привет
H3RK Icon : (22 October 2014 - 04:20 PM)
hey mike, we fixed the fullscreen bug with the Crysis 2 Beta and NanoWars games
Mike Harper Icon : (22 October 2014 - 03:09 PM)
Resize Chat Area