Jump to content
djotacon

Easy Hostage Script (E.H.S)

Recommended Posts

Easy Hostage Script VER. 3.0

by dj Otacon

Description:

This script transform one unit in a hostage.

Activation:

Add this line to run the script to the INIT of the unit to convert:

_null=[this]execVM "hostage2.sqf";


Usage:

This script add three commands to the unit:

Secure: Put the unit on the ground.

Follow: Add the unit to the player squad.

Free: Free the unit and unjoin from the squad.

You can put any hostage number that you want.

License:

CC Attribution 4.0 International
Under the following terms:
Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

 

Update to version 3.0

Now with JIP and FULL MP/Dedicated support

 

File:
https://mega.nz/#!7owVUJAT!cqqiYtVGr-GGoFmeMGkgTlc2OR4MjeIBbM2pKRIxOLI

Share this post


Link to post
Share on other sites
Guest

Release frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Edited by Guest

Share this post


Link to post
Share on other sites

Update script to version 1.1

Changelog:

Remove error divide by zero.

Code redone to avoid potential errors.

Tested on COOP/SP (Not tested under MP dedicated servers)

Code tweaks.

Update script path

Remove switchmove :)

Edited by djotacon

Share this post


Link to post
Share on other sites

"free hostage" doesn't get removed from the action menu if you release them and the option to recapture is not possible, perhaps you could add that to the script?

Share this post


Link to post
Share on other sites

Yep.

Free hostage remains added to the action menu only if you are near of the hostage, but don't do nothing.

I think the problem is related to the [join gprnull] command but right now I dont find a solution using only one sqf file (that is the other goal for this script).

Pending for the next release.

Share this post


Link to post
Share on other sites
Guest

Thanks for sending us the new version :cool:

Release frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

Cheers for the script, it's good stuff. Is it possible to change the activation distance on the addAction. Telekinesis is breaking the immersion :)

Share this post


Link to post
Share on other sites

Cheers for the script, it's good stuff. Is it possible to change the activation distance on the addAction. Telekinesis is breaking the immersion :)

 

Change the following lines within the sqf:

//42
_sec = _hostage addaction ["<t color=""#0000FF"">" + ("Secure prisioner") + "</t>","hostage.sqf",nil,6,true,true,"","_this distance _target < 3"];
//60
_hostage addaction ["<t color=""#0000FF"">" + ("Follow squad") + "</t>","hostage.sqf",nil,6,true,true,"","_this distance _target < 3"];
//76
_hostage addaction ["<t color=""#0000FF"">" + ("Free hostage") + "</t>","hostage.sqf",nil,6,true,true,"","_this distance _target < 3"];
  • Like 1

Share this post


Link to post
Share on other sites

I do apologize for bringing this thread back from the dead, But i am curious if anyone knows how to apply the hostage command to a group of units, so that securing one secures all in group, and you can add all to your group in one go as well.

  • Like 1

Share this post


Link to post
Share on other sites

New Version 3.0

See main thread for changelog.

Share this post


Link to post
Share on other sites
On 15/08/2015 at 3:44 AM, jshock said:

 

Change the following lines within the sqf:


//42
_sec = _hostage addaction ["<t color=""#0000FF"">" + ("Secure prisioner") + "</t>","hostage.sqf",nil,6,true,true,"","_this distance _target < 3"];
//60
_hostage addaction ["<t color=""#0000FF"">" + ("Follow squad") + "</t>","hostage.sqf",nil,6,true,true,"","_this distance _target < 3"];
//76
_hostage addaction ["<t color=""#0000FF"">" + ("Free hostage") + "</t>","hostage.sqf",nil,6,true,true,"","_this distance _target < 3"];
 

Can I suggest the use of the new distance2d command instead of distance? For CPU usage, it's cheaper.

Share this post


Link to post
Share on other sites
12 minutes ago, Tankbuster said:

Can I suggest the use of the new distance2d command instead of distance? For CPU usage, it's cheaper.

 

Good suggestion, can you make the change and post if there's issues?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×