本帖最后由 Sevef 于 2021-1-16 21:28 编辑
最近不知道在mod里加什么,就想起之前看到膜术师协会的基地重建,就做了出来,mod里也用了挺长时间了,看diy里没人发怎么做,于是就发出来我的做法,膜术师协会的说是在重建的时候没有其他建筑就会失败,我的版本是在重建时可以没有其他建筑。(gif文件太大了,放不上来,就没有效果图了,之后ares3.0就有了KeepAlive,挺谔谔的)
[BuildingTypes]
+=CNSTREBUILD
[ArmorTypes]
+=RUBBLEArmor
[SuperWeaponTypes]
+=REBUILDSP
[Animations]
+=KRBAnim
;rules
[NACNST]
...
Rubble.Destroyed=CNSTREBUILD
[CNSTREBUILD]
...
Armor=RUBBLEArmor
SuperWeapon=REBUILDSP
NaturalParticleSystem=RubbleSmokeSys //视觉效果的烟雾,有没有都可以
NaturalParticleLocation=230,230,-30
;烟雾粒子的代码,想用直接复制过去就行了,已经调好了
[RubbleSmokeSys]
HoldsWhat=RubbleSmoke
Spawns=yes
SpawnFrames=8
SpawnRadius=500
Slowdown=.0025
ParticleCap=40
SpawnCutoff=700.0
SpawnTranslucencyCutoff=30.0
BehavesLike=Smoke
Lifetime=700
[RubbleSmoke]
Image=S_BRNL30
MaxEC=3600
Translucency=25
Velocity=8.0
Deacc=.05
WindEffect=1
BehavesLike=Smoke
DeleteOnStateLimit=yes
StartStateAI=1
EndStateAI=10
LightSize=25
OneFrameLight=true
StateAIAdvance=20
[REBUILDSP]
...
RechargeTime=.8 //这个是我调好的时间,如果想自己弄也可以
Type=UnitDelivery
Deliver.Types=NACNST
SW.Deferment=3 //小于3会导致基地不在原来的位置重建
SW.Animation=KRBAnim //用来打爆重建建筑的动画,art自己写
SW.AutoFire=yes
SW.AITargeting=Self
SW.Designators=CNSTREBUILD
|