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

FardinKurd Icon : (01 September 2015 - 11:09 AM)
Hi
Rijoloco Icon : (01 September 2015 - 09:55 AM)
hi
xxloqixx Icon : (01 September 2015 - 05:38 AM)
hola :v
bijang Icon : (01 September 2015 - 03:12 AM)
looking for CS XTREME GAMERS OUT THERE especially in ASIA!!
bijang Icon : (01 September 2015 - 03:09 AM)
hi
erson gomez Icon : (01 September 2015 - 01:18 AM)
hola
Heri00 Icon : (31 August 2015 - 10:42 PM)
hi
DEDJ92 Icon : (31 August 2015 - 09:20 PM)
play someone dont starve?
DEDJ92 Icon : (31 August 2015 - 09:19 PM)
hi
UNDER_GREY Icon : (31 August 2015 - 07:12 PM)
___SoKoL___, изучайте http://www.tunngle.n...71#entry1216271
___SoKoL___ Icon : (31 August 2015 - 06:59 PM)
ПОМОГИТЕ ПОЖАЛУЙСТА! БРАУЗЕР НЕ ОТКРЫВАЕТ СТРАНИЦУ АКТИВАЦИИ ЧАСТНЫХ СЕТЕЙ. ЧТО ДЕЛАТЬ?
karthik_nayak Icon : (31 August 2015 - 06:23 PM)
hi
karthik_nayak Icon : (31 August 2015 - 06:23 PM)
hi
karthik_nayak Icon : (31 August 2015 - 06:22 PM)
ANY ONE IS THERE
BullockServer Icon : (31 August 2015 - 05:07 PM)
Bullockserver is up for a farcry 2 deathmatch ........ all weclome
Quivernfear65 Icon : (31 August 2015 - 07:47 AM)
pleasse someone
Quivernfear65 Icon : (31 August 2015 - 07:44 AM)
Someone please help me! I cant get tunngle to open, even when i run it as administrator. No error shows up and when i check task manager there is no Tunngle there. PLEASE HELP, i have tried tunnglev5.5 and 5.4 and 4.3 as well. it isnt opening at all! PLEASE HELP ME
m3dzz Icon : (31 August 2015 - 07:23 AM)
Hey guys
Mike Harper Icon : (31 August 2015 - 06:42 AM)
Hi mates :)
pisonPK2015 Icon : (31 August 2015 - 04:57 AM)
hi all
pisonPK2015 Icon : (31 August 2015 - 04:36 AM)
hi
marwanali9 Icon : (30 August 2015 - 11:37 PM)
hillo
ftcdsio Icon : (30 August 2015 - 11:29 PM)
server arma 3 up ping and my ping 300 out game 5-10 min plz help me
Sectioned Icon : (30 August 2015 - 08:03 PM)
hi
tourajdotas Icon : (30 August 2015 - 04:47 PM)
???????
tourajdotas Icon : (30 August 2015 - 04:47 PM)
any one for Daying light
tourajdotas Icon : (30 August 2015 - 04:47 PM)
hi
Raziel_Letaon Icon : (30 August 2015 - 02:45 PM)
**********
Raziel_Letaon Icon : (30 August 2015 - 02:44 PM)
***** company of heroes tales of valor 2.602 ?????????
Sectioned Icon : (30 August 2015 - 01:13 PM)
@Goigioi: Try opening device manager, make sure there is just 1 Tunngle adapter as sometimes it gets cloned when installing updated Tunngle version.

Disable both or just the one Tunngle adapter then re enable just the one Tunngle adapter.
Reboot pc and modem then try logging in again.
Resize Chat Area