[WRS] WGP Demolition/I.E.D Version

If you liked this item, please rate it up on Steam Workshop page.

Author: Phenosi

Last revision: 26 Apr, 2025 at 14:01 UTC

File size: 19.14 KB

On Steam Workshop

Description:

STATUS: Stable

A re-coloured version of the WGP Stryder that will explode when in range of enemy contact or when SELF-Destruct is activated.

Features:
  • Explodes when near enemies (Default: 15m)
  • Three tiers of Explosive power: Small > Medium > Big
  • Some Added custom VFX for extra dramatic effect.

Don’t delete the Helipad, it registers the function for the Composition to work Called PHEN_WRS_IED. It auto-deletes itself on game-start.

For Mission-makers:

This Event-handler will be on the unit’s INIT:

this addEventHandler ["Killed", { params ["_unit", "_killer", "_instigator", "_useEffects"]; [(ASLToATL (_unit modelToWorldVisualWorld [0,0,0])), ‘big’] spawn PHEN_WRS_IED; }]; if (isServer) then { this spawn { waitUntil { uiSleep 1; _nearestUnit = objNull; { if (([side _this, side _x] call BIS_fnc_sideIsEnemy) and {_this distance2D _x <= 15}) exitWith { _nearestUnit = _x; true; }; } forEach allUnits; !isNull _nearestUnit; }; _this setVariable [‘WGP_SelfDestruct’, true, true]; { deleteVehicle _x; } forEach attachedObjects _this; _this setDamage 1; }; }; this setObjectTextureGlobal [0, "#(rgb,8,8,3)color(1,0.25,0,0.57)"]; //Change Colours with this! this setObjectTextureGlobal [2, "#(rgb,8,8,3)color(1,0.25,0,0.57)"];

To attach the ‘Bomb-backpack’, you can place the "Land_Device_slingloadable_F" object and run this onto it.

_scale = 0.3; _y = 336; _p = 90; _r = 0; this attachTo [WGP_IED_1, [0.2,-0.4,0.15], ‘Mech_Up_Body_Rot’, true]; this setVectorDirAndUp [ [sin _y * cos _p, cos _y * cos _p, sin _p], [[sin _r, -sin _p, cos _r * cos _p], -_y] call BIS_fnc_rotateVector2D ]; this setObjectScale _scale;

Note:

In this line:

[(ASLToATL (_unit modelToWorldVisualWorld [0,0,0])), ‘big’] spawn PHEN_WRS_IED;

Change ‘big’ to: ‘small’ or ‘medium’ to change the Explosion/effects Size.

Reminder:

3DEN = this
Zeus = _this

COMPATIBILITY

✔ Designed for both singleplayer and multiplayer.

Special thanks to my Supporters! :))
[www.patreon.com]
[ko-fi.com]

Feel free to follow me on my Content Platforms
My Youtube Channel

Our Modding Discord:
https://discord.gg/UnQAQMKGdS

Join the Unqualified Minds community where we play these mods![discord.gg]

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀   Please READ the Workshop page and check out your own setup in-game ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀  before asking Questions or Reporting Bugs <–Discord[discord.gg]

Download
Required items:

Click the title to search on this site.


Weapon Research and Security: Autonomous systemsSteam Workshop