R
Rabbit, White
Guest

I grabbed this guy from Warhammer: Dawn of War. Few hours later and couple of thousand polygons less I got this.


Update: (07/17/06) Per TGA's request I updated the unit to hover higher over ground and modified the death animation to make it look a bit like it's crashing on the ground. (didn't update the screenies though)
Update: (07/17/06) Updated the unit to be fully team-color compatible (didn't update screenshots) and fixed a small animation glitch. Other than textures, you should completely replace the old files with the new ones. I also included the original 512x512 textures - probably not a good idea to use them for a real game but they're great for taking screenshots (maybe to make a button or for "promotional screenshots"

It weighs in at a hefty 2523 polygons, but if you really need to reduce the poly count you can remove the drivers, they are almost half those polygons. It comes with custom animations and while it reuses the effects and the sounds from the game, the ones for firing the guns are referenced using their own unique names, which means you can change them without affecting other units in the game.
To make this unit work you will need to add the following entries to three files (this is in addition to the usual modifications to UnitInfos, ArtDefines_Unit, etc.):
Spoiler :
Audio3DScripts.xml
Code:
<Script3DSound>
<ScriptID>AS3D_UN_SPEEDER_CANNON</ScriptID>
<SoundID>SND_SPEEDER_CANNON</SoundID>
<SoundType>GAME_SFX</SoundType>
<iMinVolume>90</iMinVolume>
<iMaxVolume>100</iMaxVolume>
<iPitchChangeDown>-4000</iPitchChangeDown>
<iPitchChangeUp>4000</iPitchChangeUp>
<bLooping>0</bLooping>
<iMinTimeDelay>0</iMinTimeDelay>
<iMaxTimeDelay>0</iMaxTimeDelay>
<StartPosition>NONE</StartPosition>
<EndPosition>NONE</EndPosition>
<iMinVelocity>0</iMinVelocity>
<iMaxVelocity>0</iMaxVelocity>
<iMinDistanceFromListener>0</iMinDistanceFromListener>
<iMaxDistanceFromListener>0</iMaxDistanceFromListener>
<iMinDistanceForMaxVolume>500</iMinDistanceForMaxVolume>
<iMaxDistanceForMaxVolume>1000</iMaxDistanceForMaxVolume>
<iMinCutoffDistance>7000</iMinCutoffDistance>
<iMaxCutoffDistance>7000</iMaxCutoffDistance>
<bTaperForSoundtracks>0</bTaperForSoundtracks>
<iLengthOfSound>0</iLengthOfSound>
<fMinDryLevel>1.0</fMinDryLevel>
<fMaxDryLevel>1.0</fMaxDryLevel>
<fMinWetLevel>0.5</fMinWetLevel>
<fMaxWetLevel>0.5</fMaxWetLevel>
</Script3DSound>
<Script3DSound>
<ScriptID>AS3D_UN_SPEEDER_GUN</ScriptID>
<SoundID>SND_SPEEDER_GUN</SoundID>
<SoundType>GAME_SFX</SoundType>
<iMinVolume>90</iMinVolume>
<iMaxVolume>100</iMaxVolume>
<iPitchChangeDown>-4000</iPitchChangeDown>
<iPitchChangeUp>4000</iPitchChangeUp>
<bLooping>0</bLooping>
<iMinTimeDelay>0</iMinTimeDelay>
<iMaxTimeDelay>0</iMaxTimeDelay>
<StartPosition>NONE</StartPosition>
<EndPosition>NONE</EndPosition>
<iMinVelocity>0</iMinVelocity>
<iMaxVelocity>0</iMaxVelocity>
<iMinDistanceFromListener>0</iMinDistanceFromListener>
<iMaxDistanceFromListener>0</iMaxDistanceFromListener>
<iMinDistanceForMaxVolume>500</iMinDistanceForMaxVolume>
<iMaxDistanceForMaxVolume>1000</iMaxDistanceForMaxVolume>
<iMinCutoffDistance>7000</iMinCutoffDistance>
<iMaxCutoffDistance>7000</iMaxCutoffDistance>
<bTaperForSoundtracks>0</bTaperForSoundtracks>
<iLengthOfSound>0</iLengthOfSound>
<fMinDryLevel>1.0</fMinDryLevel>
<fMaxDryLevel>1.0</fMaxDryLevel>
<fMinWetLevel>0.5</fMinWetLevel>
<fMaxWetLevel>0.5</fMaxWetLevel>
</Script3DSound>
AudioDefines.xml
Code:
<SoundData>
<SoundID>SND_SPEEDER_CANNON</SoundID>
<Filename>Sounds/Units/MachineGunHelicop</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>
<SoundData>
<SoundID>SND_SPEEDER_GUN</SoundID>
<Filename>Sounds/Units/MachineGunFire</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>
Civ4EffectInfos.xml
Code:
<EffectInfo>
<Type>EFFECT_WEAPON_SPEEDER_CANNON</Type>
<Description>Land Speeder big gun fire</Description>
<fScale>1.0</fScale>
<fUpdateRate>2.0</fUpdateRate>
<Path>Art/Effects/weapon_rifleblast_modern/fx_rifleblast_modern.nif</Path>
<bIsProjectile>0</bIsProjectile>
</EffectInfo>
<EffectInfo>
<Type>EFFECT_WEAPON_SPEEDER_GUN</Type>
<Description>Land Speeder smaller gun fire</Description>
<fScale>1.2</fScale>
<fUpdateRate>2.0</fUpdateRate>
<Path>Art/Effects/weapon_rifleblast_modern/fx_rifleblast_modern.nif</Path>
<bIsProjectile>0</bIsProjectile>
</EffectInfo>
Eventually I am going to rework this unit to reduce the polygon count further and do better animations and effects, but I think it's pretty nice already.

Enjoy
