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

Brioche Icon : (23 September 2014 - 02:40 PM)
but it's good that everything is back now :)
Brioche Icon : (23 September 2014 - 02:40 PM)
yeah, pretty hard and stressful days
RyDeRz Icon : (23 September 2014 - 02:37 PM)
back in business
Brioche Icon : (23 September 2014 - 02:24 PM)
all the issues should be solved now, thanks for your patience and for your support :).
ObeseWhale Icon : (23 September 2014 - 04:44 AM)
The Tunngle Team is aware of the issue and is looking into it :)
adamshumpisxxx Icon : (23 September 2014 - 03:37 AM)
Apparently nobody can register. This is a huge issue. Error 524 on the Validation Server.
Echo5Hotel Icon : (23 September 2014 - 03:36 AM)
Anyone here that can help a friend of mine get registered? I actually have two friends that have been trying to register. One is getting mysql errors and the other is simply not getting the confirmation email to complete his registration.
pixeel1 Icon : (23 September 2014 - 03:31 AM)
lo
pixeel1 Icon : (23 September 2014 - 03:31 AM)
hsurhgksbfvnsdlkv
FearzEnemy Icon : (23 September 2014 - 03:26 AM)
lol
RisKorN Icon : (23 September 2014 - 01:39 AM)
this is bullshit..

You cant even register to tunngle anymore..

Challengequestion: ilovegaming
Answer: NOTHING WORKS?
Deklyn Hunt Icon : (22 September 2014 - 10:17 PM)
any admin on?
AnjaZ Icon : (22 September 2014 - 09:29 PM)
I think I need help... but whatever...
AnjaZ Icon : (22 September 2014 - 09:28 PM)
Oh well
AnjaZ Icon : (22 September 2014 - 09:25 PM)
Seriously guys is anyone online :pinch:
AnjaZ Icon : (22 September 2014 - 09:20 PM)
Idk, try to make him/her a new one and try again
afgezz_Tornado Icon : (22 September 2014 - 09:18 PM)
when i put a new email adress to register my friend it says this is in use how can i fix it ? tnx
AnjaZ Icon : (22 September 2014 - 09:17 PM)
I'm here
afgezz_Tornado Icon : (22 September 2014 - 09:17 PM)
hello is any one herE?
izal Icon : (22 September 2014 - 07:53 PM)
ooohh thx man i can join tunngle thanks
izal Icon : (22 September 2014 - 07:52 PM)
i cant join login tunngle
raysanxiii Icon : (22 September 2014 - 06:55 PM)
cant even register lol
Brioche Icon : (22 September 2014 - 10:34 AM)
yes
ismasasoel Icon : (22 September 2014 - 04:54 AM)
I can log in here but not in the desktop client... am I supposed to use the same username/password than here?
ismasasoel Icon : (22 September 2014 - 04:53 AM)
Hey guys! Someone can help me out with a lil' issue?
itsgreekpete Icon : (22 September 2014 - 03:49 AM)
i keep asking it to resend verification and it wont resend it
itsgreekpete Icon : (22 September 2014 - 03:49 AM)
yea i couldnt register on main site
syoxiss1 Icon : (22 September 2014 - 03:13 AM)
scratch that, it gave the error but post the reply anyway, so maybe someone can resolve it
syoxiss1 Icon : (22 September 2014 - 03:11 AM)
this will be a problem, i tryed to post what happened in itsgreekpete's forum post, but it still gives the mysql problem
syoxiss1 Icon : (22 September 2014 - 02:58 AM)
i'm gonna try to make this problem be known
Resize Chat Area