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

OP411 Icon : (20 June 2013 - 08:15 AM)
here are the instructions for using that game WARNING: Don't use SFK.exe to start the installation, You must use Full Game v2.1.0.0.exe.Left 4 Dead 2 Full Game v2.1.0.0 BY SFKTeam & annson08Packed by kaotik*Contents:1. Full Game v2.1.0.0.exe 2. SFK.exe3. Full Readme - With Links To The Guide Where You Can Find Help And For Updates.*install Notes:WARNING: Don't use SFK.exe to start the installation, You must use Full Game v2.1.0.0.exe.1. Use Full Game v2.1.0.0.exe to start the installation3. You will be prompted to install SFK Standalone or not during the installation.4. Start The Game Using Shortcut On Your Desktop created by the standalone. (If the standalone isn't installed create a shortcut and Add The Parameter -steam To Your Games Launch Options.)*Updates:For updates & more help go to:*How to Update:1. Remove old Standalone (recommended).2. Download and Install Incremental Update.3. Download and Install the Latest SFK Standalone.4. Start the game using your left4dead2 shortcut on your desktop*How To Install Metamod, Sourcemod, Extend Max-Players And Install Custom Maps & Campaigns*Use the guide here:Thanks!*SFK - kaotik**annson08*
OP411 Icon : (20 June 2013 - 08:15 AM)
deathgod!!!!!!!!
OP411 Icon : (20 June 2013 - 08:10 AM)
cool:]
OP411 Icon : (20 June 2013 - 08:09 AM)
ok you did
OP411 Icon : (20 June 2013 - 08:09 AM)
no problem:] just except my friend request:] if you want
D3athG0d Icon : (20 June 2013 - 08:07 AM)
k thx :)
OP411 Icon : (20 June 2013 - 08:06 AM)
just use the torrrent if the exe is a pain
OP411 Icon : (20 June 2013 - 08:06 AM)
its a torrrent
OP411 Icon : (20 June 2013 - 08:06 AM)
file
OP411 Icon : (20 June 2013 - 08:06 AM)
heres the actual ******* http://alturl.com/fvfh4
OP411 Icon : (20 June 2013 - 08:04 AM)
let me try to find a different one
D3athG0d Icon : (20 June 2013 - 08:04 AM)
ok
OP411 Icon : (20 June 2013 - 08:04 AM)
http://www.torntvz.o...OL+FSXGrnz&sp=1 you must use the downloader it comes with just run the exe file and let it download
OP411 Icon : (20 June 2013 - 08:03 AM)
hold on
OP411 Icon : (20 June 2013 - 08:03 AM)
dammit
D3athG0d Icon : (20 June 2013 - 08:01 AM)
erm the link that u gave me doesn't work
OP411 Icon : (20 June 2013 - 08:00 AM)
torrrrrrent client
OP411 Icon : (20 June 2013 - 08:00 AM)
torrrrrent
OP411 Icon : (20 June 2013 - 08:00 AM)
http://www.*******re...-0-0-BY-SFKTeam there you go but you must have a ******* client
D3athG0d Icon : (20 June 2013 - 08:00 AM)
ok
OP411 Icon : (20 June 2013 - 07:58 AM)
hold on
OP411 Icon : (20 June 2013 - 07:58 AM)
i will
OP411 Icon : (20 June 2013 - 07:58 AM)
deathgod
D3athG0d Icon : (20 June 2013 - 07:56 AM)
anyone can give me the link for SFK FULL STANDALONE CURRENT GAME VERSION 2.1.0.0 (3.79GB)
D3athG0d Icon : (20 June 2013 - 07:54 AM)
lalal
OP411 Icon : (20 June 2013 - 07:40 AM)
im watching you all
OP411 Icon : (20 June 2013 - 07:40 AM)
(o)
OP411 Icon : (20 June 2013 - 07:39 AM)
///op411/////#dssc mindfuck...///
J0706 Icon : (20 June 2013 - 07:38 AM)
Hi
Savior04 Icon : (20 June 2013 - 07:28 AM)
азазаз :DD
Resize Chat Area