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

zunnie247 Icon : (22 May 2015 - 07:19 AM)
Hey Ezio, you should try C&C Generals Zero Hour :)
Ezio2015AD Icon : (22 May 2015 - 12:06 AM)
and btw is there anyone playin' Final Fantasy Type-0? sorry if I'm being 'old school' :P
Ezio2015AD Icon : (22 May 2015 - 12:03 AM)
Hi all, wondering, what game's popular on Tunngle atm?
MagicPantsII Icon : (21 May 2015 - 10:11 PM)
Guys
Nautisha Icon : (21 May 2015 - 08:18 PM)
Hi everyone, I was wondering, is it possible for normal members to change their nickname?
mosestas Icon : (21 May 2015 - 08:05 PM)
its this link
mosestas Icon : (21 May 2015 - 08:03 PM)
mosestas Icon : (21 May 2015 - 08:02 PM)
hi help!!!! the in junkies client when yoiu press register it dosn't work... and "1. Register and Login with your Account and 2. Download the latest attached Files " dosn't work for me... can someone elp me??
you can text me here https://www.facebook...modestas.dirse. text a pm message.
Ralph Ob Icon : (21 May 2015 - 07:40 PM)
Commandos 2???
alfvommars Icon : (21 May 2015 - 07:00 PM)
yo i got issues with tunngle..cant join a room with 190/255 it gets stuck when changing the network + port forwarding is ****ed up...port is forwarded but still yellow and in option it says the port is not reachable. :/ any suggestions what i can do ?
KONCAR Icon : (21 May 2015 - 06:30 PM)
tunngle have problem or what? (when i want to join on tunngle i see this: waiting queue 40/40)
KONCAR Icon : (21 May 2015 - 06:26 PM)
i need to ask something
KONCAR Icon : (21 May 2015 - 06:26 PM)
Hello
Manzéger Péter Icon : (21 May 2015 - 05:51 PM)
Hi!
We want to play with company of heroes ToV 2.50 and we can't connect to the room. The server write: network switch succesfull please wait but do not join. Whats the problem (sorry for my english)?
lolo16 Icon : (21 May 2015 - 05:32 PM)
i want play with my brother on star empire at war force of corruption with the mod : republic at war. We go to the tunngle on star wars empire at war force of corruption network, after we go to the game but when we go to play, the game freezes on the loading screen of the game
lolo16 Icon : (21 May 2015 - 05:27 PM)
hello, i need help pls
Razgr1zzz Icon : (21 May 2015 - 05:26 PM)
гоу в скайп kirja232000
Creati0n Icon : (21 May 2015 - 04:53 PM)
Кто хочет большой любви?
Creati0n Icon : (21 May 2015 - 04:52 PM)
123
jakoubik Icon : (21 May 2015 - 01:54 PM)
Hello, I have a problem. My friends created a private networks, but I can't join to them. My tunngle want to activate a account, but any browser didn't open. Than I must reset the tunngle.
ObeseWhale Icon : (21 May 2015 - 01:29 PM)
Hey there :)
Hafidh.bens Icon : (21 May 2015 - 01:20 PM)
Hi All
Pikann Icon : (21 May 2015 - 01:05 PM)
hi
Delgadoman Icon : (21 May 2015 - 11:40 AM)
:whistling:
Delgadoman Icon : (21 May 2015 - 11:40 AM)
Hello
MatthewKel3 Icon : (20 May 2015 - 06:42 PM)
ciao
franccesco33 Icon : (20 May 2015 - 05:09 PM)
finalmente sono entrato
zunnie247 Icon : (20 May 2015 - 01:35 PM)
Check our the Generals FPS conversion :) hehehe, this gonna be awesome :D
Team Danger Icon : (20 May 2015 - 09:46 AM)
my tunngle is not working
HelpBot Icon : (20 May 2015 - 05:21 AM)
@gilyadgar: Please check Error:4-109
@escuzar75: Follow this Link to reset your Password -> https://www.tunngle....ection=lostpass
Resize Chat Area