找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 606|回复: 1

士兵安置地雷和水雷

[复制链接]
发表于 2025-7-10 12:25:00 | 显示全部楼层 |阅读模式
新人鼓捣一点小玩意看能不能ЗАРАБАТЫВАТЬ点积分0~~0
视频演示

地雷单位可以通过,水雷占碰撞体积。

下面是全套代码,需要用到ARES和Phobos:
主要是动画生成单位的逻辑。
Rulesmd.ini部分:

[MINE]
UIName=Name:MINE
Name=地雷
Primary=MineBomb
DeathWeapon=MineBomb
Strength=50
Category=Transport
Insignificant=yes
Armor=special_3
TechLevel=-1
NavalTargeting=0
LandTargeting=5
Sight=1
Speed=0
CrateGoodie=no
Owner=Americans,British,Africans,Arabs,Alliance,French,Germans,Russians,Confederation,YuriCountry
AllowedToStartInMultiplayer=no
Cost=50
Soylent=0
Points=10
ROT=10
IsSelectableCombatant=yes
Selectable=no
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
VoiceSelect=
VoiceMove=
VoiceAttack=
VoiceFeedback=
DieSound=GenVehicleDie
MoveSound=
ImmuneToPsionics=yes
Trainable=no
Cloakable=yes
Cloakable.Stages=1
CloakingSpeed=1
CanBeDriven=no
ProtectedDriver=yes
DebrisTypes=TIRE
DebrisMaximums=2
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
MovementZone=Normal
ThreatPosed=20
DamageParticleSystems=SparkSys,SmallGreySSys
SpecialThreatValue=1
ZFudgeColumn=10
ZFudgeTunnel=13
ImmuneToRadiation=yes
Size=2
Explodes=yes
TypeImmune=yes
CanRetaliate=no
Crusher=no
AttackFriendlies=yes
IronCurtain.Modifier=0
DeploysInto=BMINE ;展开变成建筑地雷
DeployFacing=0
IsTilter=yes

[OCBM]
UIName=Name:OceanBomb
Name=水雷
Prerequisite=GAWEAP,GACNST
Primary=MineBombE
DeathWeapon=MineBombE
Strength=50
Category=AFV
Insignificant=yes
Armor=special_3
TechLevel=-1
NavalTargeting=5
LandTargeting=0
Sight=1
Speed=0
CrateGoodie=no
Owner=Americans,British,Africans,Arabs,Alliance,French,Germans,Russians,Confederation,YuriCountry
AllowedToStartInMultiplayer=no
Cost=50
Soylent=0
Points=10
ROT=10
Naval=yes
Sensors=yes
SensorsSight=2
Underwater=yes
IsSelectableCombatant=yes
Selectable=no
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
VoiceSelect=
VoiceMove=
VoiceAttack=
VoiceFeedback=
DieSound=GenVehicleDie
MoveSound=
ImmuneToPsionics=yes
Trainable=no
Cloakable=yes
Cloakable.Stages=1
CloakingSpeed=1
CanBeDriven=no
ProtectedDriver=yes
DebrisTypes=TIRE
DebrisMaximums=2
Locomotor={2BEA74E1-7CCA-11d3-BE14-00104B62A16C}
SpeedType=Float
MovementZone=Water
ThreatPosed=20
DamageParticleSystems=SparkSys,SmallGreySSys
SpecialThreatValue=1
ZFudgeColumn=10
ZFudgeTunnel=13
ImmuneToRadiation=yes
Size=2
Explodes=yes
TypeImmune=yes
CanRetaliate=no
Crusher=no
AttackFriendlies=yes
IronCurtain.Modifier=0

[BMINE]
UIName=Name:mine
Name=mine
BuildCat=Combat
Strength=50
Insignificant=yes
Armor=special_3
Prerequisite=BARRACKS,GACNST
TechLevel=-1
Adjacent=6
ROT=10
Sight=7
DetectDisguise=no
Owner=Americans,British,Africans,Arabs,Alliance,French,Germans,Russians,Confederation,YuriCountry
AIBasePlanningSide=0
Cost=50
BaseNormal=no
Points=30
Power=0
Crewed=no
Capturable=false
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnim=Dbris1sm,Dbris1lg,Dbris4sm,Dbris5sm,Dbris4lg,Dbris7sm,Dbris8sm,Dbris5lg,Dbris4lg
MaxDebris=2
MinDebris=1
Primary=MineBomb
ThreatPosed=30
DamageParticleSystems=SparkSys,LGSparkSys
IsBaseDefense=yes
HasStupidGuardMode=false
AntiInfantryValue=25
AntiArmorValue=10
AntiAirValue=0
ImmuneToPsionics=yes
ImmuneToEMP=no
IsPassable=yes ;建筑可通行结构
DestroyAnim=FROSTBOOM
ImmuneToRadiation=yes
TypeImmune=yes
CanRetaliate=no
AttackFriendlies=yes
IronCurtain.Modifier=0
ForceShield.Modifier=0
Cloakable=yes
Cloakable.Stages=1
CloakingSpeed=1
Selectable=no
PlaceAnywhere=yes ;可以无视地形安置
ClickRepairable=no

