Jump to content

Recommended Posts

ocMS9P8.png
DOWNLOAD v0.1.1
File Size ~ 1Mb

 

This is a simple script that I made to simulate a surprise surrender, where if you approach an enemy behind less than 1.5 meters, you have a chance to surrender it and render it. Initially this coefficient is 60% but later I will implement others parameters like if the enemy is so injured or if all of your group are dead and others, and these parameters can increase the coefficient to surrender the enemy. If you distance more than 10 meters and the enemy is out of sight he will return to its initial state.

 

Signed,
The AEGIS Team

 

Requirements
Latest version of CBA A3.

Latest version of ACE3.

Installation

  • Download the above linked version of aegis_surrender script and all of its requirements.
  • Extract its contents into your mission root directory
  • Enable both CBA and ACE in your favorite launcher, or make a shortcut with the parameter -mod=@CBA_A3;@ace
  • Done.

 

Pictures:

SU7Be3e.jpg

 

jkz1dFw.jpg

 

Videos:

 

Changelog:

v0.1.1
- fixed int.sqf (removed line line 15: "_this action ["useWeapon", player, player, 2])

v0.1
- first release

 

Reporting issues
If you encounter any issues during usage of the ACE3 project, please report them on our GitHub
issue tracker.

 

Follow us at

http://aegisgroup.com.br/
32-facebook.png 32-youtube.png

  • Like 2

Share this post


Link to post
Share on other sites

Hi, Collumbus!

 

I have extracted its content into my sp mission root directory and started the game. But nothing happened. Enemy units are killing me every time when i standing close behind of their back... What i have to do? I have CBA and ACE3. Maybe i need to do something with init line also? Thanks

Share this post


Link to post
Share on other sites

Hi, Collumbus!

 

I have extracted its content into my sp mission root directory and started the game. But nothing happened. Enemy units are killing me every time when i standing close behind of their back... What i have to do? I have CBA and ACE3. Maybe i need to do something with init line also? Thanks

Hi, realthing!

 

If you already had a init.sqf into your mission folder you will need to copy the content of init.sqf of aegis_surrender and paste into the init.sqf of your mission. If your mission doesn't have a init.sqf you will need to extract its contents into your mission root directory. But remember, you must approach to enemy in stealth mode. To test if the script is working properly you can enable the debug mode on START block of aegis_surrender.fsm file.

  • Like 1

Share this post


Link to post
Share on other sites

Hi, realthing!

 

If you already had a init.sqf into your mission folder you will need to copy the content of init.sqf of aegis_surrender and paste into the init.sqf of your mission. If your mission doesn't have a init.sqf you will need to extract its contents into your mission root directory. But remember, you must approach to enemy in stealth mode. To test if the script is working properly you can enable the debug mode on START block of aegis_surrender.fsm file.

Thank you, Collumbus!

I think i understood.  :)

 

Best regards,

Alex

Share this post


Link to post
Share on other sites

there is the following script error message !

 

 

12:19:54             Surrender: current state same as new
12:19:55 Error in expression <mbientAnim} else {(_this select 1) call BIS_fnc_ambientAnim__terminate};};>
12:19:55   Error position: <BIS_fnc_ambientAnim__terminate};};>
12:19:55   Error Nicht definierte Variable in Ausdruck: bis_fnc_ambientanim__terminate
12:19:55 Error in expression <mbientAnim} else {(_this select 1) call BIS_fnc_ambientAnim__terminate};};>
12:19:55   Error position: <BIS_fnc_ambientAnim__terminate};};>
12:19:55   Error Nicht definierte Variable in Ausdruck: bis_fnc_ambientanim__terminate
12:19:55 Error in expression <mbientAnim} else {(_this select 1) call BIS_fnc_ambientAnim__terminate};};>
12:19:55   Error position: <BIS_fnc_ambientAnim__terminate};};>

 

 

 

my Init.sqf =

 

 

