Author: goon
Author Website:

Requirements: Community Base Addons

Version: 1.0c

Short description: This script is an easy to use eventhandler that emulates Napalm effects and damage in a multiplayer environment with working pilot score.

Date: 2013-05-26 05:55


Comments: (4)
Rating:



 

Napalm Script

by
Goon


Description:
I released this Napalm script after multiple player requests. This script is an easy to use eventhandler that emulates Napalm effects and damage in a multiplayer environment with working pilot score.


Installation / Usage:
1. To use simply add this line to initialization field of unit in editor:
this addEventHandler ["fired", {_this execVM "napalm.sqf"}];
2. The napalm script is by default configured for use with the class: "4Rnd_FAB_250".
3. If the aircraft does not have this weapon you can simply add it by adding these lines to the aircraft's initialization field in editor:
this addweapon "airbomblauncher";
this addmagazine "4Rnd_FAB_250";
4. In the example mission you downloaded the harrier 2 uses these lines in its init field:
this addEventHandler ["fired", {_this execVM "napalm.sqf"}]; // adds event handlers
this removeweapon "Mk82BombLauncher_6"; // removes default bombs
this addweapon "airbomblauncher"; // adds default napalm bomb weapon
this addmagazine "4Rnd_FAB_250"; // adds default napalm bomb ammo
5. Also at the top of the "napalm.sqf" script itself you can see the entry for the substitute classname for the napalm:
bombtype = "Bo_FAB_250";// change this for different napalm bomb
6. The script fires automatically when a bomb of the type specified in the "napalm.sqf" is dropped from the aircraft with the eventhandler attached. It assigns the pilot automatically based on the driver of that aircraft.


Media:



Notes:
I'm sorry I did not make the script more user friendly as far as adjusting the trajectory and damage values of the explosion - however you could easily take it apart and change it with a bit of scripting knowledge. Also there were many that suggested that script should burn things like trees and buildings - I found this to be very performance heavy thereby limiting functionality in a multiplayer environment. This is a basic script that is designed to be easy to use, lightweight, without dependencies, and multiplayer friendly.


The fix for v1.0c consisted of changing this line of code:

BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";

To this line of code:

if (isserver) then { BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";};


Changelog:
v1.0c
  • Fixed performance issues when large amounts of players drop Napalm.



  • - Community Base Addons




    Enable javascript to be able to download from Armaholic please!



    Tags: Napalm