GF Headshot + Killfeed Script
by
GEORGE FLOROS [GR]
Description:
Adding a notification , for Headshot + Killfeed , to spice it a little bit .
You are free to do anything but i would like to give me Credits for this!
Simple and easy to use and adapt .
Have Fun !
Installation / Usage:
For usage instructions and information of how to use the GF Headshot + Killfeed Script , please refer to the included documentation and/or example mission.
Place in your mission the files . There is everything included , in the init.sqf , to copy paste in your mission .
https://community.bistudio.com/wiki/SQF_syntax
Don't try to open this with the simple notepad.
For everything that is with comment // in front or between /*
means that it is disabled , so there is no need to delete the extra lines.
You can open this ex:
with notepad++
https://notepad-plus-plus.org/
and also use the extra pluggins
(this way will be better , it will give also some certain colours to be able to detect ex. problems )
http://www.armaholic.com/page.php?id=8680
or use any other program for editing .
For the Compilation List of my GF Scripts , you can search in:
https://forums.bohemia.net/forums/topic/215850-compilation-list-of-my-gf-scripts/
Notes:
It is 2 scripts , that you can use also seperate.
It is possible , to select between 3 different type of notification ,
for both scripts.
Working on Multiplayer + Spawned Units
Display kills on global
Credits & Thanks:
For the Killfeed Script ,source used from :
https://forums.bistudio.com/forums/topic/183541-creating-a-basic-kill-feed/
by kaysio Posted August 5, 2015
Thanks to All script contributors
Thanks to everyone who tries to do the best for this game!
Thanks to BIS for such a great platform .
Thanks to BIS Community and BIS Community Forums .
Thanks to Armaholic Community and Forums .
Changelog:
Version 3.2
The Known issues :
[There will be a headshot notification also for the ai , BUT only for the server
Server Kills will not show on global on the left corner up ]
are know fixed.
Minor fixes .
Version 3.1
Changed the name of all the scripts , starting now with GF .
Version 3.0
Compatible with Ravage Mod
The Kills will also show in Global in the chat and Left corner up with the weapon image
The sounds of Headshot will display as 3D
Added onPlayerKilled to have a notification
Minor fixes
Version 2.0
Refixed the codes
Killfeed now working with every weaponry
The Kills shows on global ( systemChat )
Headshot will not display more than once (dead or alive)
Added 20 Headshot sounds
Option for randomize the Headshot sound
Version 1.0
Forum topic:
- BI forums
- Armaholic forums
Armaholic
GF Headshot + Killfeed Script
Hi George just posting the issue and your fix that we discussed via PM so others can see what didn't work originally and also see that you took the time out to fix it.
So i had this issue below when playing my edit of Warlord on my personal server and I sent it to George.
He replied quickly with this fix which worked a charm, also adding []execVM "GF_Killfeed\GF_Killfeed.sqf"; to initPlayerLocal.sqf instead of init.sqf. So I just wish to thank George for taking the time on a Sunday to fix this issue. Top man!
//________________ Author : GEORGE FLOROS [GR] ___________ 30.07.19 ___________
/*
________________ GF Killfeed Script ________________
https://forums.bohemia.net/forums/topic/206593-headshot-killfeed-script/
Please keep the Credits or add them to your Diary
https://community.bistudio.com/wiki/SQF_syntax
Don't try to open this with the simple notepad.
For everything that is with comment // in front or between /*
means that it is disabled , so there is no need to delete the extra lines.
You can open this ex:
with notepad++
https://notepad-plus-plus.org/
ArmA 3 | Notepad ++ SQF tutorial
https://www.youtube.com/watch?v=aI5P7gp3x90
and also use the extra pluggins
(this way will be better , it will give also some certain colors to be able to detect ex. problems )
http://www.armaholic.com/page.php?id=8680
or use any other program for editing .
For the Compilation List of my GF Scripts , you can search in:
https://forums.bohemia.net/forums/topic/215850-compilation-list-of-my-gf-scripts/
BI Forum Ravage Club Owner :
https://forums.bohemia.net/clubs/73-bi-forum-ravage-club/
*/
diag_log "//________________ GF Killfeed Script _____________";
if(hasInterface)then{
addMissionEventHandler ["EntityKilled",{
params ["_killed", "_killer", "_instigator"];
if(isNull _instigator)then{_instigator = _killer}; // player driven vehicle road kill
if(isPlayer _killer)then{
if(
_killed isKindOf "CAManBase"
/*
//________________ You can filter the side here ________________
&& {((side group _killed) == west or
(side group _killed) == east or
(side group _killed) == independent or
(side group _killed) == civilian)}
*/
)then{
_killed_Name = "";
_kill_HUD = "";
_killed_Color = "#99D5FF";
if(!(isplayer _killed))then{
_killed_Name = getText (configFile >> "CfgVehicles" >> format["%1",typeOf _killed] >> "Displayname");
}else{_killed_Name = name _killed};
private _distance = _killer distance2D _killed;
private _weapon = getText(configFile >> "CfgWeapons" >> currentWeapon (vehicle _killer) >> "displayname");
_killed_Color = (side group _killed call BIS_fnc_sideColor) call BIS_fnc_colorRGBtoHTML;
_weapon = currentWeapon _killer;
_pictureweapon = gettext (configFile >> "cfgWeapons" >> _weapon >> "picture");
if(_pictureweapon == "")then{
_weapon = typeOf (vehicle _killer);
_pictureweapon = (getText (configFile >> "cfgVehicles" >> _weapon >> "picture"));
};
//________________ 1. Player HUD Notification ________________
// https://community.bistudio.com/wiki/BIS_fnc_dynamicText
_kill_HUD = format["<t size='0.5'>Killed <t size='0.8'> <t color='%1'> %2 <t color='#FFD700'> %3 m</t>",_killed_Color,_killed_Name,floor _distance];
[_kill_HUD,0,0.3,2,0,0,7017] spawn bis_fnc_dynamicText;
//________________ 2. systemChat Notification ________________
// runs on every PC showing kills on global , * You can disable the default arma
[[format["%1 Killed %2 from %3 m with %4", name player,_killed_Name,floor _distance,_weapon]]remoteExec["systemChat"]];
//________________ 3. 2 Different notification types ________________
_kill_info = format["<img size='1' shadow='1' image='%1'/> %2 Killed <t color='%3'> %4 <t color='#FFD700'> from %5 m with <t color='#FF0000'> %6 </t>",_pictureweapon,name _killer,_killed_Color,_killed_Name,floor _distance,_weapon];
//________________ 1. Hint parsetext ________________
// hintsilent parsetext _kill_info;
//________________ 2. Left Corner up display ________________
_Spawn_kill_info=[["<t size='0.6' align='left' with %4 >" + _kill_info + "</t>",safeZoneX,safeZoneY,10,0,0,7016] remoteExec ["BIS_fnc_dynamicText"]];
//________________ playSound notification ________________
playSound "Killfeed_notification";
};
};
}];
};
Also love the headshot script with audio, very amusing! 😉