红警DIY论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5635|回复: 1

双刃大杀器。

[复制链接]
发表于 2012-6-30 01:48:25 | 显示全部楼层 |阅读模式
本帖最后由 king9402 于 2012-6-30 01:54 编辑

小兵能对外攻击,吊着的车辆也能攻击,问题是车辆吊起后放不下,而小兵可以放下。

RA3_1 2012-06-30 01-37-23-39.jpg

代码发出来大家研究一下。

  
  1. <TransportContain
  2. id="ModuleTag_Contain"
  3. ObjectStatusOfContained="UNSELECTABLE CAN_ATTACK"
  4. ObjectStatusWhileContaining="CONTAINER_OCCUPIED CANNOT_LAND_AT_AIRFIELD"
  5. ContainMax="5"
  6. AllowEnemiesInside="false"
  7. AllowAlliesInside="true"
  8. AllowNeutralInside="false"
  9. AllowOwnPlayerInsideOverride="true"
  10. ShowPips="true"
  11. EnterSound="VehicleEnter"
  12. ExitSound="VehicleExit"
  13. KillPassengersOnDeath="true"
  14. ConditionForEntry="INVALID"
  15. ExtendedExitContainerChecks="true">
  16. <PassengerFilter
  17. Rule="ANY"
  18. Include="VEHICLE"
  19. Exclude="AIRCRAFT SHIP SUBMARINE"
  20. StatusBitFlagsExclude="AIRBORNE_TARGET">
  21. <ExcludeThing>AlliedAntiNavyShipTech1</ExcludeThing>
  22. <ExcludeThing>JapanAntiInfantryVehicle</ExcludeThing>
  23. <ExcludeThing>JapanAntiAirVehicleTech1</ExcludeThing>
  24. </PassengerFilter>
  25. <DieMuxData
  26. DeathTypes="ALL" DeathTypesForbidden="ERASED" />
  27. <PassengerData
  28. BonePrefix="NONE">
  29. <Filter
  30. Rule="NONE"
  31. Include="INFANTRY" />
  32. </PassengerData>
  33. <PassengerData
  34. BonePrefix="SUANTIGROUNDAIRCRAFT"
  35. MaxPassengers="1"
  36. SlingUnderBone="true">
  37. <Filter
  38. Rule="NONE"
  39. Include="VEHICLE" />
  40. </PassengerData>
  41. </TransportContain>

  42. <GarrisonContain
  43. id="ModuleTag_Garrison"
  44. ObjectStatusOfContained="ENCLOSED UNSELECTABLE CAN_ATTACK"
  45. ContainMax="5"
  46. EnterSound="GenericBuilding_Garrison"
  47. ExitSound="GenericBuilding_Ungarrison"
  48. AllowEnemiesInside="false"
  49. AllowAlliesInside="false"
  50. AllowNeutralInside="true"
  51. AllowOwnPlayerInsideOverride="true"
  52. ShowPips="true"
  53. PassDisabilityToRiders="true"
  54. KillPassengersOnDeath="false">
  55. <PassengerFilter
  56. Rule="ANY"
  57. Include="INFANTRY">
  58. </PassengerFilter>
  59. <DieMuxData
  60. DeathTypes="ALL" />
  61. <PassengerData
  62. BonePrefix="BONEGARRISON">
  63. <Filter
  64. Rule="ANY"
  65. Include="INFANTRY"/>
  66. </PassengerData>
  67. </GarrisonContain>
复制代码



发表于 2012-6-30 10:33:06 | 显示全部楼层
感谢楼主分享
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|手机版|管理员邮箱|红警DIY官方论坛

GMT+8, 2024-3-29 13:37 , Processed in 0.082315 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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