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

ObeseWhale Icon : (23 November 2014 - 01:04 AM)
Hey, did you try one of the mirror download links? :)
provinground Icon : (23 November 2014 - 12:00 AM)
hi every one why i cannot download the tunngle program
Undeadhero1212 Icon : (22 November 2014 - 11:58 PM)
Probably because your internet is slow...
FredLongchamp Icon : (22 November 2014 - 10:51 PM)
why its so long to install this ?
Adanz Icon : (22 November 2014 - 10:33 PM)
hi
JesusGamerXx11 Icon : (22 November 2014 - 09:32 PM)
Alguien quiere Jugar Homefornt?
JesusGamerXx11 Icon : (22 November 2014 - 09:31 PM)
Hola
Karmaobserver Icon : (22 November 2014 - 08:44 PM)
i am gona start
Karmaobserver Icon : (22 November 2014 - 08:44 PM)
Is there someone who wants to start playing Titan Quest Immortal Thrones from beging?
Karmaobserver Icon : (22 November 2014 - 08:43 PM)
hey
artyr3A Icon : (22 November 2014 - 07:55 PM)
is there anyon who want to lay generals contra 007
SuZliK Icon : (22 November 2014 - 06:45 PM)
Tunngle adapter (10Mbps) goes up to 100% on hosting computer but only 50% on Client. Game will not function normally. How to fix this?
danylalex Icon : (22 November 2014 - 06:40 PM)
?
danylalex Icon : (22 November 2014 - 06:40 PM)
how i play minecraft with tangle
SuZliK Icon : (22 November 2014 - 06:35 PM)
Hey! Has anyone here used Steam In-Home streaming before?
milanp98 Icon : (22 November 2014 - 06:28 PM)
anyone wanna play pd2?
Kelilson Icon : (22 November 2014 - 05:15 PM)
IP?
Mike Harper Icon : (22 November 2014 - 04:10 PM)
Selam :). Check the Posted Image Türk forum :)
Dogucan12 Icon : (22 November 2014 - 03:56 PM)
Türk varmı
wesboydead Icon : (22 November 2014 - 01:39 PM)
someone wants to play age of empairs 3
UNDER_GREY Icon : (22 November 2014 - 12:55 PM)
Aibolit199101. а что разве в комнате с этой игрой никого нет?)
Aibolit199101 Icon : (22 November 2014 - 12:25 PM)
всем привет! кто гоняет в килинг флур, отзовитесь!
Aibolit199101 Icon : (22 November 2014 - 12:24 PM)
hi=))
kalki_the_one Icon : (22 November 2014 - 11:52 AM)
hey, how do i use this to play games
CodGhosts47 Icon : (22 November 2014 - 10:01 AM)
can anyone help me with payday 2 update 29 error?
Mike Harper Icon : (22 November 2014 - 07:38 AM)
@KryLuna: Hey :). Welcome to Tunngle :). ANY GAME with LAN is supported :).
Mike Harper Icon : (22 November 2014 - 07:37 AM)
@cashems: ATM there is 26 players in the Killing floor network :). You can ask them if they're up for a game :)
Mike Harper Icon : (22 November 2014 - 07:37 AM)
Hi mates :).
cashems Icon : (22 November 2014 - 06:55 AM)
Killing Floor anyone?
KryLuna Icon : (22 November 2014 - 04:50 AM)
"new"
Resize Chat Area