中国虚拟军事网(VME)- 专注于武装突袭系列虚拟军事游戏

 找回密码
 加入VME

QQ登录

只需一步,快速开始

搜索
查看: 2409|回复: 8

[原创] 适用于AA3的空降脚本,类似para.sqs

  [复制链接]
发表于 2015-4-19 02:18:17 | 显示全部楼层 |阅读模式
由于AA3中不再默认自带para.sqs脚本,于是乎改良了 一下,适合AA3空降的脚本,改良基础是AA2的WCRffsx_fnc_Para.sqf脚本,使用方法:触发时:Para = [空降队长,飞机] execVM "AA3-WCRffsx_fnc_Para.sqf";

  1. /*FileName: WCRffsx_fnc_Para.sqf
  2.   Author: WCR
  3.   Effects: This is the script which can make a squard which is staying in a flying plane eject.
  4.   Usage: Para = [GroupLeaderName,PlaneName] execVM "WCRffsx_fnc_Para.sqf";
  5.   Creating Date: 3 Jan 2011
  6.   Version 1.03
  7.   //[1900] call BIS_fnc_setHeight;
  8.                                                    //waitUntil {getPosATL _WCRffsx_Arrary select 2 < 200};
  9. */
  10. private ["_WCRffsx_ParaLeader","_WCRffsx_Plane","_WCRffsx_ParaGroup","_WCRffsx_Arrary","_WCRffsx_Sum","_WCRffsx_Index"];
  11. _WCRffsx_ParaLeader = _this select 0;
  12. _WCRffsx_Plane = _this select 1;
  13. _WCRffsx_ParaGroup = group _WCRffsx_ParaLeader;
  14. _WCRffsx_Arrary = units _WCRffsx_ParaGroup;
  15. _WCRffsx_Sum = count _WCRffsx_Arrary;
  16. _WCRffsx_Index = 0;
  17. if ((isNull _WCRffsx_Plane) || (isNull _WCRffsx_ParaGroup) || (isNull _WCRffsx_ParaLeader)) then {
  18.     if (true) exitWith {
  19.         hintSilent "If this script cannot run properly in MP, please check whether you've disabled AI.\nIf this script cannot run in SP, please check whether any variable is null.";
  20.         sleep 1;
  21.     };
  22. } else {
  23. if ({_x in _WCRffsx_Plane} forEach _WCRffsx_Arrary) then {
  24.         sleep 0.1;
  25.         _WCRffsx_Plane FlyInHeight 300;
  26.         sleep 0.1;
  27.                if (alive _WCRffsx_Plane) then {
  28.                            while {_WCRffsx_Sum > _WCRffsx_Index} do {
  29.                                                   
  30.                            (_WCRffsx_Arrary select _WCRffsx_Index) action ["eject",_WCRffsx_Plane];
  31.                            unassignvehicle (_WCRffsx_Arrary select _WCRffsx_Index);
  32.                                                     (_WCRffsx_Arrary select _WCRffsx_Index) addBackpack "B_Parachute";
  33.                                                    0 = (_WCRffsx_Arrary select _WCRffsx_Index) spawn {waitUntil {getPosATL _this select 2 < 100}; _this action ["openParachute"];};
  34.                            _WCRffsx_Index = _WCRffsx_Index + 1;
  35.                            sleep 1;
  36.                            };
  37.         } else {
  38.             if (true) exitWith {
  39.                 hintSilent "WCRffsx_fnc_iPara is not available currently, please check whether the carrier has enough capacity to hold the paratroops";
  40.                 sleep 0.1;
  41.             };
  42.         };
  43. } else {
  44.      if (true) exitWith {
  45.          hintSilent "Some of the paratroops are not stay in the cabin.";
  46.          sleep 0.1;
  47.      };
  48. };
  49. };
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入VME

x
发表于 2015-4-19 13:21:08 | 显示全部楼层
赞,支持一下
发表于 2015-4-19 09:29:01 | 显示全部楼层
MCC 就有。。。。。
发表于 2015-4-19 14:07:00 | 显示全部楼层
哥们,有心啦
 楼主| 发表于 2015-4-19 22:26:19 | 显示全部楼层
AYou 发表于 2015-4-19 09:29
MCC 就有。。。。。

烦劳问一下能否单独分解出一个版本啊,我想自制的任务上用它,目前对这个“AA3-WCRffsx_fnc_Para.sqf”还是不太满意
 楼主| 发表于 2015-4-19 22:27:26 | 显示全部楼层

哈哈!共勉共勉哈
发表于 2015-4-21 09:39:02 | 显示全部楼层
htl6142 发表于 2015-4-19 22:26
烦劳问一下能否单独分解出一个版本啊,我想自制的任务上用它,目前对这个“AA3-WCRffsx_fnc_Para.sqf”还 ...

http://www.chinavme.com/forum.php?mod=viewthread&tid=31906
 楼主| 发表于 2015-4-21 15:09:10 | 显示全部楼层
AYou 发表于 2015-4-21 09:39
http://www.chinavme.com/forum.php?mod=viewthread&tid=31906

谢谢你的分享,我的意思是Mcc沙盒脚本内容很庞杂,要是找空降脚本我需要一个个阅读,你要是对沙盒很熟悉的话,直接抽屉出来,扔给我一个“空降脚本”就行,如果你也不是很熟的话,我就自己解包慢慢找吧,反正大家都是小白,总之谢谢哈
发表于 2015-4-25 19:27:22 | 显示全部楼层
AYou 发表于 2015-4-19 09:29
MCC 就有。。。。。

玩脚本的理念不是说前人己经做出了方方面面的功能与插件而后我们这些后人就不用再去研究与重制了,你只有弄懂弄透了各方面的原理与参数后才能进一步创新,融会贯通,举一反三,事半功倍,毕竟人的想像力是无穷的,就好像前人己经发明了乘法口决表但后人还是要从小开始学习它是一样的道理
您需要登录后才可以回帖 登录 | 加入VME

本版积分规则

小黑屋|中国虚拟军事网

GMT+8, 2024-4-20 01:05

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表