|
|
发表于 2021-11-4 13:52:42
|
显示全部楼层
本帖最后由 Wendenou 于 2021-11-4 14:04 编辑
这几天刚试过一个可以给己方和友军任何东西回血的无源通用弹头超武,丢给自己人和盟友的建筑,单位都能回血,丢给敌人不会生效,测试过可用。
试试看?顺便我只是个破做地图的,代码有什么瑕疵的话还请包涵。
;超武本体
[REPXSpecial]
UIName=NAME:REPX
Name=REP
IsPowered=false
RechargeTime=0.01
Type=GenericWarhead
Action=Custom
SidebarPCX=REPX.pcx
ShowTimer=no
DisableableFromShell=no
Range=10
LineMultiplier=1
Cursor=REPX
NoCursor=NoCanDo
SW.FireIntoShroud=no
SW.Warhead=REPXWH;超武弹头,回血的关键
SW.Damage=0; 不造成实际伤害,回血挂在弹头的AE动画实现
SW.AlwaysGranted=yes
SW.AffectsHouse=team
SW.Sound=REPX
SW.AnimationHeight=30
SW.Animation=REPXRING; 超武放下去后展示影响范围的动画,自己找一个动画吧
SW.AITargeting=none
FlashSidebarTabFrames=0
;超武弹头,负比例伤害,配合挂载的AE动画写正伤害实现回血
[REPXWH]
Verses=-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%
InfDeath=0
CellSpread=40
PercentAtMax=1
AffectsEnemies=no
AffectsAllies=yes
AttachEffect.Duration=1000
AttachEffect.Animation=REPX
;这段要在ARTMD.INI里写
[REPX]
Normalized=no
Translucent=yes
Rate=400
Damage=20
DamageRadius=10000
Warhead=REPXWH
YSortAdjust=366
ZAdjust=-900
UseNormalLight=yes
Layer=top
当然超武、弹头、动画都需要注册的,然后动画需要你自己随便找一个,但是不建议用太大的那种,实际视觉体验会很卧槽,然后注册,基操。
试试看?
|
|