Jump to content

Recommended Posts

EPOCH Anti-PvP

by IT07

 

WHAT IT DOES

It prevents players from shooting at other players by removing the projectile if fired (directly!) at the player.

The script is one simple file that runs on the client through the missionfile so a server manager is supposed to install this on his/her server.

 

DOWNLOAD & INSTALLATION

https://github.com/IT07/A3_ScarCode_ScriptBundle

 

Please enjoy :D

Share this post


Link to post
Share on other sites

you need to change some settings in your run.sqf then:

/*  Use EH_Fired check   */ _EHF = false;	/* true or false */	/* Some mods revert the EventHandlers by default and can cause problems with this check. Tested on Epoch and AltisLife. */
There may be some others you need to change also.

Share this post


Link to post
Share on other sites

you need to change some settings in your run.sqf then:

/*  Use EH_Fired check   */ _EHF = false;	/* true or false */	/* Some mods revert the EventHandlers by default and can cause problems with this check. Tested on Epoch and AltisLife. */
There may be some others you need to change also.

 

already false :(

Share this post


Link to post
Share on other sites

this would be cool if you could have an array of locations by cords and a message to say they are in a PVP zone or leaving it to go into a PVE :)

 

I have had numerous other people suggesting this so I will probably give it a go. And probably a better version of the existing script will be coming as well because I made this in like 10 minutes and could be done better if I give it some more time :)

Share this post


Link to post
Share on other sites

Well if you want it for players only...

 

player addEventHandler ["Fired", 
{
	if(isPlayer cursorTarget)then
	{
		deleteVehicle (_this select 6);
	};
}];

if you want it for vehicles as well spawn 

this on a client 

 

while {true} do {
	waitUntil {uiSleep 0.5; player != vehicle player};
	private ["_veh","_eh"];
	_veh = vehicle player;
	_eh = _veh addEventHandler ["Fired", 
	{
		if(isPlayer cursorTarget)then
		{
			deleteVehicle (_this select 6);
		};
	}];
	waitUntil {uiSleep 0.5; _veh != player};
	_veh removeEventHandler ["Fired",_eh];
};

Untested, written in 2 minutes.

 

Bundled version : 
http://puu.sh/hXDVa/683f3df295.txt

 

have fun

Share this post


Link to post
Share on other sites

And what is this supposed to mean? Are you hijacking my post or something? I think you don't realize what you just did: you interrupted the development of this script by posting that code. Do you want to show off or something? Seriously what is your problem.

Share this post


Link to post
Share on other sites

Hello, o dont know why not found the script o not detec... Can you help me please dear?

 

thump_9374987unnamed-1.jpg

 

I have the folder in MPMission and the line script in init.sqf

 

Can you show me the line you used in your init.sqf?

Share this post


Link to post
Share on other sites

And what is this supposed to mean? Are you hijacking my post or something? I think you don't realize what you just did: you interrupted the development of this script by posting that code. Do you want to show off or something? Seriously what is your problem.

"Interrupting the development of this script" . dude its an a Event handler, not to mention you have a switch statement that's switches true or false. There is a new scripting command called IF.

 

 It took me exactly 2 mins to make it what development there is?

if you want to get fancy your Fired EH for vehs wont work with rockets. Hint: check the blast radius of a rocket. so thats only "development" there is about it. Exactly 10 minutes to do.

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...

  • Similar Content

    • By IT07
      EPOCH VGS by IT07
      Here it is :D
      Detailed info is in the README.md on GitHub
      https://github.com/IT07/Game_code/tree/master/ArmA_3/A3_EPOCH_virtualGarage

      Updated code: https://github.com/ravmustang/Game_code/tree/VGS-Overhaul/ArmA_3/A3_EPOCH_virtualGarage
    • By IT07
      server introCredits
      by IT07
       
      ABOUT
      This concept was originally created by me for ArmA 2 DayZ but now it is here for ArmA 3 too :) Enjoy!
       
      VIDEO

       
      WHAT IS THIS?
      This script is a very simple one-file installation which can be installed into the mission file.
      It will then show fully configurable credits to any player that gets ingame. If the player does not want to watch the whole thing, they can skip it using the scroll menu.
      The scroll action for skipping the intro will automatically remove itself after the credits are done showing.
       
      FEATURE HIGHLIGHTS
      - Fully configurable titles and texts
      - Configurable text color
      - Full control over speed
      - Ability to show images
       
      DOWNLOAD
      https://github.com/IT07/A3_ScarCode_ScriptBundle
    • By IT07
      S.A.R. (Simple Ammo Repacker)
      by IT07
       
      INFO
      This script/menu is an extremely simple concept for merging/packing/refilling your USED magazines for any kind of gun/weapon.
      The video below will show you it all in a bit more detail :)
       
      VIDEO (older version)

       
      SCREENSHOT (latest)
      http://imgur.com/34gOsEP
       
      DOWNLOAD & INSTALL
      https://github.com/IT07/A3_ScarCode_ScriptBundle
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...