while { true } do {
  _units = allUnits - ( playableUnits + switchableUnits );
  {
    if(((side _x) == east) || ((side _x) == resistance))then {
    if(isNil { _x getVariable "unitHasFSM" } && {!captive _x}) then {
        _x execFSM "aegis_surrender.fsm";
        _x setVariable ["unitHasFSM", true];
        sleep 1;
    };
   };
  } forEach _units;
};
sleep 1;

_this action ["useWeapon", player, player, 2];

 

 

 

my Mods =

@helo_hmds_kimi |
@sab_C130     
@Ares      
@Trawler config      
@BurnesLCAC   
@Burnes_MK10     
@TEC_CSAT      
@3den Enhanced    
@ATLAS_LHD_Plus    
@][XENO][ Taru Pod Mod
@RHSUSAF    
@RHSAFRF     
@CUP_Weapons-1.5.0     
@CUP_Vehicles-1.2.0     
@CUP_Units_1_2_2
@CUP_Terrains      
@CUP_Ace_Compatibility   
@ace_Rhs_optional      
 @ace  Advanced Combat Environment 3.5.1 |
@task_force_radio
ommunity Base Addons v2.3.1 |  @CBA_A3 

                 

 

Share this post


Link to post
Share on other sites

there is the following script error message !

 

 

12:19:54             Surrender: current state same as new

12:19:55 Error in expression <mbientAnim} else {(_this select 1) call BIS_fnc_ambientAnim__terminate};};>

12:19:55   Error position: <BIS_fnc_ambientAnim__terminate};};>

12:19:55   Error Nicht definierte Variable in Ausdruck: bis_fnc_ambientanim__terminate

12:19:55 Error in expression <mbientAnim} else {(_this select 1) call BIS_fnc_ambientAnim__terminate};};>

12:19:55   Error position: <BIS_fnc_ambientAnim__terminate};};>

12:19:55   Error Nicht definierte Variable in Ausdruck: bis_fnc_ambientanim__terminate

12:19:55 Error in expression <mbientAnim} else {(_this select 1) call BIS_fnc_ambientAnim__terminate};};>

12:19:55   Error position: <BIS_fnc_ambientAnim__terminate};};>

 

 

 

my Init.sqf =

 

 

while { true } do {

  _units = allUnits - ( playableUnits + switchableUnits );

  {

    if(((side _x) == east) || ((side _x) == resistance))then {

    if(isNil { _x getVariable "unitHasFSM" } && {!captive _x}) then {

        _x execFSM "aegis_surrender.fsm";

        _x setVariable ["unitHasFSM", true];

        sleep 1;

    };

   };

  } forEach _units;

};

sleep 1;

_this action ["useWeapon", player, player, 2];

 

 

 

my Mods =

@helo_hmds_kimi |

@sab_C130     

@Ares      

@Trawler config      

@BurnesLCAC   

@Burnes_MK10     

@TEC_CSAT      

@3den Enhanced    

@ATLAS_LHD_Plus    

@][XENO][ Taru Pod Mod

@RHSUSAF    

@RHSAFRF     

@CUP_Weapons-1.5.0     

@CUP_Vehicles-1.2.0     

@CUP_Units_1_2_2

@CUP_Terrains      

@CUP_Ace_Compatibility   

@ace_Rhs_optional      

 @ace  Advanced Combat Environment 3.5.1 |

@task_force_radio

ommunity Base Addons v2.3.1 |  @CBA_A3 

Hi bier aig tartar,

 

I tested the script with with your list of mods and it worked perfectly.This log doesn't seem to be relative to script aegis_surrender. Do you use any used some other script? Another thing, please delete the line 15: "_this action ["useWeapon", player, player, 2];" of init.sqf. This is a garbage that I forgot to remove.

Share this post


Link to post
Share on other sites

with ACE version 3.7.0.6  

 

show this error:

 

20161010145243_1.jpg

It seems no longer work

  • Like 1

Share this post


Link to post
Share on other sites

with ACE version 3.7.0.6  

 

show this error:

 

20161010145243_1.jpg

It seems no longer work

I confirm that problem...

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

×