[RELEASE] ANTI-HOSPITAL-GLASS

cyrq

Valued Member!
This little bug was pissing me off way to long.
Sometime's u could just spray an entire mag trough the windows and ARMA gave zero fucks about it.
So made a simple script...
ANTI-HOSPITAL-GLASS (v1.0)
Set's damage to the glass in every Hospital (Land_A_Hospital) on the map.
Unfortunately setHit ["glass",1] doesn't make the rvmat change, so the glass is still there. But it only takes one hit (always) to get rid of it and enter the Hospital.

The only exception are hospitals added by you (If they're server side loaded) - all of them spawn with the glass completely destroyed.

Requirements:
- Brain and a Text Editor. (Easy = Blue <10)

Installation Steps:
- Open up server_monitor.sqf from your dayz_server.pbo
- Find:
Code:
// antiwallhack
call compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\fa_antiwallhack.sqf";
- Below add
Code:
// fuck you hospital glass!
call compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\fn_hospitalGlass.sqf";
- Create a file in your dayz_server\compiles called fn_hospitalGlass.sqf with the fallowing content:

Code:
//ANTI-HOSPITAL-GLASS by cyrq
 
private ["_hospital","_point","_findHospital"];
 
_hospital = "Land_A_Hospital"; //Hospital class
_point = getMarkerpos "center"; //Center (Novy Sobor)
_findHospital = (_point) nearObjects [_hospital,20000]; //Find all Hospitals
 
if (count _findHospital > 0) then { //Count all hospitals in Chernarus
diag_log ("ANTI-HOSPITAL-GLASS: Hospitals found: " + str(count _findHospital)); //Fancy diag_log
{_x setHit ["glass",1]} forEach _findHospital; //Set damage only to the glass for every Land_A_Hospital in Chernarus
diag_log ("ANTI-HOSPITAL-GLASS: Hospital glass destroyed in " + str(count _findHospital) + " buildings"); //Fancy diag_log part 2
};
- You're done
 
Back
Top