饥荒中的龙蝇是一个非常强大的BOSS,对于新手来说是一个很大的难关。但是如果你掌握了它的代码,就可以轻松地驾驭这个强大的BOSS了。下面,就让我们来详细地了解一下饥荒龙蝇代码吧。

一、龙蝇的基本信息
在饥荒中,龙蝇的代码如下
assets =
{imfly_build.zip"),imfly_basic.zip"),
这段代码定义了龙蝇的prefab(名称)和资源(动画)。
二、龙蝇的属性
龙蝇拥有以下属性
- 生命值(health)6000
- 攻击力(attack)150se)50
- 移动速度(speed)7
- 攻击速度(attackperiod)1.5ge)6)20
- 龙蝇的视觉(眼睛)范围(eye)5
- 龙蝇的听觉范围(ear)15
这些属性可以通过修改代码来改变龙蝇的属性。
三、龙蝇的行为
龙蝇的行为可以通过修改代码来改变它的行为。以下是龙蝇的行为代码
ctionttackedst, data)otstponentsdotststinterruptst.sgGoToState("hit")dd
ctionttackOtherst, data)otstponentsstt")dd
ctionDeathst)stponentsstsform()))stdEmitterdtstarveflyt")stdEmitterd("loop")stdEmitterdtstarvefly/die")d
ctionSavest, data)stponentst()d
ctionLoadst, data)ildilstponentst(data.health)dd
ctionEntitySleepst)stilstcel()stildd
ctionEntityWakest)stilststctionTickstdil, 5 FRMES)dd
ctionTickst)otstdotststponentsbatddd
ction()sttity()
sttitysform()sttityimState()sttitydEmitter()sttityamicShadow()sttityddNetwork()
stamicShadowSetSize(6, 3.5)
gGiantCharacterPhysicsst, 1000, 1.5)
stimStatekfly")stimStatefly_build")stimStateimation("idle")
stfly")stddTag("scarytoprey")stddTag("epic")stddTag("hostile")stddTag("largecreature")stg")stsect")
sttitye()
otastersimstd
stponent("health")stponents.healthSetMaxHealth(TUNING.DRGONFLY_HELTH)stponentstHealth(TUNING.DRGONFLY_HELTH)
stponentbat")stponentsbatage(TUNING.DRGONFLY_DMGE)stponentsbatSetttackPeriod(TUNING.DRGONFLY_TTCK_PERIOD)stponentsbatge(TUNING.DRGONFLY_TTCK_RNGE)stponentsbatction)
stponent("lootdropper")stponentsceLootTablefly')
stponentspectable")stponentownlocations")stponent("sleeper")
stponenter")
stponentityaura")stponentsityaura.aura = -TUNING.SNITYUR_LRGE
stfly")
stSaveSavestLoadLoad
tablePanicst)
stForEventttacked)stForEventattackotherttackOther)stForEventDeath)
stEntitySleepEntitySleepstEntityWakeEntityWake
ststctionTickstdil, 5 FRMES)
fly, assets)
这些行为代码定义了龙蝇的攻击、受击、死亡等行为。
通过对饥荒龙蝇代码的详细解析,相信大家对这个强大的BOSS已经有了更深入的了解。如果你想要轻松地驾驭这个强大的BOSS,就要掌握它的代码,灵活地修改它的属性和行为,从而打败它,获得更多的奖励。