收起左侧

[求助] 关于神话时代兵种的指定问题

[复制链接]
哦哟哟哟发表于 2024-4-6 03:57:50
大佬们,我想问下如何指定兵种的模型(就是将A模型套到B模型上),以及修改兵种的武器?谢谢
dablive发表于 2024-4-6 21:58:23
  • 哦哟哟哟 : 不好意思,可能没讲明白,我想将中国连弩兵换上中国戟兵的贴图,更换中国戟兵的武器
  • こはね : 他问的好像是神话时代
  • dablive 回复 哦哟哟哟 : 等等 神话时代还是帝国时代 神话时代的话就没辙了 帝国的话改xml的引用就可以
  • dablive 回复 こはね : 我想也是 但是他说连弩兵和戟兵 我寻思……神话时代有这俩东西吗
  • こはね 回复 dablive : 龙之传说应该有,我不清楚,早就忘光了
こはね发表于 2024-4-6 23:45:58
我似乎帮不上忙

我不太清楚以前我是怎样找神话时代武器的,我现在找不到
3228466116e293b174.png

5446766116dcc3aa43.png
こはね发表于 2024-4-6 23:56:16

最下面的内容connect RightHand Staff hotspot调用了staff;但我找不到staff是在哪里定义的。应该不影响你换武器

anim/anim.bar
anim文件名格式为protoname_anim.txt;如果protox.xml里面的调用名有空格,那么anim文件也要保持一致
下面的文件是冥王之子(欧西里斯之子)pharaoh of osiris xp_anim.txt

//==============================================================================
// Hero Egyptian_anim.txt
//==============================================================================

//==============================================================================
define heroglow
{
set hotspot
{
version
{
Visualparticle SFX A Hero Glow Small
}
}
}

//==============================================================================
define Staff
{
set hotspot
{
version
{
Visual Attachment E Staff
}
}
}

//==============================================================================
define Glow
{
set hotspot
{
version
{
Visualparticle SFX E Son of Osiris Glow
}
}
}

//==============================================================================
anim Idle
{
SetSelector
{
ContainLogic
SetSelector
{
set hotspot
{
version
{
Visual SFX E Son of Osiris_IdleA
Connect FRONTABDOMEN heroglow hotspot
Connect TopOfHead Head hotspot
connect RightHand Staff hotspot
}
}
}
SetSelector
{
set hotspot
{
version
{
Visual SFX E Son of Osiris_carryidleA
Connect FRONTABDOMEN heroglow hotspot
Connect TopOfHead Head hotspot
connect RightHand Staff hotspot
}
}
}
}
}

//==============================================================================
anim Bored
{
SetSelector
{
ContainLogic
SetSelector
{
set hotspot
{
version
{
Visual SFX E Son of Osiris_BoredA
Connect FRONTABDOMEN heroglow hotspot
Connect TopOfHead Head hotspot
connect RightHand Staff hotspot
}
}
}
SetSelector
{
set hotspot
{
version
{
Visual SFX E Son of Osiris_CarryBoredA
Connect FRONTABDOMEN heroglow hotspot
Connect TopOfHead Head hotspot
connect RightHand Staff hotspot
}
}
}
}
}

//==============================================================================
anim Walk
{
SetSelector
{
ContainLogic
SetSelector
{
set hotspot
{
version
{
Visual SFX E Son of Osiris_walkA
//-- auto generated by the bang animation tool
//-- do not hand edit these values
tag FootstepLeft 0.00 true
tag FootstepRight 0.50 true
//-- end auto generated section
Connect FRONTABDOMEN heroglow hotspot
Connect TopOfHead Head hotspot
connect RightHand Staff hotspot
}
}
}
SetSelector
{
set hotspot
{
version
{
Visual SFX E Son of Osiris_CarryA
//-- auto generated by the bang animation tool
//-- do not hand edit these values
tag FootstepLeft 0.00 true
tag FootstepRight 0.50 true
//-- end auto generated section
Connect FRONTABDOMEN heroglow hotspot
Connect TopOfHead Head hotspot
connect RightHand Staff hotspot
}
}
}
}
}

//==============================================================================
anim Charging
{
SetSelector
{
set hotspot
{
version
{
Visual SFX E Son of Osiris_attackA
//-- auto generated by the bang animation tool
//-- do not hand edit these values
tag Attack 0.55 true
tag GenericSound 0.35 true
tag SpecificSoundSet 0.55 false OsirisBolt checkVisible
//-- end auto generated section
Connect FRONTABDOMEN heroglow hotspot
Connect TopOfHead Head hotspot
connect RightHand Staff hotspot
Connect SMOKE0 Glow hotspot
}
}
}
}

//==============================================================================
anim Death
{
SetSelector
{
set hotspot
{
version
{
Visual SFX E Son of Osiris_deathA
Connect FRONTABDOMEN heroglow hotspot
connect TopOfHead Head hotspot
connect RightHand Staff hotspot
}
}
}
}

//==============================================================================
anim Empower
{
SetSelector
{
set hotspot
{
version
{
Visual SFX E Son of Osiris_Empower
Connect FRONTABDOMEN heroglow hotspot
connect TopOfHead Head hotspot
connect RightHand Staff hotspot
}
}
}
}

//==============================================================================
anim Heal
{
SetSelector
{
set hotspot
{
version
{
Visual SFX E Son of Osiris_Empower
//-- auto generated by the bang animation tool
//-- do not hand edit these values
tag SpecificSoundSet 0.00 false Heal checkVisible
//-- end auto generated section
Connect FRONTABDOMEN heroglow hotspot
connect TopOfHead Head hotspot
connect RightHand Staff hotspot
}
}
}
}

//==============================================================================
anim Build
{
SetSelector
{
set hotspot
{
version
{
Visual SFX E Son of Osiris_Empower
//-- auto generated by the bang animation tool
//-- do not hand edit these values
tag SpecificSoundSet 0.00 false PharaohBuild checkVisible
//-- end auto generated section
Connect FRONTABDOMEN heroglow hotspot
connect TopOfHead Head hotspot
connect RightHand Staff hotspot
}
}
}
}

//==============================================================================
anim Flail
{
SetSelector
{
set hotspot
{
version
{
Visual SFX E Son of Osiris_flailA
//-- auto generated by the bang animation tool
//-- do not hand edit these values
tag Attack 0.40 true
tag GenericSound 0.40 true
//-- end auto generated section
Connect FRONTABDOMEN heroglow hotspot
Connect TopOfHead Head hotspot
connect RightHand Staff hotspot
}
}
}
}

こはね发表于 2024-4-7 00:06:39
好像找到了

attachment e staff就是武器的文件;Visual后面就是brg模型的文件名,不带后缀名;brg文件在models/models.bar里面

//==============================================================================
define Staff
{
set hotspot
{
version
{
Visual Attachment E Staff
}
}
}

18329661173079a00e.png

  • 哦哟哟哟 : 谢谢指教,现在去试试
跳转到