R
Rabbit, White
Guest
This one was requested by Jeckel. It uses galley animations but has its own attack effect (like galley's arrow but without the fire) and supports team color (I'm still having some difficulties with it and haven't done extensive testing so let me know if there are any team color related bugs).
'
The galley.nif file in there is not a mistake, for some reason if I remove it the pedia entry gets messed up.
To properly setup the unit you'll need to modify the effects XML file in addition to artdefines file. Here are the required entries (not counting the basic unit definition in CIV4UnitInfos.xml):
In CIV4ArtDefines_Unit.xml add the following:
Make sure you reference the Galley.kfm in the canoe folder and not the original one.
In the CIV4EffectInfos.xml file (assets/xml/misc) add the following:
DO NOT change the name of the effect, i.e. EFFECT_CANOE_PLAINARROW, everything else you can experiment with.
Enjoy
'
The galley.nif file in there is not a mistake, for some reason if I remove it the pedia entry gets messed up.
To properly setup the unit you'll need to modify the effects XML file in addition to artdefines file. Here are the required entries (not counting the basic unit definition in CIV4UnitInfos.xml):
In CIV4ArtDefines_Unit.xml add the following:
Code:
<UnitArtInfo>
<Type>ART_DEF_UNIT_CANOE</Type>
<fScale>0.18</fScale>
<fInterfaceScale>0.6</fInterfaceScale>
[b][color=#880000]<NIF>Art/Units/Canoe/Canoe.nif</NIF>
<KFM>Art/Units/Canoe/Galley.kfm</KFM>
<SHADERNIF>Art/Units/Canoe/Canoe_FX.nif</SHADERNIF>[/color][/b]
<ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
<ShadowDef>
<ShadowNIF>Art/Units/01_UnitShadows/GalleyShadow.nif</ShadowNIF>
<fShadowScale>1.0</fShadowScale>
</ShadowDef>
<iDamageStates>4</iDamageStates>
<TrailDefinition>
<Texture>Art/Shared/water_ship_wake.dds</Texture>
<fWidth>1</fWidth>
<fLength>180.0</fLength>
<fTaper>1</fTaper>
<fFadeStartTime>.2</fFadeStartTime>
<fFadeFalloff>0.35</fFadeFalloff>
</TrailDefinition>
<fBattleDistance>0.35</fBattleDistance>
<fRangedDeathTime>0.31</fRangedDeathTime>
<bSmoothMove>1</bSmoothMove>
<fAngleInterpRate>720.0</fAngleInterpRate>
<fExchangeAngle>25.0</fExchangeAngle>
<bActAsRanged>0</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop>LOOPSTEP_OCEAN1</AudioRunTypeLoop>
<AudioRunTypeEnd>ENDSTEP_OCEAN1</AudioRunTypeEnd>
</AudioRunSounds>
<SelectionSound>AS3D_UN_OCEAN_END1</SelectionSound>
<ActionSound>AS3D_UN_OCEAN_END1</ActionSound>
</UnitArtInfo>
In the CIV4EffectInfos.xml file (assets/xml/misc) add the following:
Code:
<EffectInfo>
[b][color=#880000]<Type>EFFECT_CANOE_PLAINARROW</Type>[/color][/b]
<Description>Canoe Plain Arrow Effect</Description>
<fScale>0.7</fScale>
<fUpdateRate>1.0</fUpdateRate>
<Path>Art/Units/Canoe/fx_Canoe_PlainArrow.nif</Path>
<bIsProjectile>1</bIsProjectile>
<fSpeed>300.00</fSpeed>
<fArcValue>3.0</fArcValue>
</EffectInfo>
Enjoy