武装突袭3

武装突袭3

评价数不足
Surrender & Handcuff Script
   
奖励
收藏
已收藏
取消收藏
Data Type: Composition
文件大小
发表于
更新日期
24.375 KB
10 月 11 日 上午 9:49
10 月 25 日 下午 4:15
3 项改动说明 ( 查看 )

订阅以下载
Surrender & Handcuff Script

描述

-> This is a vanilla custom composition, not a mod.
-> Meant to be used on pub Zeus if the server has scripts enabled. Works in Eden Editor too.



Surrender & Handcuff Script

A simple script that allows all players on a server to make AI units surrender and handcuff them.
(Doesnt work for AI inside cars yet)

Keybind: T (while looking at an enemy AI)


How to use:
Look at an AI and press the keybind. The AI will surrender and can be cuffed by looking at it and holding the "Handcuff" option.
If the following conditions are met, the AI has a 70% chance of surrender.
If it's unarmed or civlian, it has a 100% chance of surrender.


Conditions for the AI to surrender:
- Its an AI
- The AI is on foot
- The player is on foot
- The AI is less than 30m away from the player
- The player is aiming at the AI
- The AI is hostile towards the player
- The AI has not yet fired its gun 5 times and is not in combat mode
=> If the AI is in combat mode but has not fired 5 times yet, it can surrender
=> If the AI has fired its gun 5 times but isn't in combat mode, it can surrender