Ambu5h

Hellfire for admins

2 posts in this topic

Few years back i was looking at some youtube videos of a guy called PeterOnXBoXIn720i or something like that.
This admin came up in a lovely demonspawn outfit surrounded by fire.

I figured it would look awesome to just show up next to a player asking an admin to come and help him.
And then just show up and be like "What do you want mere mortal!?"

What it does:
This script check for username's and his current outfit and if both matches it spawns fire (just below) the admin.
By using infistars shift+4 and shift+5 (fly up and TP +10m forward) you can also become a commet at night.

Create a file hellfire.sqf somewhere in your mission file and copy the following code into it.

Spoiler

/** Simple Admin Deamonspawn by Ambu5h **/
 
if (!isServer) exitWith{};
 
private [
"_timer",
"_enableFire",
"_debug",
"_vehicle",
"_smoke"
];
 
/************************************************************************************************/
/** Config **************************************************************************************/
/************************************************************************************************/
_timer = 60;

_enableFire = true;

_flame = false;

if (!_enableFire) exitWith
{diag_log "Hellfire is currently disabled!";};

diag_log "Hellfire!: enabled!";

_debug = true;
/************************************************************************************************/

sleep _timer;

while {_enableFire} do
{
    {
        _unit = _x;
        
        if (name _unit == "ADMIN1" || name _unit == "ADMIN2" || name _unit == "ADMIN3") then    // Add admin username's here
        {
            if (_debug) then
            {diag_log format ["Hellfire!: Hellfire found admin! %1 - %2 - %3", name _unit, position _unit, uniform _unit]; };
            
            { _flame = true;
            } forEach attachedObjects _unit;
                
            if (uniform _unit == "U_B_Soldier_VR") then  // Change outfit here
            {
                if (!_flame) then
                {
                    _smoke = createVehicle ["test_EmptyObjectForFireBig",position _unit,[], 0, "can_collide"];
                    _smoke attachTo [_unit, [0, 0, -2] ];
                    
                    if (_debug) then
                    { diag_log format ["Hellfire!: Hellfire spawned on %1!", name _unit]; };
                }
                else
                {
                    if (_debug) then
                    { diag_log format ["Hellfire!: %1 is already blazing!", name _unit]; };
                };
                    
                {
                    {
                        deleteVehicle _x;
                    } forEach (_x getVariable ["effects", []]);  // Attempt to remove the smoke effects, not working atm.
                } forEach attachedObjects _unit;
            }
            else
            {                
                if (_flame) then
                {
                    {
                        detach _x;
                        _x move [0, 0, -3000];
                    } forEach attachedObjects _unit;
                    
                    sleep 0.1;
                    
                    _fireObjects = nearestObjects [_unit, ["test_EmptyObjectForFireBig"], 20];
                    {
                        deleteVehicle _x;
                    } forEach _fireObjects;
                    
                    if (_debug) then
                    { diag_log format ["Hellfire!: Tried to extinguish flame of %1!", name _unit]; };
                };
            };
            _flame = false;
        };
    } foreach allunits;
    
    sleep _timer;
};

Change both ADMIN1 and ADMIN2 to the ingame usernames of your admins.
Change U_B_Soldier_VR to which ever uniform you like to associate it with. (This combination looks awesome tho).

Goto init.sqf and add the following line:

[] execVM "<YOUR CUSTOM PATH>\hellfire.sqf";


Known problems:
1. KEEP GODMODE ON, if you turn it off youll burn to death.
2. For this same reason, stay a bit away from players as they will burn with you.
Also, dont walk into their base with this fire turned on. If you stand on the second floor the fire will rage on the first floor. (it spawns it -2 meters below you to make it look better).
3. When you change back to another outfit the flame only gets detached. It doesnt disappear. Tried fixing this but does not work. So when your done burning in hell, go somewhere remote and switch clothes to avoid smokeplumes  everywhere.

Edit: Script cleaned up and debugged.


https://www.youtube.com/watch?v=-gfN8Q1oJKI

Edited by Ambu5h
  • Like 3

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.