找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 17|回复: 3

[我解决不了自己的问题] 无人机奴隶矿场售卖以后无人机变成中立

[复制链接]
发表于 10 小时前 | 显示全部楼层 |阅读模式
我用奴隶机制给我添加的新阵营添加了一个无人机矿场,并且利用phobos平台的Slaved.OwnerWhenMasterKilled=suicide; enumeration (suicide | master | killer | neutral)使它们会与矿场一同死亡,可是矿场在被售卖以后,无人机并没有死亡,而是变成了中立单位。
请问这种情况有没有办法解决,让无人机在矿场被售卖后死亡
 楼主| 发表于 10 小时前 | 显示全部楼层
[CAREFNE];无人机矿场
UIName=Name:CAREFN
Name=China Ore Refinery
Image=PAREFN
BuildCat=Resource
DockUnload=yes
Refinery=yes
NumberOfDocks=1
;//gs revertNumberOfWaitingPoints=8
Bib=yes
NumberImpassableRows=3 ; This is the fix to the Repair depots are flat and RadioContact/Enter means I can drive on you assumption.  It counts from game west
Prerequisite=POWER,CACNST
Strength=1000
Adjacent=2
Armor=wood
TechLevel=1
;FreeUnit=CHAR
Sight=6
Owner=Americans,Russians,YuriCountry,China
AIBasePlanningSide=3
Cost=2000
Soylent=300
Points=80
Power=-50
Storage=200
Capturable=true
Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
HalfDamageSmokeLocation1=0,0,0
MaxDebris=8
PipScale=Tiberium
ThreatPosed=0        ; This value MUST be 0 for all building addons
;DamageParticleSystems=SparkSys,SmallGreySSys,BigGreySmokeSys
DamageSmokeOffset=410, 100, 165
AIBuildThis=yes
TogglePower=no
RefinerySmokeOffsetOne=-80, -232, 372
RefinerySmokeOffsetTwo=-80, 232, 372
RefinerySmokeFrames=50
RefinerySmokeParticleSystem=SmallGreySSys;
Spyable=yes
;WantsExtraSpace=yes ; gs This will look for a space AIBaseSpacing+1 when the computer places, but will settle for AIBasSpacing
ImmuneToPsionics=no ; defaults to yes for buildings, no for others
ResourceDestination=yes;gs for the AI to handle the slave miner, it has to understand what makes money
Drainable=yes
RefinerySmokeOffsetOne=0,-32,320
RefinerySmokeOffsetTwo=0,512,320
DamageSmokeOffset=640, 64, 128
Enslaves=SCV
SlavesNumber=5
SlaveRegenRate=550
SlaveReloadRate=100
VoiceSelect=CameraSwitch
DestroyAnim=YAPLATDM
NaturalParticleSystem=YBuildPSmokeSys
NaturalParticleLocation=190,190,30
Harvester.ScanCorrection=3
Harvester.KickDelay=-1
Harvester.LongScan=48
Harvester.ShortScan=398

[SCV];中国采矿无人机
UIName=Name:SCV
Name=
JumpJet=yes
Category=Soldier
Slaved=yes
Strength=100
Armor=none
NotHuman=yes
Unnatural=no
TechLevel=-1
Crushable=no
Sight=2
Speed=6
JumpjetSpeed=20
JumpjetClimb=30
JumpjetCrash=30
JumpJetAccel=128
JumpjetTurnRate=2
JumpjetHeight=415
JumpjetWobbles=.4
JumpjetDeviation=35
JumpjetNoWobbles=no
Owner=YuriCountry
AllowedToStartInMultiplayer=no
Cost=10
Soylent=0
Points=5
IsSelectableCombatant=no
VoiceSelect=ChaosDroneSelect
VoiceSelectEnslaved=ChaosDroneMove
VoiceAttack=ChaosDroneAttackCommand
VoiceFeedback=ChaosDroneAttackCommand
VoiceMove=ChaosDroneMove
DieSound=
VoiceSpecialAttack=ChaosDroneMove
MoveSound=OspreyTakeOff;OreMineExtract
AmbientSound=
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5}
PhysicalSize=1
MovementZone=Fly
ThreatPosed=1        ; This value MUST be 0 for all building addons
ImmuneToPsionics=yes
ImmuneToPoison=yes
Size=1
IFVMode=0
Storage=4
HarvestRate=180
PipScale=Tiberium
DontScore=yes
ToProtect=no
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DeathAnims=S_TUMU60
Explodes=yes
Trainable=no
ImmuneToPsionicWeapons=no
MaxDebris=2
MinDebris=1
DeadBodies=NULL
Slaved.OwnerWhenMasterKilled=suicide; enumeration (suicide | master | killer | neutral)
;suicide:以身殉主,奴隶矿场死亡则奴隶同步死亡。
;master :助纣为虐,拿起武器但所属不变。
;neutral:独善其身,解放后转为平民所属方开摆。
;killer :揭竿而起,解放后转为奴隶矿场击杀者的所属方。(原版行为)

回复

使用道具 举报

发表于 9 小时前 来自手机 | 显示全部楼层
给奴隶一个无限射程的自杀武器,然后可对友军攻击,并自动攻击友军
回复

使用道具 举报

 楼主| 发表于 4 小时前 | 显示全部楼层
双杀步枪 发表于 2026-4-23 13:21
给奴隶一个无限射程的自杀武器,然后可对友军攻击,并自动攻击友军

ok,成功解决,感谢大佬
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|手机版|管理员邮箱|红警DIY论坛 |网站地图

GMT+8, 2026-4-23 22:45 , Processed in 0.066718 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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