Jump to content
Sign in to follow this  
Reaper5150

[RELEASE] The Juggernaut

Recommended Posts

Simple but fun little script I put together awhile ago.

What it does? It is bound to a object in this case "ItemObsidian" as a right click, but can be changed to whatever you want. It then will sends out a message to the players on the server and marks the player with red smoke and a marker on the map.

The player will then get 2 mins of god mod acting like the amour. Once the amour takes damage (All it is is a countdown timer really) The god mode is then disabled so they can be killed.

I'm still working on this and will update it when it is done. If any of you better scriptwriters then myself ( I'm still a noob lol) have any ideas on how to improve this? contact me so I can give you credit in the update :)

Known bugs:

  • marker sometimes stays on map

Credits to : @Schalldampfer  For helping me understand map markers

Install: Place this in your scripts folder name it something like Jugg.sqf

//========================================================
//========= Juggernaut script-Written by Reaper5150 ===========
//=======================================================

sleep 2;
[nil,nil,rTitleText,"THERE IS A JUGGERNAUT,FIND HIM AND KILL HIM IF YOU CAN!!!","PLAIN",3] call RE;
sleep 1;
[nil, player, rSAY, "YOURSOUND.OGG", 100] call RE; //Add your custom sound here when Juggernaut spawns 

[] spawn {
player removeMagazine 'ItemObsidian';//Add whatever object you want and bound to your right click function

sleep 5;
[nil,nil,rTitleText,"THE JUGGERNAUT HAS BODY ARMOR,WE CAN'T KILL HIM...HELP!!!","PLAIN",3] call RE;

////////Set marker/////////////////////////////////////////////////////////////////////
[] execVM "scripts\marker.sqf";

//Start Smoke Marker//////////////////////////////////////////////////////////////////////////
sleep 5;
PJ_grenade = "SmokeShellRed" createVehicle position player;
PJ_grenade attachto [vehicle player,[0.1,0,0]];
sleep 2;
[nil,nil,rTitleText,"THE JUGGERNAUT (PLAYER) HAS BEEN MARKED WITH SMOKE AND ON THE MAP!!!","PLAIN",3] call RE;

 

//Temp Godmode for 2 mins////////////////////////////////////////////////////
(vehicle player) removeAllEventHandlers "handleDamage";
(vehicle player) addEventHandler ["handleDamage", { false }];    
(vehicle player) allowDamage false;

 

//Acts like a countdown timer//////////////////////////////////////////////////////////////////
sleep 90;
[nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR HAS TAKEN 30% DAMAGE","PLAIN",3] call RE;
sleep 100;
[nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR HAS TAKEN 50% DAMAGE","PLAIN",3] call RE;
sleep 110;
[nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR HAS TAKEN 90% DAMAGE","PLAIN",3] call RE;
uiSleep 120;
[nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR IS WEAK...TAKE HIM OUT NOW!!!","PLAIN",3] call RE;
sleep 2;

 

//Start ending Juggernaut///////////////////////////////////
(vehicle player) addEventHandler ["handleDamage", { true }];    
(vehicle player) removeAllEventHandlers "handleDamage";
(vehicle player) allowDamage true;
uiSleep 240;
deleteVehicle PJ_grenade;
END;

Call it from your right click

["ItemObsidian","JUGGERNAUT","execVM 'scripts\Jugg.sqf';","true"], 

marker.sqf:

_unit = player;
_nameP = name _unit;

_markerobjp = createMarker [_namep,[0,0]];
_markerobjp setMarkerShape "ICON";
_markerobjp setMarkerType "mil_dot";
_markerobjp setMarkerColor "ColorRed";
_markerobjp setMarkerText _nameP;
_markerobjp setMarkerSize [1,1];


while {alive _unit} do {
_markerobjp setmarkerdir (getdir _unit);
_markerobjp setMarkerPos (getPos _unit);
_markerobjp setMarkerText _nameP;
sleep 5;
};
////////////////////////////////////////////
uiSleep 240;
deleteMarker _markerobjp;

 

Share this post


Link to post
Share on other sites

I would like to have this only for high level players only (But cant figure out the humanity part for like 25000 heros and bandits) or even remove the god mode all together and just raise the players blood making it a little harder to kill them. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Similar Content

    • By [email protected]
      Im setting up a new epoch 1.0.6 server with very little addons/mods installed, and when i was testing i realized safes/plotpoles/walls etc werent saving to the server database. Anyone got any ideas what might be wrong?
    • By EditedSnowHD
      Hallo all,
      First I want to say i'm not the owner of this server. I just really like the server! Why?
      Well it reminds me of the good old days, and it has an 'OG Epoch feeling'. This is because the map isn't edited and the loot is really balanced. 
      You can't just join, get 25000 coins and start shooting with a tank. It's not like those servers. Ow and another thing, if you open up a map, you won't see like 300 activities all going on at once, not turbid at all. 
      The server also uses the original silver/gold system and everything you find/build/shoot feels really rewarding. 
      The addons added to the server really add something special to the experience on the server, and not distract you from the original feeling.
      I have just played for a few days on the server, and there a few standard players (and the owner is really kind!). But we're still looking to share this amazing experience with other people who might be searching for the 'OG Epoch feeling'.
      Already sold? Here is the Server IP: 78.143.13.42 port: 2302 , Server name: [EU][PvP] GGWEZ DayZ Epoch Chernarus - FreshDB | HC | Gemcrafting
      Link to loading screen and rules: https://imgur.com/a/kIsfXaX

      Features:
      Deploy Bike (old bike).
      Gem Crafting (static Weapons, decorations and more).
      AI Base.
      Custom Vehicles.
      Missions.
      Indestructible bases.
      Take Clothes.
      Spawn Selection.
      Custom Economy and Loot (Really well balanced IMO).
      Lift object with heli.
      Custom Trader City (Really cozy).
      Refuel at gasstation.
      Dogs.
      Street, -Buildinglights (for at night).
      and much more!
      Mods:
      @Epoch
      There also is a Discord channel where you can meet up and share info (like about the AI base or player builds).
      Discord: discord.gg/M6w2fun
      Staff: Drashyy & Mfkrp9 & EditedSnow
      If you have any more questions, feel free to contact me! Hope to see you in Chernarus.
      Edit 10-05-2020: I'm now part of the staff! Im a moderator on their discord.

       
       
    • By THAC0_Gewch
      https://github.com/OlofTheBald/DayZ-Humanity-Loadout-Granter/tree/Epoch_1.0.5.1
       
      Updated for 1.0.6.x
    • By MysteryGamersElite
      [EU/UK] SDF Epoch|Wiped April 1st|FPS++|WAI & DZMS|SSD|Coins|Hourly Paycheck|Custom Loot| AND MORE....
      BRAND NEW DATABASE + SERVER 1st APRIL 2020!
      Server IP: 164.132.67.27:2302
      Discord: https://discord.gg/BWJCjTe
      We offer 24 hour support via discord for any questions or issues with your game!
      Top Server Feature List:
      - Modded DZMS and WAI Mission System
      - Custom High Loot Tables and Improved Dynamic Vehicle Spawns
      - Paycheck Every Hour
      - Coin Based Currency with Storage Banking only
      - Deploy Bike & Mozzie
      - Locate Vehicle
      - Snap Build Pro
      - Group Management
      - Repair, Refuel and Rearm at Service Stations
      - Vehicle Key Changer
      - infiSTAR AntiHack
      - Virtual Garage
      - Change View Distance with Binoculars
      - 3 Hour Restarts starting from Midnight GMT
      - Garage Door Opener
      - Take Clothes
      - Indestructible Bases except doors
    • By Vitor99
      Hi everyone, i would like to know if there is any torrent links for Epoch and Overpoch, if you know some send me the link here
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...