[MINER]
UIName=Name:MINER
Name=布雷兵
Category=Soldier
Prerequisite=YABRCK,YAGRND
CrushSound=InfantrySquish
LeadershipRating=3
NavalTargeting=5
LandTargeting=5
Strength=100
Primary=MineKit
CanPassiveAquire=no
CanRetaliate=no
Armor=miner
TechLevel=5
Sight=7
Speed=5
Owner=YuriCountry
AllowedToStartInMultiplayer=no
Cost=800
Soylent=400
Pip=red
Points=5
VoiceSelect=TerroristSelect
VoiceMove=TerroristMove
VoiceAttack=TerroristAttackCommand
VoiceFeedback=TerroristFear
VoiceSpecialAttack=TerroristAttackCommand
DieSound=TerroristDie
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
PhysicalSize=1
SpeedType=Amphibious
MovementZone=AmphibiousDestroyer
ThreatPosed=0       
SpecialThreatValue=1
Trainable=no
IFVMode=24
Secondary=MakeMine
CanDrive=yes
Deployer=yes
DeployFire=yes
UndeployDelay=45
Sensors=yes
SensorsSight=4
PipScale=Ammo
Ammo=5
Reload=300
AttackFriendlies=yes
Cursor.Deploy=Detonate

[MakeMine]
Projectile=Invisible
Damage=1000
Warhead=MakeMineWH
Range=1
ROF=120
Report=CrazyIvanAttack
CellRangefinding=yes
FireOnce=yes
Speed=100
AreaFire=yes
FireInTransport=no

[MineKit]
Projectile=Invisible
Damage=1000
Warhead=MineKitWH
Range=1.3
ROF=10
Report=DefuseKit
CellRangefinding=yes
FireOnce=yes
Speed=100
Cursor.Attack=Disarm
Cursor.AttackOutOfRange=Disarm
Ammo=0

[MineBomb]
Projectile=Invisible
Damage=200
Warhead=MineBombWH
Range=1
CellRangefinding=yes
ROF=10
OmniFire=yes
Suicide=yes
DecloakToFire=no
RevealOnFire=no
Speed=100

[MineBombE]
Projectile=Invisible
Damage=300
Warhead=MineBombWH
Range=1
CellRangefinding=yes
ROF=10
OmniFire=yes
Suicide=yes
DecloakToFire=no
RevealOnFire=no
Speed=100

[MakeMineWH]
Verses=0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%
AnimList=MINEMAKE ;生成地雷的动画
Conventional=yes
SplashList=WAKE3  ;生成水雷的动画
Tiberium=yes

[MineKitWH]
Verses=0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%
Versus.special_3=100%
DeathWeapon.Suppress=MINE,WATERMINE,FROST
Versus.special_3.ForceFire=yes

[MineBombWH]
Verses=150%,125%,100%,90%,85%,80%,40%,30%,20%,100%,100%
Versus.miner.PassiveAcquire=no
Versus.wood.PassiveAcquire=no
Versus.steel.PassiveAcquire=no
Versus.concrete.PassiveAcquire=no
Versus.special_3.PassiveAcquire=no
InfDeath=1
CellSpread=1.8
PercentAtMax=.85
Bright=yes
Wood=yes
Wall=yes
Rocker=yes
AnimList=VTEXPLOD
Conventional=yes
Tiberium=yes

Artmd.ini部分:

[MINEMAKE]
Image=PIFFPIFF
Rate=300
Layer=ground
Normalized=no
Translucent=yes
UseNormalLight=yes
CreateUnit=MINE                       
CreateUnit.RemapAnim=yes
CreateUnit.Mission=Unload      ;生成的单位执行卸载(展开)动作
CreateUnit.Owner=Invoker      
CreateUnit.ConsiderPathfinding=no

[WAKE3]
Image=WAKE1
Flat=yes
Layer=ground
Translucent=yes
Rate=120
YSortAdjust=-288
DemandLoad=true
DetailLevel=2
CreateUnit=OCBM
CreateUnit.Facing=0                          
CreateUnit.RemapAnim=yes
CreateUnit.Owner=Invoker
CreateUnit.ConsiderPathfinding=no


结尾:如果有大佬乐意支援一个合适的布雷兵的shp文件,就完美了。

补充内容 (2025-7-10 12:30):
视频链接好像挂了,看这里:https://www.bilibili.com/video/BV1U2GTz7Ejn/?spm_id_from=333.1007.top_right_bar_window_history.content.click&vd_source=d1d69e474b358b8cda1b1e73d20ec087
发表于 2025-7-10 21:45:25 | 显示全部楼层
好长,你还是用继承吧
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-11-6 01:41 , Processed in 0.067402 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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